mapservice does not load

504
2
Jump to solution
02-17-2014 11:07 PM
AliNadi
New Contributor
Hi, I'm fresh with arcgis android sdk
i has published a map service with arcgis server 10.1 as dynamic layer but when i run my first hellowworld project
mapview control is black and nothing happen logcat report some error as follow :

02-18 12:25:30.417: E/ArcGIS(532): url =http://192.168.0.101:6080/arcgis/rest/services/shahinshahr/MapServer
02-18 12:25:30.417: E/ArcGIS(532): java.lang.NullPointerException
02-18 12:25:30.417: E/ArcGIS(532):  at com.esri.android.map.ags.ArcGISTiledMapServiceLayer.initLayer(Unknown Source)
02-18 12:25:30.417: E/ArcGIS(532):  at com.esri.android.map.ags.ArcGISTiledMapServiceLayer$1.run(Unknown Source)
02-18 12:25:30.417: E/ArcGIS(532):  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
02-18 12:25:30.417: E/ArcGIS(532):  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
02-18 12:25:30.417: E/ArcGIS(532):  at java.util.concurrent.FutureTask.run(FutureTask.java:137)
02-18 12:25:30.417: E/ArcGIS(532):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
02-18 12:25:30.417: E/ArcGIS(532):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
02-18 12:25:30.417: E/ArcGIS(532):  at java.lang.Thread.run(Thread.java:856)

every other logs are OK.
please help me i really spent a lot of time and am getting crazy
regard
0 Kudos
1 Solution

Accepted Solutions
AliNadi
New Contributor
Please could you share the code?


dear rburk;366957 thank you to reply, my problem has been solved i suddenly find out that the map i published was dynamic not tile cache while i was using  ArcGISTiledMapServiceLayer . i changed my map service to tile cache and every thing is ok now
regards

View solution in original post

0 Kudos
2 Replies
RobertBurke
Esri Contributor
Please could you share the code?
0 Kudos
AliNadi
New Contributor
Please could you share the code?


dear rburk;366957 thank you to reply, my problem has been solved i suddenly find out that the map i published was dynamic not tile cache while i was using  ArcGISTiledMapServiceLayer . i changed my map service to tile cache and every thing is ok now
regards
0 Kudos