首页 / 浏览问题 / 云GIS / 问题详情
Linux iServer 部署启动错误
1EXP 2022年04月28日
SuperMap iObjects Java环境变量已配置且已生效,但是在启动Iserver时还是会报错。

java.lang.NullPointerException
        at com.supermap.services.util.Tool.getSystemDLLPaths(Tool.java:1291)
        at com.supermap.services.util.Tool.getSystemUGOPath(Tool.java:1297)
        at com.supermap.server.host.webapp.ApplicationFilter.doInit(ApplicationFilter.java:174)
        at com.supermap.server.host.webapp.ApplicationFilter.access$000(ApplicationFilter.java:80)
        at com.supermap.server.host.webapp.ApplicationFilter$1.call(ApplicationFilter.java:123)
        at com.supermap.server.host.webapp.ApplicationFilter$1.call(ApplicationFilter.java:120)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.supermap.services.util.DelegatingErrorHandlingCallable$ReflectInvoker.invoke(DelegatingErrorHandlingCallable.java:177)
        at com.supermap.services.util.DelegatingErrorHandlingCallable.invokeQuietly(DelegatingErrorHandlingCallable.java:102)
        at com.supermap.server.host.webapp.ApplicationFilter.init(ApplicationFilter.java:158)
        at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:272)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:253)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:102)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4613)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5256)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1024)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:825)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
        at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
2022-4-28 15:29:46 - ERROR - Failed to start service.

1个回答

从报错com.supermap.services.util.Tool.getSystemUGOPath来看像是获取iobjects java组件的bin目录环境变量失败,获取的是空。

为了避免环境变量混乱导致问题,建议按如下方式在linux安装iserver:

1、根据机器名称申请试用许可,许可放入 /opt/SuperMap/License 目录下,需要注意大小写敏感和文件用户权限。

2、解压iserver

3、在iserver\support目录下,安装相关依赖库 ./dependencies_check_and_install.sh install -y 。

4、在iserver\bin目录下启动iserver服务,sh startup.sh

注意:不需要额外配置环境变量。
1,520EXP 2022年04月29日
...