首页 / 浏览问题 / 云GIS / 问题详情
iserver10.2.1添加服务扩展,后导致服务无法启动
1EXP 2023年03月17日
2023-3-16 19:56:16 - ERROR - 启动服务失败。 com.thoughtworks.xstream.security.ForbiddenClassException: cn.telewarecbd.components.AddressMatchConfig at com.thoughtworks.xstream.security.NoTypePermission.allows(NoTypePermission.java:26) ~[xstream-1.4.18.jar:1.4.18] at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:74) ~[xstream-1.4.18.jar:1.4.18] at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) ~[xstream-1.4.18.jar:1.4.18] at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47) ~[xstream-1.4.18.jar:1.4.18] at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:31) ~[xstream-1.4.18.jar:1.4.18] at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133) ~[xstream-1.4.18.jar:1.4.18] at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) ~[xstream-1.4.18.jar:1.4.18] at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1391) ~[xstream-1.4.18.jar:1.4.18] at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1376) ~[xstream-1.4.18.jar:1.4.18] at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1261) ~[xstream-1.4.18.jar:1.4.18] at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1252) ~[xstream-1.4.18.jar:1.4.18] at com.supermap.services.util.XMLTransformUtils.fromNode(SourceFile:144) ~[service-model-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.config.impl.ComponentSettingParser.a(SourceFile:106) ~[server-host-model-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.config.impl.ComponentSettingParser.parse(SourceFile:86) ~[server-host-model-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.config.impl.ServiceConfigParser.c(SourceFile:131) ~[server-host-model-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.config.impl.ServiceConfigParser.parse(SourceFile:51) ~[server-host-model-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.config.impl.XMLConfigImpl.b(SourceFile:743) ~[server-host-model-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.config.impl.XMLConfigImpl.(SourceFile:172) ~[server-host-model-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.config.impl.ConfigFactory.newInstance(SourceFile:22) ~[server-host-model-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.config.impl.ConfigFactory.newInstance(SourceFile:41) ~[server-host-model-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.host.webapp.handlers.BasicHandler.p(SourceFile:877) ~[server-hosts-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.host.webapp.handlers.BasicHandler.r(SourceFile:905) ~[server-hosts-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.host.webapp.handlers.BasicHandler.n(SourceFile:734) ~[server-hosts-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.host.webapp.handlers.BasicHandler.a(SourceFile:641) ~[server-hosts-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.host.webapp.handlers.BasicHandler.init(SourceFile:187) ~[server-hosts-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.host.webapp.ApplicationFilter.a(SourceFile:216) ~[server-hosts-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.host.webapp.ApplicationFilter.a(SourceFile:80) ~[server-hosts-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.host.webapp.ApplicationFilter$1.call(SourceFile:123) ~[server-hosts-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.host.webapp.ApplicationFilter$1.call(SourceFile:120) ~[server-hosts-10.2.1-20429.jar:10.2.1-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_265] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_265] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_265] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_265] at com.supermap.services.util.DelegatingErrorHandlingCallable$ReflectInvoker.a(SourceFile:177) [service-model-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.services.util.DelegatingErrorHandlingCallable.invokeQuietly(SourceFile:102) [service-model-10.2.1-20429.jar:10.2.1-SNAPSHOT] at com.supermap.server.host.webapp.ApplicationFilter.init(SourceFile:158) [server-hosts-10.2.1-20429.jar:10.2.1-SNAPSHOT] at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) [catalina.jar:8.5.72] at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) [catalina.jar:8.5.72] at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105) [catalina.jar:8.5.72] at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4607) [catalina.jar:8.5.72] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5258) [catalina.jar:8.5.72] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:8.5.72] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) [catalina.jar:8.5.72] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727) [catalina.jar:8.5.72] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695) [catalina.jar:8.5.72] at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1177) [catalina.jar:8.5.72] at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1925) [catalina.jar:8.5.72] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_265] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_265] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_265] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_265] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265] iserver10.2.1添加服务扩展,按照官方服务接口层扩展进行后导致服务无法启动

1个回答

您好,看您这个报错没法确定您的代码究竟哪里有问题,建议您参考更详细的扩展开发入门流程以及开发过程中打断点调试定位问题。

参考教程:

https://blog.csdn.net/supermapsupport/article/details/127007179

断点调试:

建议根据您所用的IDE,在开发过程中与被扩展开发的iServer进行JAVA远程调试,以便断点测试提高开发效率。

希望可以帮助到您。
9,823EXP 2023年03月17日
...