2014-12-23 7 views
0

내가이 스프링 XD 코드에 의해 파일에 트윗을 기록 스트림 생성 "Twittersearch"로 데이터를 스트리밍하려고 오류 : 불행하게도봄-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 

답변

0

HttpClientErrorException : (403) 금지

귀하의 credentia ls (consumerKey 및/또는 consumerSecret)가 잘못되었습니다.