我正在运行我将twitter作为流入站端点捕获所有用户sream或用户事件的过程。
我有时会得到以下错误
WARN 2014-11-19 11:52:05,716 [Twitter4J Async Dispatcher [0]] org.mule.context.notification.ServerNotificationManager:ServerNotificationManager处理后未通知的通知:PipelineMessageNotification {action = pipeline process start,resourceId = CaptureTweets ,serverId = null,timestamp = 1416378125716} WARN 2014-11-19 11:52:05,736 [Twitter4J Async Dispatcher [0]] org.mule.context.notification.ServerNotificationManager:ServerNotificationManager处理后Notification未排队:PipelineMessageNotification {action =管道流程完成,resourceId = CaptureTweets,serverId = null,timestamp = 1416378125736} ERROR 2014-11-19 11:52:05,736 [Twitter4J Async Dispatcher [0]] org.mule.twitter.adapters.TwitterConnectorConnectionIdentifierAdapter:org.mule.api.MessagingException:无法将事件处理为" CaptureTweets"停止(org.mule.api.lifecycle.LifecycleException)。消息有效内容的类型为:UserEvent org.apache.commons.lang.UnhandledException:org.mule.api.MessagingException:无法将事件处理为" CaptureTweets"停止(org.mule.api.lifecycle.LifecycleException)。消息有效内容的类型为:UserEvent 在org.mule.twitter.TwitterConnector $ SoftCallback.process(TwitterConnector.java:1270) 在org.mule.twitter.TwitterConnector $ 1.onStatus(TwitterConnector.java:893) 在twitter4j.StatusStreamImpl.onStatus(StatusStreamImpl.java:75) 在twitter4j.StatusStreamBase $ 1.run(StatusStreamBase.java:114) 在twitter4j.internal.async.ExecuteThread.run(DispatcherImpl.java:116) 引起:org.mule.api.MessagingException:无法将事件处理为" CaptureTweets"停止(org.mule.api.lifecycle.LifecycleException)。消息有效内容的类型为:UserEvent at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:32) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:58) 在org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.AbstractInterceptingMessageProcessorBase.processNext(AbstractInterceptingMessageProcessorBase.java:102) 在org.mule.construct.AbstractPipeline $ 1.process(AbstractPipeline.java:109) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:58) 在org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:94) 在org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:67) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.doProcess(InterceptingChainLifecycleWrapper.java:50) 在org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:67) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.access $ 001(InterceptingChainLifecycleWrapper.java:22) at org.mule.processor.chain.InterceptingChainLifecycleWrapper $ 1.process(InterceptingChainLifecycleWrapper.java:66) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:58) 在org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.process(InterceptingChainLifecycleWrapper.java:61) 在org.mule.construct.AbstractPipeline $ 3.process(AbstractPipeline.java:207) 在org.mule.security.oauth.processor.AbstractListeningMessageProcessor.processEvent(AbstractListeningMessageProcessor.java:150) 在org.mule.security.oauth.processor.AbstractListeningMessageProcessor.process(AbstractListeningMessageProcessor.java:76) 在org.mule.twitter.TwitterConnector $ SoftCallback.process(TwitterConnector.java:1268) ......还有4个 引起:org.mule.api.lifecycle.LifecycleException:无法将事件处理为" CaptureTweets"停了 at org.mule.construct.AbstractPipeline $ ProcessIfPipelineStartedMessageProcessor.handleUnaccepted(AbstractPipeline.java:400) at org.mule.processor.AbstractFilteringMessageProcessor.process(AbstractFilteringMessageProcessor.java:44) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24) ......还有25个
不确定错误,需要更多相关信息。
答案 0 :(得分:0)
您需要<json:object-to-json-transformer>
来转换Twitter数据
您能否查看此链接以了解将Mule与Twitter连接的想法: - http://www.whishworks.com/blog/integration-with-twitter-using-mule-esb/