ArcGis地图服务连接不上(ArcGIS Server for Java的REST接口无法访问)解决方法
1、首先这个问题的表现方式就是访问 http://service:8399/arcgis/rest/services时即主机上的所有地图服务,无法访问,一直显示404错误;还有一种表现就是在你的Flex工程里访问某个地图的url时控制台里出现如下错误提示:
20:38:24.112 [INFO] mx.messaging.Producer '8423C711-3E79-4A9C-1CCE-8B771A530D04' producer connected.
20:38:24.425 [INFO] mx.messaging.Producer '8423C711-3E79-4A9C-1CCE-8B771A530D04' producer acknowledge of '99971750-FC10-0552-28F2-8B771A633155'.
20:38:24.427 [ERROR] mx.messaging.Producer '8423C711-3E79-4A9C-1CCE-8B771A530D04' producer fault for '99971750-FC10-0552-28F2-8B771A633155'.
20:38:24.430 [ERROR] com.esri.ags.tasks.MapServiceInfoTask ::[FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: 流错误。 URL: http://service:8399/arcgis/rest/services/856/MapServer/?f=json"]. URL: http://service:8399/arcgis/rest/services/856/MapServer/?f=json"] messageId="585A215E-25D8-0006-F090-8B771BAE12C2" type="fault" bubbles=false cancelable=true eventPhase=2]
20:38:24.431 [ERROR] com.esri.ags.layers.ArcGISDynamicMapServiceLayer myDynamicService::[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: 流错误。 URL: http://service:8399/arcgis/rest/services/856/MapServer/?f=json"]. URL: http://service:8399/arcgis/rest/services/856/MapServer/?f=json"]
以上就是错误的表现,下面是解决方法。
2、解决方法:
遇到这个问题一般重启“ArcGIS Server Manager Service”这个服务就可以解决。
也可以先重启“ArcGIS Server Object Manager”这个服务之后再启动“ArcGIS Server Manager Service”,因为二者的启动顺序应该这样,有先后顺序。