Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

class java.net.UnknownHostException

dougoutigi
Mega Contributor

Hi,

I have this exception : class java.net.UnknownHostException

I think it's cause by proxy.

Can someone help me please?

8 REPLIES 8

Chuck Tomasi
Tera Patron

Can you provide more information where you are seeing this message? Is it in one of your MID server log files? Is it appearing on the browser screen?



Thanks.


monicarazdan
ServiceNow Employee

Hi Alassane,



Does your DNS server resolve the host name to an IP successfully ?



What happens when you write this command nslookup in a terminal.



Can you also paste the complete stack dump.


dougoutigi
Mega Contributor

3.png


Caused by: class java.net.UnknownHostException: devxxxxx.service-now.com


  java.net.InetAddress.getAllByName0(Unknown Source)


  java.net.InetAddress.getAllByName(Unknown Source)


  java.net.InetAddress.getAllByName(Unknown Source)


  org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)


  org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:278)


  org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)


  org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)


  org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)


  org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)


  org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)


  org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)


  org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:283)


  org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:407)


  org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.get(ClientInvocationBuilder.java:159)


Are you able to do an nslookup on devxxxxx.service-now.com? (using your instance number for xxxxx, of course)