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

Dale Olzer commented on CAMEL-17942:
------------------------------------

Below is a snippet of the pom. Using camel 3.6.0, the DTO's that are produced 
come out to be about 21K. It doesn't seem like the max content length is being 
exceeded.

                        <plugin>
                               <groupId>org.apache.camel.maven</groupId>
                                
<artifactId>camel-salesforce-maven-plugin</artifactId>
                                <version>3.16.0</version>
                                <configuration>
                                        
<outputDirectory>./tmp2</outputDirectory>
                                        
<packageName>com.redhat.sales.loader.generated.dto</packageName>
                                        <clientId>XXXXX</clientId>
                                        <clientSecret>XXXX</clientSecret>
                                        
<userName>[email protected]</userName>

                                        <password>XXXXX</password>
                                        
<loginUrl>https://redhat--dev1.my.salesforce.com </loginUrl>
                                        
<camel.component.salesforce.http-max-content-length>8388608</camel.component.salesforce.http-max-content-length>
                                        
<maxContentLength>8388608</maxContentLength>
                                        <includes>
                                                
<include>IE_Product_Transaction_Log__c</include>
                                        </includes>
                                </configuration>
                        </plugin>

> camel-salesforce - HTTP responses over 4 MB fail
> ------------------------------------------------
>
>                 Key: CAMEL-17942
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17942
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-salesforce
>    Affects Versions: 3.15.0, 3.16.0
>            Reporter: Dale Olzer
>            Priority: Minor
>
> This is issue appears in camel version 3.7 - 3.16  ,   camel 3.1 - 3.6 runs 
> fine.
>  
> [DEBUG] Response abort HttpResponse[HTTP/1.1 200 OK]@6d2a2560 
> HttpExchange@1a47a1e8\{req=SalesforceHttpRequest[GET 
> /services/data/v53.0/sobjects/ HTTP/1.1]@6a916402[TERMINATED/null] 
> res=HttpResponse[HTTP/1.1 200 
> OK]@6d2a2560[COMPLETED/java.lang.IllegalArgumentException: Buffering capacity 
> 4194304 exceeded]} on 
> HttpChannelOverHTTP@19c3c81d(exchange=HttpExchange@1a47a1e8\{req=SalesforceHttpRequest[GET
>  /services/data/v53.0/sobjects/ HTTP/1.1]@6a916402[TERMINATED/null] 
> res=HttpResponse[HTTP/1.1 200 
> OK]@6d2a2560[COMPLETED/java.lang.IllegalArgumentException: Buffering capacity 
> 4194304 
> exceeded]})[send=HttpSenderOverHTTP@20110a97(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@dafc37\{s=START}],recv=HttpReceiverOverHTTP@55a955d5(rsp=FAILURE,failure=java.lang.IllegalArgumentException:
>  Buffering capacity 4194304 exceeded)[HttpParser\{s=CHUNK,171773 of -1}]]: {}
> java.lang.IllegalArgumentException: 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)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to