twitter4j.TwitterException

tip

Check if you don't have a VPN or something like this messing with your connection. Also, check Jenkins DNS configurations (try to start it with "--dns 8.8.8.8".

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 206#54054450
    via GitHub by mquinson
    ,
  • Create newsletter
    via GitHub by sicoa
    ,
    • twitter4j.TwitterException: api.twitter.com at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:177)[na:na] at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61)[na:na] at twitter4j.internal.http.HttpClientWrapper.get(HttpClientWrapper.java:81)[na:na] at twitter4j.TwitterImpl.get(TwitterImpl.java:1929)[na:na] at twitter4j.TwitterImpl.getMentionsTimeline(TwitterImpl.java:111)[na:na] at org.apache.camel.component.twitter.consumer.timeline.MentionsConsumer.pollConsume(MentionsConsumer.java:38)[na:na] at org.apache.camel.component.twitter.consumer.TwitterConsumerPolling.poll(TwitterConsumerPolling.java:65)[na:na] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)[bundlefile:2.12.2-sap-01-SNAPSHOT] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)[bundlefile:2.12.2-sap-01-SNAPSHOT] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[na:1.7.0_17] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)[na:1.7.0_17] at java.util.concurrent.FutureTask.runAndReset(Unknown Source)[na:1.7.0_17] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)[na:1.7.0_17] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)[na:1.7.0_17] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[na:1.7.0_17] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[na:1.7.0_17] at java.lang.Thread.run(Unknown Source)[na:1.7.0_17] Caused by: java.net.UnknownHostException: api.twitter.com at java.net.AbstractPlainSocketImpl.connect(Unknown Source)[na:1.7.0_17] at java.net.PlainSocketImpl.connect(Unknown Source)[na:1.7.0_17] at java.net.SocksSocketImpl.connect(Unknown Source)[na:1.7.0_17] at java.net.Socket.connect(Unknown Source)[na:1.7.0_17] at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)[na:1.7.0_17] at sun.net.NetworkClient.doConnect(Unknown Source)[na:1.7.0_17] at sun.net.www.http.HttpClient.openServer(Unknown Source)[na:1.7.0_17] at sun.net.www.http.HttpClient.openServer(Unknown Source)[na:1.7.0_17] at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)[na:1.7.0_17] at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)[na:1.7.0_17] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)[na:1.7.0_17] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)[na:1.7.0_17] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)[na:1.7.0_17] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)[na:1.7.0_17] at java.net.HttpURLConnection.getResponseCode(Unknown Source)[na:1.7.0_17] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)[na:1.7.0_17] at twitter4j.internal.http.HttpResponseImpl.<init>(HttpResponseImpl.java:34)[na:na] at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:141)[na:na] ... 16 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    musketyr
    2 times, last one,
    Unknown visitor1 times, last one,
    111 more bugmates