Getting java.net.NoRouteToHostException

246 views
Skip to first unread message

shabda.raaj

unread,
Oct 29, 2006, 3:18:44 AM10/29/06
to AdWords API Forum
I just downloaded everything added jars to classpath and tried to run a
example file to check if everything is ok. I keep getting a
java.net.NoRouteToHostException. Javadocs for the same can be found at
http://java.sun.com/j2se/1.4.2/docs/api/java/net/NoRouteToHostException.html.

I am using the java client library to access the API and I am behind my
company firewall.
Does the api use any specific port which are generally blocked by
firewalls?

shabda.raaj

unread,
Oct 29, 2006, 3:21:55 AM10/29/06
to AdWords API Forum
The stack trace is below,
Oct 29, 2006 1:44:09 PM org.apache.axis.utils.JavaUtils
isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler
and javax.mail.internet.MimeMultipart). Attachment support is disabled.
Exception in thread "main" AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.NoRouteToHostException: No route to host:
connect
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.NoRouteToHostException:
No route to host: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(Unknown
Source)
at
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown
Source)
at
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at
com.google.api.adwords.v6.InfoServiceSoapBindingStub.getFreeUsageQuotaThisMonth_aroundBody6(InfoServiceSoapBindingStub.java:434)
at
com.google.api.adwords.v6.InfoServiceSoapBindingStub.getFreeUsageQuotaThisMonth_aroundBody7$advice(InfoServiceSoapBindingStub.java:128)
at
com.google.api.adwords.v6.InfoServiceSoapBindingStub.getFreeUsageQuotaThisMonth(InfoServiceSoapBindingStub.java:1)
at InfoServiceDemo.main(InfoServiceDemo.java:31)

{http://xml.apache.org/axis/}hostname:PC-SRAAJ-IN

java.net.NoRouteToHostException: No route to host: connect
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at
com.google.api.adwords.v6.InfoServiceSoapBindingStub.getFreeUsageQuotaThisMonth_aroundBody6(InfoServiceSoapBindingStub.java:434)
at
com.google.api.adwords.v6.InfoServiceSoapBindingStub.getFreeUsageQuotaThisMonth_aroundBody7$advice(InfoServiceSoapBindingStub.java:128)
at
com.google.api.adwords.v6.InfoServiceSoapBindingStub.getFreeUsageQuotaThisMonth(InfoServiceSoapBindingStub.java:1)
at InfoServiceDemo.main(InfoServiceDemo.java:31)
Caused by: java.net.NoRouteToHostException: No route to host: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(Unknown Source)
at
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown
Source)
at
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
... 13 more

shabda.raaj

unread,
Oct 30, 2006, 3:44:48 AM10/30/06
to AdWords API Forum
Also I use proxy to acess outside sites. So possibly that is the
problem. How can I specify the proxy settings there?

Reply all
Reply to author
Forward
0 new messages