Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9134

New salesforce login JSON response field is_readonly causes NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.13.1
    • Fix Version/s: 2.16.0, 2.15.4
    • Component/s: camel-salesforce
    • Labels:
      None
    • Environment:

      Linux

    • Estimated Complexity:
      Unknown

      Description

      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]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dhirajsb Dhiraj Sureshkumar Bokde
                Reporter:
                saulkarl Saul Karl
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: