Welcome to Twitter Data Analytics Q&A, where you can ask questions and receive answers from other members of the community.

Streaming example error

0 votes

Hi, I'm running into an error in the StreamingAPIExample.java class. 

I have populated the streaming.config file with a few keywords.

The error is as follows:

log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.BasicClientConnectionManager).
log4j:WARN Please initialize the log4j system properly.
org.apache.http.conn.HttpHostConnectException: Connection to https://stream.twitter.com refused
I cannot quite figure out what the error is... The error is thrown from the following line:
response = httpClient.execute(httppost);
Any thoughts would be helpful... Thanks!
asked Feb 14, 2014 by anonymous

1 Answer

0 votes

Please check that the utils.OAuthUtils file is configured with the correct credentials. Incorrect credentials might be causing this issue.

answered Feb 14, 2014 by shamanth (400 points)