Select to view content in your preferred language

Logging of uninitialized layer

2458
1
09-24-2015 05:00 AM
nita14
by
Frequent Contributor

Hi Runtime Java Team,

I would like to share with you one remark about the error logging. When the layer is uninitialized there should be more logging available. At 10.2.4 version there is no feedback from SDK what is going wrong. There should be logging enabled in debug mode too.

In my case there was a conflict between Apache HttpClient 4.0.1 and 4.2.1 version resulting in ArcGISLocalDynamicMapServiceLayer and ArcGISTiledMapServiceLayer no displaying.

Finally I got from LocalServer the following error which made my think about http client.

Message : Server listening on : http://127.0.0.1:50001/arcgis/rest

SEVERE [global]

java.lang.NoSuchFieldError: DATE_PATTERNS

  at com.esri.core.internal.io.handler.c$a.<init>(Unknown Source)

  at com.esri.core.internal.io.handler.c$4.newInstance(Unknown Source)

  at org.apache.http.cookie.CookieSpecRegistry.getCookieSpec(CookieSpecRegistry.java:110)

  at org.apache.http.client.protocol.RequestAddCookies.process(RequestAddCookies.java:174)

  at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:109)

  at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:176)

  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:515)

  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)

  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1066)

  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1044)

  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1035)

  at com.esri.core.internal.io.handler.h.a(Unknown Source)

  at com.esri.core.internal.io.handler.h.a(Unknown Source)

  at com.esri.core.internal.tasks.ags.t.a(Unknown Source)

  at com.esri.core.internal.tasks.ags.t.execute(Unknown Source)

  at com.esri.map.Layer.loadServiceInfo(Unknown Source)

  at com.esri.map.Layer.getMapServerInfo(Unknown Source)

  at com.esri.map.ArcGISDynamicMapServiceLayer.internalInit(Unknown Source)

  at com.esri.client.local.ArcGISLocalDynamicMapServiceLayer.c(Unknown Source)

  at com.esri.client.local.ArcGISLocalDynamicMapServiceLayer.a(Unknown Source)

  at com.esri.client.local.ArcGISLocalDynamicMapServiceLayer$a.localServiceStartComplete(Unknown Source)

  at com.esri.client.local.LocalService.fireLocalServiceStartCompleteEvent(Unknown Source)

  at com.esri.client.local.LocalService.a(Unknown Source)

  at com.esri.client.local.LocalService$a.run(Unknown Source)

Thank you for considering to add this feature in the next version of Runtime.

Regards,

Adam

Tags (1)
0 Kudos
1 Reply
EricBader
Honored Contributor

Hi Adam.

Thank you for this. Yes, we do not recommend any other version of HttpClient other than the one that is shipped as a dependency with the API. For obvious reasons, like this one. We can only test and certify what we ship with, unfortunately. Keep in mind that the HttpClient libs are being updated in the next major release of the SDK, coming in 2016.

0 Kudos