Select to view content in your preferred language

ArcGIS Tiled Map Layer Service Problems

2434
2
10-05-2013 06:59 PM
SimKern_Cheh
New Contributor
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!
0 Kudos
2 Replies
KeithTurner
Occasional Contributor
Your service is reporting that it does not have a tile cache (Single Fused Map Cache: false).

Keith
0 Kudos
SimKern_Cheh
New Contributor
Hi Keith,

Thanks for your reply:) I will look into that!
0 Kudos