[
https://issues.apache.org/jira/browse/CAMEL-12484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16579816#comment-16579816
]
vassilis spiliopoulos commented on CAMEL-12484:
-----------------------------------------------
I am also getting a similar error. The scenario is as follows:
# Successfully getting a token and hitting the Salesforce Composite API
# Wait for ~5-6 minutes
# executing the same call as in step (1) and the following error happens.
# executing the same call as in step (1) and it works.
It seems that camel-salesforce is keeping the HTTP connection open, but for
some reason after ~5-6 minutes the connection is terminated and the first
request after that point it fails with:
{code:java}
java.io.EOFException: HttpConnectionOverHTTP@6bea0fd0{code}
This is a blocker for me as well.. :(
Error that occurs in step (3):
{code:java}
// Caused by: org.apache.camel.component.salesforce.api.SalesforceException:
Unexpected error {0:null} executing
{GET:https://blabla.salesforce.com/services/data/v43.0/sobjects/Blabla__c/Blabla__c/GB}
at
org.apache.camel.component.salesforce.internal.client.AbstractClientBase$1.onComplete(AbstractClientBase.java:199)
at
org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:216)
at
org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:208)
at
org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:470)
at org.eclipse.jetty.client.HttpReceiver.abort(HttpReceiver.java:552)
at org.eclipse.jetty.client.HttpReceiver.responseFailure(HttpReceiver.java:442)
at
org.eclipse.jetty.client.http.HttpReceiverOverHTTP.failAndClose(HttpReceiverOverHTTP.java:369)
at
org.eclipse.jetty.client.http.HttpReceiverOverHTTP.earlyEOF(HttpReceiverOverHTTP.java:338)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1557)
at
org.eclipse.jetty.client.http.HttpReceiverOverHTTP.shutdown(HttpReceiverOverHTTP.java:209)
at
org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:147)
at
org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:73)
at
org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:133)
at
org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:155)
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291)
at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)
... 1 common frames omitted
Caused by: java.io.EOFException: HttpConnectionOverHTTP@6bea0fd0(l:/:56790 <->
r:saas-power.my.salesforce.com/:443,closed=false)=>HttpChannelOverHTTP@3b5b76fa(exchange=HttpExchange@79e09003
req=TERMINATED/null@null
res=PENDING/null@null)[send=HttpSenderOverHTTP@6df54357(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@7a3939a8{s=START}],recv=HttpReceiverOverHTTP@41163db0(rsp=IDLE,failure=null)[HttpParser{s=CLOSED,0
of
-1}]]<-DecryptedEndPoint@211a7fce{saas-power.my.salesforce.com/:443<->/,OPEN,fill=-,flush=-,to=1222972/0}->HttpConnectionOverHTTP@6bea0fd0(l:/:56790
<->
r:saas-power.my.salesforce.com/:443,closed=false)=>HttpChannelOverHTTP@3b5b76fa(exchange=HttpExchange@79e09003
req=TERMINATED/null@null
res=PENDING/null@null)[send=HttpSenderOverHTTP@6df54357(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@7a3939a8{s=START}],recv=HttpReceiverOverHTTP@41163db0(rsp=IDLE,failure=null)[HttpParser{s=CLOSED,0
of
-1}]]->SocketChannelEndPoint@66327f41{saas-powermy.salesforce.com/:443<->/:56790,ISHUT,fill=-,flush=-,to=18913/0}{io=0/0,kio=0,kro=1}->SslConnection@55f5fe56{NEED_WRAP,eio=-1/-1,di=-1}=>HttpConnectionOverHTTP@6bea0fd0(l:/:56790
<->
r:<http://saas-power.my.salesforce.com/85.222.132.58:443,closed=false|saas-power.my.salesforce.co:443,closed=false>)=>HttpChannelOverHTTP@3b5b76fa(exchange=HttpExchange@79e09003
req=TERMINATED/null@null
res=PENDING/null@null)[send=HttpSenderOverHTTP@6df54357(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@7a3939a8{s=START}],recv=HttpReceiverOverHTTP@41163db0(rsp=IDLE,failure=null)[HttpParser{s=CLOSED,0
of -1}]]
... 16 common frames omitted
{code}
> Camel-salesforce component does not try to reconnect on specific error
> ----------------------------------------------------------------------
>
> Key: CAMEL-12484
> URL: https://issues.apache.org/jira/browse/CAMEL-12484
> Project: Camel
> Issue Type: Bug
> Components: camel-salesforce
> Affects Versions: 2.21.0
> Reporter: Hemang Ajmera
> Priority: Major
> Attachments: logs.zip
>
>
> The issue is very much identical to CAMEL-10238 where camel component does
> not try to reconnect. It was resolved for that particular case, however there
> is additional scenario where we are facing exactly similar problem.
> Here is the key log message after which component stops retrying
> {{2018-05-03 17:19:50.257 WARN 7636 — [nt@911561694-23]
> o.a.c.c.s.i.s.SubscriptionHelper : Connect failure:
> {clientId=3qi3g4psrtqrntt15ockewu0a59q, advice=
> {reconnect=none, interval=0}
> , channel=/meta/connect, id=154, error=403::Unknown client,
> successful=false}}}
> Please note that we are getting Connect failure multiple times but it is able
> to reconnect where there is exception or when the advice is to do handshake
> again. Here are those sample which works...
> * The one with exceptions
> {quote}2018-05-03 17:19:17.965 WARN 7636 — [nt@911561694-23]
> o.a.c.c.s.i.s.SubscriptionHelper : Connect failure: {failure=
> Unknown macro: \{exception=java.io.EOFException}
> ],recv=HttpReceiverOverHTTP@144e8ebb(rsp=IDLE,failure=null)[HttpParser
> Unknown macro: \{s=CLOSED,0 of -1}
> ]]<-DecryptedEndPoint@245db684
> Unknown macro: \{telia-fi--dev.cs88.my.salesforce.com/85.222.137.144}
> ->HttpConnectionOverHTTP@69f41507(l:/0:0:0:0:0:0:0:1:60369 <->
> r:telia-fi--dev.cs88.my.salesforce.com/85.222.137.144:443,closed=false)=>HttpChannelOverHTTP@3109c579(exchange=HttpExchange@76b96e24
> req=TERMINATED/null@null
> res=PENDING/null@null)[send=HttpSenderOverHTTP@5d6efa04(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@43ac2f18
> Unknown macro: \{s=START}
> ],recv=HttpReceiverOverHTTP@144e8ebb(rsp=IDLE,failure=null)[HttpParser
> ]]->SocketChannelEndPoint@6b93b346
> Unknown macro: \{telia-fi--dev.cs88.my.salesforce.com/85.222.137.144}
> Unknown macro: \{io=0/0,kio=0,kro=1}
>
> ->SslConnection@53bc7193\{NEED_WRAP,eio=-1/-1,di=-1}=>HttpConnectionOverHTTP@69f41507(l:/0:0:0:0:0:0:0:1:60369
> <->
> r:telia-fi--dev.cs88.my.salesforce.com/85.222.137.144:443,closed=false)=>HttpChannelOverHTTP@3109c579(exchange=HttpExchange@76b96e24
> req=TERMINATED/null@null
> res=PENDING/null@null)[send=HttpSenderOverHTTP@5d6efa04(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@43ac2f18
> Unknown macro: \{s=START}
> ],recv=HttpReceiverOverHTTP@144e8ebb(rsp=IDLE,failure=null)[HttpParser
> Unknown macro: \{s=CLOSED,0 of -1}
> ]], message=\{clientId=3qi3g4psrtqrntt15ockewu0a59q, channel=/meta/connect,
> id=153, connectionType=long-polling}, connectionType=long-polling},
> channel=/meta/connect, id=153, successful=false}
> {quote}
>
> * The one with advice for new handshake
> {quote}2018-05-03 16:31:08.970 WARN 7636 — [nt@911561694-21]
> o.a.c.c.s.i.s.SubscriptionHelper : Connect failure:
> Unknown macro: \{advice=Unknown macro}
> , channel=/meta/connect, id=83, error=403::Unknown client, successful=false}
> {quote}
>
> One more thing, this log is coming from line 168 {{LOG.warn("Connect failure:
> {}", message);}} of the
> [https://github.com/apache/camel/blob/master/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/SubscriptionHelper.java#L168].
> I see that there is no attempt to reconnect. If this information helps move
> things faster...
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)