camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9134) New salesforce login JSON response field is_readonly causes NPE
Date Tue, 15 Sep 2015 08:55:46 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-9134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14745074#comment-14745074
] 

Claus Ibsen commented on CAMEL-9134:
------------------------------------

[~dhirajsb] are you able to look into this?

> New salesforce login JSON response field is_readonly causes NPE
> ---------------------------------------------------------------
>
>                 Key: CAMEL-9134
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9134
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-salesforce
>    Affects Versions: 2.13.1
>         Environment: Linux
>            Reporter: Saul Karl
>
> Recently the salesforce sandbox REST API login starts to return an additional JSON field
"is_readonly" that causes NPE during a Salesforce login session:
> 2015-09-14 16:10:02,374 | INFO  | HttpClient-46181 | SalesforceSession              
 | 120 - org.apache.camel.camel-salesforce - 2.13.1 | Logging clientId: xxxyyyzzz into Salesforce
url: https://test.salesforce.com/services/oauth2/token
> 2015-09-14 16:10:03,317 | ERROR | HttpClient-46181 | SalesforceSecurityListener     
 | 120 - org.apache.camel.camel-salesforce - 2.13.1 | { statusCode: 0}
> { { statusCode: 0}, statusCode: 0}
>         at org.apache.camel.component.salesforce.internal.SalesforceSession.login(SalesforceSession.java:191)[120:org.apache.camel.camel-salesforce:2.13.1]
>         at org.apache.camel.component.salesforce.internal.client.SalesforceSecurityListener.checkExchangeComplete(SalesforceSecurityListener.java:95)[120:org.apache.camel.camel-salesforce:2.13.1]
>         at org.apache.camel.component.salesforce.internal.client.SalesforceSecurityListener.onResponseComplete(SalesforceSecurityListener.java:78)[120:org.apache.camel.camel-salesforce:2.13.1]
>         at org.eclipse.jetty.client.HttpEventListenerWrapper.onResponseComplete(HttpEventListenerWrapper.java:123)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at org.apache.camel.component.salesforce.internal.client.AbstractClientBase$1.onResponseComplete(AbstractClientBase.java:147)[120:org.apache.camel.camel-salesforce:2.13.1]
>         at org.eclipse.jetty.client.HttpEventListenerWrapper.onResponseComplete(HttpEventListenerWrapper.java:123)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at org.eclipse.jetty.client.RedirectListener.onResponseComplete(RedirectListener.java:106)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at org.eclipse.jetty.client.HttpExchange.setStatus(HttpExchange.java:305)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at org.eclipse.jetty.client.AbstractHttpConnection$Handler.messageComplete(AbstractHttpConnection.java:340)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:904)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at org.eclipse.jetty.client.AsyncHttpConnection.handle(AsyncHttpConnection.java:135)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[85:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
>         at java.lang.Thread.run(Thread.java:745)[:1.7.0_79]
> Caused by: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field
"is_readonly" (Class org.apache.camel.component.salesforce.internal.dto.LoginToken), not marked
as ignorable
>  at [Source: [B@3113fe76; line: 1, column: 147] (through reference chain: org.apache.camel.component.salesforce.internal.dto.LoginToken["is_readonly"])
>         at org.codehaus.jackson.map.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:53)
>         at org.codehaus.jackson.map.deser.StdDeserializationContext.unknownFieldException(StdDeserializationContext.java:267)[112:jackson-mapper-asl:1.9.12]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message