mulesoft/twitter-connector — pull request #15 by ryandcarter (2013-10-09 13:24:20+00:00)
Title: Fixed Incorrect Streaming API URL

Twitter Streaming API is now exclusively HTTPS but the connector is hardcoded to use HTTP which results in:

INFO 2013-10-09 14:15:24,787 [Twitter Stream consumer-1[Establishing connection]] twitter4j.TwitterStreamImpl: Unexpected end of file from server
WARN 2013-10-09 14:15:24,787 [Twitter Stream consumer-1[Establishing connection]] org.mule.twitter.adapters.TwitterConnectorConnectionIdentifierAdapter: An exception occured while processing status stream
Unexpected end of file from server
Relevant discussions can be found on the Internet at:
http://www.google.co.jp/search?q=0f31ec71 or
http://www.google.co.jp/search?q=7aaf6470
TwitterException{exceptionCode=[0f31ec71-7aaf6470 8211d944-db3d2556], statusCode=-1, message=null, code=-1, retryAfter=-1, rateLimitStatus=null, version=3.0.3}
at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:192)
at twitter4j.internal.http.alternative.HttpClientImpl.request(HttpClientImpl.java:37)
at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61)
at twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:98)
at twitter4j.TwitterStreamImpl.getFilterStream(TwitterStreamImpl.java:304)
at twitter4j.TwitterStreamImpl$7.getStream(TwitterStreamImpl.java:292)
at twitter4j.TwitterStreamImpl$TwitterStreamConsumer.run(TwitterStreamImpl.java:462)
Caused by: java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:774)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:771)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
at twitter4j.internal.http.HttpResponseImpl.(HttpResponseImpl.java:34)
at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:156)
... 6 more

This change:

Removed Incorrect Streaming API URL for STREAM_BASE_URL due to Twitters
recent change to only supporting https and removed all Streaming URL's
completely as these are already configured by twitter4j.