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

camel-salesforce - NPE On Processing Composite Collections Response

    XMLWordPrintableJSON

Details

    • Novice

    Description

      I am able to reproduce this error while trying to upsert collection on the non external id fields. I suspect it will have similar behavior on network errors.

      java.util.NoSuchElementException: No value present
      at java.base/java.util.Optional.get(Optional.java:141) ~[na:na]
      at org.apache.camel.component.salesforce.internal.processor.CompositeSObjectCollectionsProcessor.processResponse(CompositeSObjectCollectionsProcessor.java:187) ~[camel-salesforce-3.10.0-20210519.045501-220.jar:3.10.0-SNAPSHOT]
      at org.apache.camel.component.salesforce.internal.processor.CompositeSObjectCollectionsProcessor.lambda$processUpsertSObjectCollections$3(CompositeSObjectCollectionsProcessor.java:143) ~[camel-salesforce-3.10.0-20210519.045501-220.jar:3.10.0-SNAPSHOT]
      at org.apache.camel.component.salesforce.internal.client.DefaultCompositeSObjectCollectionsApiClient$2.onResponse(DefaultCompositeSObjectCollectionsApiClient.java:118) ~[camel-salesforce-3.10.0-20210519.045501-220.jar:3.10.0-SNAPSHOT]
      at org.apache.camel.component.salesforce.internal.client.AbstractClientBase$1.onComplete(AbstractClientBase.java:210) ~[camel-salesforce-3.10.0-20210519.045501-220.jar:3.10.0-SNAPSHOT]
      at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:218) ~[jetty-client-9.4.38.v20210224.jar:9.4.38.v20210224]
      at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:210) ~[jetty-client-9.4.38.v20210224.jar:9.4.38.v20210224]
      at org.eclipse.jetty.client.HttpSender.terminateRequest(HttpSender.java:411) ~[jetty-client-9.4.38.v20210224.jar:9.4.38.v20210224]
      at org.eclipse.jetty.client.HttpSender.abort(HttpSender.java:574) ~[jetty-client-9.4.38.v20210224.jar:9.4.38.v20210224]
      at org.eclipse.jetty.client.HttpSender.lambda$executeAbort$0(HttpSender.java:361) ~[jetty-client-9.4.38.v20210224.jar:9.4.38.v20210224]
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:882) ~[jetty-util-9.4.38.v20210224.jar:9.4.38.v20210224]
      at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1036) ~[jetty-util-9.4.38.v20210224.jar:9.4.38.v20210224

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            jawwad124 Jawad Ahmad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: