AnsweredAssumed Answered

java.net.UnknownHostException: server.arcgisonline.com Error - How to go around firewall issue?

Question asked by dhahn@raytheon.com on Sep 20, 2016

OK the problem appears to be firewall issue as I don't get same error running it from home.  Is there way to run sample application offline?

 

I'm very new to ArcGIS runtime SDK for Java and I'm having problem running a sample map application - Create a simple map application—ArcGIS Runtime SDK for Java | ArcGIS for Developers.  I'm running under Window 7 and are there issues the setup/environment I need to resolve before I can run it successfully?

 

java.net.UnknownHostException: server.arcgisonline.com
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:123)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:147)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:108)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:731)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:709)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:700)
at com.esri.core.internal.io.handler.h.a(Unknown Source)
at com.esri.core.internal.io.handler.h.a(Unknown Source)
at com.esri.core.internal.tasks.ags.t.a(Unknown Source)
at com.esri.core.internal.tasks.ags.t.execute(Unknown Source)
at com.esri.map.Layer.loadServiceInfo(Unknown Source)
at com.esri.map.Layer.getMapServerInfo(Unknown Source)
at com.esri.map.ArcGISTiledMapServiceLayer.internalInit(Unknown Source)
at com.esri.map.Layer$1.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

 

Thx in advance,

Dan.

Outcomes