camel-salesforce:平台事件订阅经常失败(2.23.0-SNAPSHOT)

时间:2018-09-10 21:33:44

标签: apache-camel salesforce

我有一条简单的路线即可订阅Salesforce平台活动, 发送到AWS-SQS队列。此路由有时可行,但大多数情况下会因不同类型的异常而失败(“ org.cometd.common.TransportException:null” /“ java.lang.IllegalThreadStateException”)。
看起来Salesforce连接被随机丢弃,无法重新连接。它相当失败 我经常无法使用该功能。请建议是否 有效问题/特定于我的环境的信息。

环境:MAC,Java 10 Camel-Salesforce 2.23.0-SNAPSHOT版本。

context.addRoutes(new RouteBuilder() { 
@Override 
public void configure() throws Exception { 

from("sfdc:event/Netsuite_Customer_Event__e") 
.process(new Processor() { 

@Override 
public void process(Exchange exchange) throws Exception { 

PlatformEvent event = exchange.getIn().getBody(PlatformEvent.class); 
System.out.println("****************Received Event : " + 
event.getEventData().toString()); 
// org.cometd.bayeux.Message event = 
exchange.getIn().getBody(org.cometd.bayeux.Message.class); 
// System.out.println("Received Event: " + event.getJSON()); 

} 

}) 
.to("aws-sqs:" 
+ "FIFOQueue.fifo" 
+ "?amazonSQSClient=#sqsClient" 
+ "&extendMessageVisibility=" 
+ true 
+ "&messageGroupIdStrategy=useConstant" 
+ "&visibilityTimeout=" 
+ 900 
+ "&attributeNames=ApproximateFirstReceiveTimestamp,ApproximateReceiveCount,SentTimestamp"); 

} 
}); 

下面是org.cometd.common.TransportException的日志 日志:https://drive.google.com/file/d/13Kcu1dZHRXn_H2ghMNcdldDVQFBpSDgh/view?usp=sharing

下面是java.lang.IllegalThreadStateException的日志。 日志:[https://drive.google.com/file/d/1jXBQ0xCTfhqQHbMPD4CHhd3RTipW4Mhv/view?usp=sharing][1]

谢谢, Sowjanya

0 个答案:

没有答案