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

Default Salesforce httpClient no longer initilized in time

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.4.0
    • Component/s: camel-salesforce
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      In Camel-3.3.0 there seems to have been a change with Salesforce such that the component's httpClient is no longer initialized before the endpoint is created. This is perhaps a fundamental lifecycle issue that leads to NPE in my Salesforce tests.

      In 3.1.0 the httpClient is available when the endpoint is created here

      Caused by: org.apache.camel.component.salesforce.api.SalesforceException: Unexpected Error processing createJob: "null"
      	at org.apache.camel.component.salesforce.internal.processor.BulkApiProcessor.process(BulkApiProcessor.java:111)
      	at org.apache.camel.component.salesforce.SalesforceProducer.process(SalesforceProducer.java:129)
      	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:168)
      	at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:395)
      	at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:148)
      	at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60)
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:147)
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:286)
      	at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:66)
      	at org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:212)
      	at org.apache.camel.processor.SharedCamelInternalProcessor$1.process(SharedCamelInternalProcessor.java:110)
      	at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83)
      	at org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:107)
      	at org.apache.camel.impl.engine.DefaultProducerCache.send(DefaultProducerCache.java:185)
      	at org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:176)
      	at org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:172)
      	at org.apache.camel.impl.engine.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:390)
      	... 150 more
      Caused by: java.lang.NullPointerException
      	at org.apache.camel.component.salesforce.internal.client.AbstractClientBase.getRequest(AbstractClientBase.java:158)
      	at org.apache.camel.component.salesforce.internal.client.AbstractClientBase.getRequest(AbstractClientBase.java:154)
      	at org.apache.camel.component.salesforce.internal.client.DefaultBulkApiClient.createJob(DefaultBulkApiClient.java:87)
      	at org.apache.camel.component.salesforce.internal.processor.BulkApiProcessor.processCreateJob(BulkApiProcessor.java:122)
      	at org.apache.camel.component.salesforce.internal.processor.BulkApiProcessor.process(BulkApiProcessor.java:64)
      	... 166 more
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tdiesler Thomas Diesler
                Reporter:
                tdiesler Thomas Diesler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: