Apache Salesforce组件中的SalesforceHttpClient会自动停止,并且Salesforce元数据获取失败吗?

时间:2018-09-27 14:51:08

标签: apache-camel salesforce

我正在使用Apache Camel通过Salesforce组件从Salesforce获取元数据。即使我没有破坏/停止获取元数据时使用的组件或SalesforceHttpClient,有时也会遇到以下异常。

     at org.apache.camel.component.salesforce.internal.client.AbstractClientBase$1.onComplete(AbstractClientBase.java:199) ~[camel-salesforce-2.21.0.jar:2.21.0]
    at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:193) ~[jetty-client-9.4.6.v20170531.jar:9.4.6.v20170531]
    at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:185) ~[jetty-client-9.4.6.v20170531.jar:9.4.6.v20170531]
    at org.eclipse.jetty.client.HttpExchange.notifyFailureComplete(HttpExchange.java:269) ~[jetty-client-9.4.6.v20170531.jar:9.4.6.v20170531]
    at org.eclipse.jetty.client.HttpExchange.abort(HttpExchange.java:252) ~[jetty-client-9.4.6.v20170531.jar:9.4.6.v20170531]
    at org.eclipse.jetty.client.HttpConversation.abort(HttpConversation.java:141) ~[jetty-client-9.4.6.v20170531.jar:9.4.6.v20170531]
    at org.eclipse.jetty.client.HttpRequest.abort(HttpRequest.java:748) ~[jetty-client-9.4.6.v20170531.jar:9.4.6.v20170531]
    at org.eclipse.jetty.client.HttpDestination.send(HttpDestination.java:263) ~[jetty-client-9.4.6.v20170531.jar:9.4.6.v20170531]
    at org.eclipse.jetty.client.HttpClient.send(HttpClient.java:557) ~[jetty-client-9.4.6.v20170531.jar:9.4.6.v20170531]
    at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:723) ~[jetty-client-9.4.6.v20170531.jar:9.4.6.v20170531]
    at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:707) ~[jetty-client-9.4.6.v20170531.jar:9.4.6.v20170531]
    at org.apache.camel.component.salesforce.internal.client.AbstractClientBase.doHttpRequest(AbstractClientBase.java:182) ~[camel-salesforce-2.21.0.jar:2.21.0]
    at org.apache.camel.component.salesforce.internal.client.DefaultRestClient.doHttpRequest(DefaultRestClient.java:88) ~[camel-salesforce-2.21.0.jar:2.21.0]
    at org.apache.camel.component.salesforce.internal.client.DefaultRestClient.getGlobalObjects(DefaultRestClient.java:183) ~[camel-salesforce-2.21.0.jar:2.21.0]
    at org.apache.camel.component.salesforce.internal.processor.AbstractRestProcessor.processGetGlobalObjects(AbstractRestProcessor.java:315) ~[camel-salesforce-2.21.0.jar:2.21.0]
    at org.apache.camel.component.salesforce.internal.processor.AbstractRestProcessor.process(AbstractRestProcessor.java:132) ~[camel-salesforce-2.21.0.jar:2.21.0]
    at org.apache.camel.component.salesforce.SalesforceProducer.process(SalesforceProducer.java:114) ~[camel-salesforce-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.SendDynamicProcessor$1.doInAsyncProducer(SendDynamicProcessor.java:132) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:445) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:127) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:117) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.component.directvm.DirectVmProcessor.process(DirectVmProcessor.java:57) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.component.directvm.DirectVmBlockingProducer.process(DirectVmBlockingProducer.java:53) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) ~[camel-core-2.21.0.jar:2.21.0]
    at org.apache.camel.component.netty4.handlers.ServerChannelHandler.processAsynchronously(ServerChannelHandler.java:141) ~[camel-netty4-2.21.0.jar:2.21.0]
    at org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:112) ~[camel-netty4-2.21.0.jar:2.21.0]
    at org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:213) ~[camel-netty4-http-2.21.0.jar:2.21.0]
    at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) ~[netty-transport-4.1.17.Final.jar:4.1.17.Final]
    at org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:113) ~[camel-netty4-http-2.21.0.jar:2.21.0]
    at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) ~[netty-transport-4.1.17.Final.jar:4.1.17.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[netty-transport-4.1.17.Final.jar:4.1.17.Final]
    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:38) ~[netty-transport-4.1.17.Final.jar:4.1.17.Final]
    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:353) ~[netty-transport-4.1.17.Final.jar:4.1.17.Final]
    at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66) ~[netty-common-4.1.17.Final.jar:4.1.17.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) ~[netty-common-4.1.17.Final.jar:4.1.17.Final]
    at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_181]

原因:java.util.concurrent.RejectedExecutionException:org.apache.camel.component.salesforce.SalesforceHttpClient@f13016f已停止

0 个答案:

没有答案