piyush.borkar

Issue regarding proxy setting in emulator

Discussion created by piyush.borkar on Dec 19, 2013
Hi,

I am not able to rectify why base map and map service are not visble.....
i have tried...
ProxySetup proxySetup = new ProxySetup();
String proxyHost = "myproxy.domain.com";
int proxyPort = 8080 ;
UserCredentials proxyCredentials = new UserCredentials();
proxyCredentials.setUserAccount("userName", "password");

try {
ProxySetup.setupProxy(proxyHost, proxyPort, proxyCredentials);
}
catch (EsriSecurityException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
but not working....

Pl. let me know is there any another way for setting proxt through code

thansksss:(
12-19 10:43:48.146: W/xyAuthenticationHandler(799): Authentication scheme ntlm not supported
12-19 10:43:48.174: W/DefaultRequestDirector(799): Authentication error: Unable to respond to any of these challenges: {ntlm=Proxy-Authenticate: NTLM, negotiate=Proxy-Authenticate: Negotiate}
12-19 10:43:48.474: E/ArcGIS(799): url =http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer
12-19 10:43:48.474: E/ArcGIS(799): com.esri.core.io.EsriServiceException: Proxy Authorization Required
12-19 10:43:48.474: E/ArcGIS(799):  at com.esri.core.internal.io.handler.c.a(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799):  at com.esri.core.internal.io.handler.g$1.handleResponse(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799):  at com.esri.core.internal.io.handler.g$1.handleResponse(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657)
12-19 10:43:48.474: E/ArcGIS(799):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:627)
12-19 10:43:48.474: E/ArcGIS(799):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:616)
12-19 10:43:48.474: E/ArcGIS(799):  at com.esri.core.internal.io.handler.g.a(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799):  at com.esri.core.internal.io.handler.g.a(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799):  at com.esri.core.internal.tasks.a.p.a(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799):  at com.esri.android.map.ags.ArcGISTiledMapServiceLayer.initLayer(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799):  at com.esri.android.map.ags.ArcGISTiledMapServiceLayer$1.run(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799):  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
12-19 10:43:48.474: E/ArcGIS(799):  at java.util.concurrent.FutureTask.run(FutureTask.java:234)
12-19 10:43:48.474: E/ArcGIS(799):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
12-19 10:43:48.474: E/ArcGIS(799):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
12-19 10:43:48.474: E/ArcGIS(799):  at java.lang.Thread.run(Thread.java:856)
12-19 10:43:48.944: W/xyAuthenticationHandler(799): Authentication scheme ntlm not supported
12-19 10:43:48.974: W/DefaultRequestDirector(799): Authentication error: Unable to respond to any of these challenges: {ntlm=Proxy-Authenticate: NTLM, negotiate=Proxy-Authenticate: Negotiate}
12-19 10:43:49.124: E/ArcGIS(799): url =http://10.217.38.145/ArcGIS/rest/services/RelatedFieldinspectiontool/MapServer
12-19 10:43:49.124: E/ArcGIS(799): com.esri.core.io.EsriServiceException: Proxy Authorization Required
12-19 10:43:49.124: E/ArcGIS(799):  at com.esri.core.internal.io.handler.c.a(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799):  at com.esri.core.internal.io.handler.g$1.handleResponse(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799):  at com.esri.core.internal.io.handler.g$1.handleResponse(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657)
12-19 10:43:49.124: E/ArcGIS(799):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:627)
12-19 10:43:49.124: E/ArcGIS(799):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:616)
12-19 10:43:49.124: E/ArcGIS(799):  at com.esri.core.internal.io.handler.g.a(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799):  at com.esri.core.internal.io.handler.g.a(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799):  at com.esri.core.internal.tasks.a.p.a(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799):  at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer.initLayer(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799):  at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer$1.run(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799):  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
12-19 10:43:49.124: E/ArcGIS(799):  at java.util.concurrent.FutureTask.run(FutureTask.java:234)
12-19 10:43:49.124: E/ArcGIS(799):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
12-19 10:43:49.124: E/ArcGIS(799):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
12-19 10:43:49.124: E/ArcGIS(799):  at java.lang.Thread.run(Thread.java:856)
12-19 10:43:50.526: D/ArcGIS.LifeCycle(799): surface.addLayer ->http://10.217.38.145/ArcGIS/rest/services/RelatedFieldinspectiontool/MapServer
12-19 10:43:50.605: D/ArcGIS.LifeCycle(799): >>>>FeatureLayer initLayer
12-19 10:43:51.084: D/dalvikvm(799): GC_CONCURRENT freed 225K, 11% free 2991K/3348K, paused 75ms+29ms, total 202ms
12-19 10:43:51.415: W/xyAuthenticationHandler(799): Authentication scheme ntlm not supported
12-19 10:43:51.465: W/DefaultRequestDirector(799): Authentication error: Unable to respond to any of these challenges: {ntlm=Proxy-Authenticate: NTLM, negotiate=Proxy-Authenticate: Negotiate}
12-19 10:43:51.795: E/ArcGIS(799): Failed to initialize the ArcGISFeatureLayer.

Outcomes