divinitus

ArcGIS Tiled Map Layer Service Problems

Discussion created by divinitus on Oct 5, 2013
Latest reply on Oct 7, 2013 by divinitus
Hi,

I am quite new to publishing of web servers. I am experimenting on interfacing the MapView on Android with my own ArcGIS Server. I have tried passing my server's url to a new ARCGisTiledMapServiceLayer, but I get a null pointer exception everytime when I attempt to connect. I tried using a ARCGisDynamicMapServiceLayer with the same parameters, and it works.

I am puzzled as to why this can happen.
My server's url is: http://137.132.145.135:6080/arcgis/rest/services/FASS/FASS/MapServer

The code I used was:
//crashes
mMapView.addLayer(new ArcGISTiledMapServiceLayer(hostname));
//works
mMapView.addLayer(new ArcGISDynamicMapServiceLayer(hostname));

The crash was:
10-06 10:58:03.953: E/ArcGIS(2566): url =http://137.132.145.135:6080/arcgis/rest/services/FASS/FASS/MapServer
10-06 10:58:03.953: E/ArcGIS(2566): java.lang.NullPointerException
10-06 10:58:03.953: E/ArcGIS(2566):  at com.esri.android.map.ags.ArcGISTiledMapServiceLayer.initLayer(Unknown Source)
10-06 10:58:03.953: E/ArcGIS(2566):  at com.esri.android.map.ags.ArcGISTiledMapServiceLayer$1.run(Unknown Source)
10-06 10:58:03.953: E/ArcGIS(2566):  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
10-06 10:58:03.953: E/ArcGIS(2566):  at java.util.concurrent.FutureTask.run(FutureTask.java:234)
10-06 10:58:03.953: E/ArcGIS(2566):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
10-06 10:58:03.953: E/ArcGIS(2566):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
10-06 10:58:03.953: E/ArcGIS(2566):  at java.lang.Thread.run(Thread.java:841)

Any help will be appreciated!
Thanks!

Outcomes