之前找不到图层的问题已经解决了,是因为示例里面的图层名称和数据里的图层名称对不上,修改之后就可以了。问题链接地址:http://ask.supermap.com/6590 这个问题应该可以算是解决了。
但是遇到了新的问题,我是按照咱们超图提供的问题做的,但是问题不断,问题如下:
HTTP Status 500 - Index: 80, Size: 80
type Exception report
message Index: 80, Size: 80
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.IndexOutOfBoundsException: Index: 80, Size: 80
java.util.ArrayList.rangeCheck(ArrayList.java:653)
java.util.ArrayList.get(ArrayList.java:429)
com.supermap.services.providers.LayersUpdater.get(SourceFile:118)
com.supermap.services.providers.MapStatusManager.updateStatus(SourceFile:855)
com.supermap.services.providers.InnerUGCMapProvider.getMapImage(SourceFile:364)
com.supermap.services.providers.UGCMapProvider.getMapImage(SourceFile:199)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.supermap.server.impl.PerformanceProxyFactory$PerformanceProxyHandler.invoke(SourceFile:216)
com.sun.proxy.$Proxy33.getMapImage(Unknown Source)
com.supermap.sample.temperature.TemperatureImpl.getMapImage(TemperatureImpl.java:79)
com.supermap.sample.temperature.TemperatureServlet.doPost(TemperatureServlet.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.supermap.server.host.webapp.handlers.WebAppRequestDispatcher.forward(SourceFile:63)
com.supermap.server.host.webapp.handlers.ServiceDispatcherHandler$ResponseCacheFailedHandler.handle(SourceFile:805)
com.supermap.server.host.webapp.handlers.ServiceDispatcherHandler.handle(SourceFile:413)
com.supermap.server.host.webapp.handlers.AbstractHandler.process(SourceFile:193)
com.supermap.server.host.webapp.handlers.AbstractHandler.a(SourceFile:219)
com.supermap.server.host.webapp.handlers.AbstractHandler.invokeLowerPriorityHandlers(SourceFile:208)
com.supermap.server.host.webapp.handlers.AbstractHandler.process(SourceFile:195)
com.supermap.server.host.webapp.handlers.BasicHandler.process(SourceFile:299)
com.supermap.server.host.webapp.ApplicationFilter.doFilter(SourceFile:245)
note The full stack trace of the root cause is available in the Apache Tomcat/8.5.4 logs.