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

camel-salesforce - Maven plugin giving buffer capacity error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Bug
    • 3.16.0, 3.17.0
    • None
    • camel-salesforce
    • None
    • Unknown

    Description

      I am trying to generate Salesforce objects from Salesforce Health Cloud instance. As health cloud environments tend to have quite a lot of sObjects. When I try to generate a DTO/Pojo, I am seeing the buffering capacity error.

      Buffering capacity 4194304 exceeded
          at org.eclipse.jetty.client.util.BufferingResponseListener.onContent (BufferingResponseListener.java:124)
          at org.eclipse.jetty.client.api.Response$ContentListener.onContent (Response.java:158)
          at org.eclipse.jetty.client.api.Response$AsyncContentListener.onContent (Response.java:189)
          at org.eclipse.jetty.client.ResponseNotifier.notifyContent (ResponseNotifier.java:155)
          at org.eclipse.jetty.client.ResponseNotifier.notifyContent (ResponseNotifier.java:139)
          at org.eclipse.jetty.client.HttpReceiver$ContentListeners.notifyContent (HttpReceiver.java:693)
          at org.eclipse.jetty.client.HttpReceiver$ContentListeners.access$500 (HttpReceiver.java:655)
          at org.eclipse.jetty.client.HttpReceiver$Decoder.decodeChunk (HttpReceiver.java:836)
          at org.eclipse.jetty.client.HttpReceiver$Decoder.decode (HttpReceiver.java:788)
          at org.eclipse.jetty.client.HttpReceiver$Decoder.decode (HttpReceiver.java:768)
          at org.eclipse.jetty.client.HttpReceiver$Decoder.access$600 (HttpReceiver.java:744)
          at org.eclipse.jetty.client.HttpReceiver.decodeResponseContent (HttpReceiver.java:386)
          at org.eclipse.jetty.client.HttpReceiver.responseContent (HttpReceiver.java:354)
          at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.content (HttpReceiverOverHTTP.java:332)
          at org.eclipse.jetty.http.HttpParser.parseContent (HttpParser.java:1840)
          at org.eclipse.jetty.http.HttpParser.parseNext (HttpParser.java:1551)
          at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse (HttpReceiverOverHTTP.java:208)
          at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process (HttpReceiverOverHTTP.java:148)
          at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive (HttpReceiverOverHTTP.java:80)
          at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive (HttpChannelOverHTTP.java:131)
          at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable (HttpConnectionOverHTTP.java:172)
          at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded (AbstractConnection.java:311)
          at org.eclipse.jetty.io.FillInterest.fillable (FillInterest.java:105)
          at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable (SslConnection.java:555)
          at org.eclipse.jetty.io.ssl.SslConnection.onFillable (SslConnection.java:410)
          at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded (SslConnection.java:164)
          at org.eclipse.jetty.io.FillInterest.fillable (FillInterest.java:105)
          at org.eclipse.jetty.io.ChannelEndPoint$1.run (ChannelEndPoint.java:104)
          at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask (EatWhatYouKill.java:338)
          at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce (EatWhatYouKill.java:315)
          at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce (EatWhatYouKill.java:173)
          at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run (EatWhatYouKill.java:131)
          at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run (ReservedThreadExecutor.java:409)
          at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:883)
          at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run (QueuedThreadPool.java:1034)
          at java.lang.Thread.run (Thread.java:834)
      [DEBUG] Response abort HttpResponse[HTTP/1.1 200 OK]@5cff6b74 HttpExchange@4041739c{req=SalesforceHttpRequest[GET /services/data/v52.0/sobjects/ HTTP/1.1]@1903b5d[TERMINATED/null] res=HttpResponse[HTTP/1.1 200 OK]@5cff6b74[COMPLETED/java.lang.IllegalArgumentException: Buffering capacity 4194304 exceeded]} on HttpChannelOverHTTP@7d412966(exchange=HttpExchange@4041739c{req=SalesforceHttpRequest[GET /services/data/v52.0/sobjects/ HTTP/1.1]@1903b5d[TERMINATED/null] res=HttpResponse[HTTP/1.1 200 OK]@5cff6b74[COMPLETED/java.lang.IllegalArgumentException: Buffering capacity 4194304 exceeded]})[send=HttpSenderOverHTTP@60697d30(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@694fccb3{s=START}],recv=HttpReceiverOverHTTP@4a082789(rsp=FAILURE,failure=java.lang.IllegalArgumentException: Buffering capacity 4194304 exceeded)[HttpParser{s=CHUNK,187216 of -1}]]: {}
      
      

      I tried binding property value to httpClientProperties as well but it was failling.

      <httpClientProperties>
      <responseBufferSize>4194304456</responseBufferSize>
      </httpClientProperties>

      Attachments

        Activity

          People

            Unassigned Unassigned
            jawwad124 Jawad Ahmad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: