AnsweredAssumed Answered

java.lang.NumberFormatException: Invalid int: "WGS84(DD)"

Question asked by maregg on Jul 30, 2015
Latest reply on Aug 3, 2015 by WCrick-esristaff

I get the following error:

com.esri.arcgis.android.samples.wmslayer W/System.err﹕ java.lang.NumberFormatException: Invalid int: "WGS84(DD)"

 

I am adding a custom WMS server like this:

 

String wmsURL = "http://<lan ip>:8080/geoserver/wms";
wmsLayer = new WMSLayer(wmsURL, SpatialReference.create(32633));

 

I have debugged and decompiled the source and it is "class g" that is the problem, the array "t" which contains all the reference systems in the EPSG: range does Integer.parseInt(var2.substring(5)); ,but the "EPSG:WGS84(DD)" cannot be parsed like this and it throws the NumberFormatException and my layer will never be created.

 

This was testet with the WmsLayer sample code with version 'com.esri.arcgis.android:arcgis-android:10.2.6-2'

Outcomes