[ https://issues.apache.org/jira/browse/CAMEL-12484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16585753#comment-16585753 ]
Hemang Ajmera commented on CAMEL-12484: --------------------------------------- Also the first exception (line number 1530) after the last time it was able to receive message(line number 1282) is bit different {code:java} 2018-08-06 05:03:18.822 INFO 9 --- [ent@710f4dc7-25] o.eclipse.jetty.client.ResponseNotifier : Exception while notifying listener org.cometd.client.transport.LongPollingTransport$2@53962c22 java.lang.NullPointerException: null at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) ~[na:1.8.0_151] at org.cometd.common.AbstractClientSession.getReleasableChannel(AbstractClientSession.java:320) ~[cometd-java-common-3.1.2.jar!/:na] at org.cometd.common.AbstractClientSession.receive(AbstractClientSession.java:240) ~[cometd-java-common-3.1.2.jar!/:na] at org.cometd.client.BayeuxClient.processMessage(BayeuxClient.java:822) ~[cometd-java-client-3.1.2.jar!/:na] at org.cometd.client.BayeuxClient.processMessages(BayeuxClient.java:618) ~[cometd-java-client-3.1.2.jar!/:na] at org.cometd.client.BayeuxClient.access$3100(BayeuxClient.java:100) ~[cometd-java-client-3.1.2.jar!/:na] at org.cometd.client.BayeuxClient$MessageTransportListener.onMessages(BayeuxClient.java:1189) ~[cometd-java-client-3.1.2.jar!/:na] at org.cometd.client.transport.LongPollingTransport$2.onComplete(LongPollingTransport.java:236) ~[cometd-java-client-3.1.2.jar!/:na] at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:193) [jetty-client-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:185) [jetty-client-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:464) [jetty-client-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.client.HttpReceiver.responseSuccess(HttpReceiver.java:410) [jetty-client-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.messageComplete(HttpReceiverOverHTTP.java:301) [jetty-client-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.http.HttpParser.handleContentMessage(HttpParser.java:628) [jetty-http-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.http.HttpParser.parseContent(HttpParser.java:1594) [jetty-http-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1442) [jetty-http-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:173) [jetty-client-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:134) [jetty-client-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:72) [jetty-client-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:133) [jetty-client-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:155) [jetty-client-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281) [jetty-io-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) [jetty-io-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291) [jetty-io-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151) [jetty-io-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) [jetty-io-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) [jetty-io-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:319) [jetty-util-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:175) [jetty-util-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:133) [jetty-util-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) [jetty-util-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:754) [jetty-util-9.4.9.v20180320.jar!/:9.4.9.v20180320] at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:672) [jetty-util-9.4.9.v20180320.jar!/:9.4.9.v20180320] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151] {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 > Assignee: Zoran Regvart > 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)