Spring-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

person omer sagi    schedule 23.12.2014    source источник


Ответы (1)


HttpClientErrorException: 403 Запрещено

Ваши учетные данные (consumerKey и/или consumerSecret) неверны.

person Gary Russell    schedule 23.12.2014