Maps
Maps

Reputation: 135

World Wind Java fails to retrieve WMS resources

I've downloaded the WorldWindJava SDK and run the HelloWorldWind example. However I get the following error every time:

Oct 21, 2016 2:16:48 PM gov.nasa.worldwind.util.SessionCacheRetrievalPostProcessor run SEVERE: Retrieval failed for http://worldwind20.arc.nasa.gov/mapcache?EXCEPTIONS=application/vnd.ogc.se_xml&REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0 Oct 21, 2016 2:16:48 PM gov.nasa.worldwind.util.SessionCacheUtils retrieveSessionData SEVERE: Exception while retrieving resources for http://worldwind20.arc.nasa.gov/mapcache?EXCEPTIONS=application/vnd.ogc.se_xml&REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0 java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at gov.nasa.worldwind.retrieve.HTTPRetriever.doRead(HTTPRetriever.java:48) at gov.nasa.worldwind.retrieve.URLRetriever.read(URLRetriever.java:368) at gov.nasa.worldwind.retrieve.URLRetriever.call(URLRetriever.java:244) at gov.nasa.worldwind.retrieve.URLRetriever.call(URLRetriever.java:1) at gov.nasa.worldwind.util.SessionCacheUtils.retrieveSessionData(SessionCacheUtils.java:80) at gov.nasa.worldwind.util.SessionCacheUtils.getOrRetrieveSessionCapabilities(SessionCacheUtils.java:170) at gov.nasa.worldwind.layers.BasicTiledImageLayer.retrieveResources(BasicTiledImageLayer.java:723) at gov.nasa.worldwind.layers.BasicTiledImageLayer$2.run(BasicTiledImageLayer.java:812) at java.lang.Thread.run(Unknown Source)

Needless to say, the application fails to render any WMS layer.

I've tried to navigate to the URL using a browser but the connection times out.

Any ideas on how I can fix this issue or work around it?

Upvotes: 2

Views: 2489

Answers (1)

Brian Pipa
Brian Pipa

Reputation: 806

Use http://data.worldwind.arc.nasa.gov/ instead of http://worldwind20.arc.nasa.gov - that's the actual URL. The URL you have must be one of the specific servers in the cluster.

So your full URL would be http://data.worldwind.arc.nasa.gov/mapcache?EXCEPTIONS=application/vnd.ogc.se_xml&REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0

Upvotes: 1

Related Questions