camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Walzer, Thomas" <thomas.wal...@integratix.net>
Subject Re: Unknown Host Exception when using Twitter Endpoint
Date Thu, 12 Dec 2013 11:27:25 GMT
Maybe those properties are available somehow?

http://twitter4j.org/en/configuration.html

Am 12.12.2013 um 12:14 schrieb Goyal, Arpit <arpit.goyal@sap.com>:

> Hi,
> 
> Is there a way to set Proxy Host & Proxy Port in Twitter Endpoint. I am getting Unknown
Host Exception when trying to access in landscape which has proxy server configured.
> 
> Is this known issue?
> 
> Regards,
> Arpit
> 
> Error Log:
> Endpoint[twitter://timeline/mentions?accessToken=[s]&accessTokenSecret=[s]&consumerKey=[s]&consumerSecret=[s]&delay=60&type=polling].
Will try again at next poll. Caused by: [twitter4j.TwitterException - api.twitter.com]
> 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 common frames omitted


Mime
View raw message