簡體   English   中英

Spring-xd-嘗試使用“ Twittersearch”流數據時出錯

[英]Spring-xd - Error when trying to stream data with “Twittersearch”

我創建了一個流,該流通過此spring xd代碼將推文寫入文件:

stream create --name javatweets --definition "twittersearch --query=java --consumerKey=<my_key>
--consumerSecret=<my_secret> | file" --deploy    

不幸的是,我收到以下錯誤消息:

WARN DeploymentsPathChildrenCache-0 annotation.AnnotationConfigApplicationContext - 
Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'org.springframework.integration.x.twitter.TwitterSearchChannelAdapter#0' defined in class path   resource [config/twittersearch.xml]: Cannot resolve reference to bean 'twitterTemplate' while setting  constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'twitterTemplate' defined in class path resource [config/twittersearch.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.social.twitter.api.impl.TwitterTemplate]: Constructor threw exception; nested exception is org.springframework.web.client.HttpClientErrorException: 403 Forbidden

HttpClientErrorException:禁止403

您的憑據( consumerKey和/或consumerSecret )不正確。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM