RuntimeForAndroid 100.6调用server10.6的加密服务报错:Connect to IP:6083 [/ IP] failed: SSL handshake timed out

我们的APP原来调用的地图服务是arcgis server10.2发布的加密服务一直是正常的,但是去年客户采购了arcgis server10.6,然后今年把数据也迁移到10.6上,就服务调用失败的问题,查看报错信息为:Connect to IP:6083 [/ IP] failed: SSL handshake timed out。
请教下各位大神这是什么情况,使用的调用方式是张工整理的场景一方式;

ArcGISTiledLayer layer = new ArcGISTiledLayer(url); UserCredential creds = new UserCredential(用户名, 密码); 
layer.setCredential(creds);
 
已邀请:

张佳期

赞同来自:

服务地址是什么样的,从您报错提示来看是访问的https协议的服务,导致报ssl问题,
您当前server是用的什么证书,ca证书还是自签名证明,如果是自签名证书,可以在代码中加个信任自签名证书的语句,例如:
AuthenticationManager.setTrustAllSigners(true);
 
如果是http通信协议,需要在arcgis server 的admin下将协议更改为http和https,默认只开启了https协议。
图2.png

 

要回复问题请先登录注册