首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Spring-xd -尝试使用"Twittersearch“流式传输数据时出错

Spring-xd -尝试使用"Twittersearch“流式传输数据时出错
EN

Stack Overflow用户
提问于 2014-12-23 19:51:59
回答 1查看 179关注 0票数 0

我通过这个spring xd代码创建了一个将tweet写入文件的流:

代码语言:javascript
复制
stream create --name javatweets --definition "twittersearch --query=java --consumerKey=<my_key>
--consumerSecret=<my_secret> | file" --deploy    

不幸的是,我得到了以下错误消息:

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2014-12-23 21:27:14

HttpClientErrorException: 403禁止

您的凭据(consumerKey和/或consumerSecret)不正确。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27619807

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档