首页 / 浏览问题 / 云GIS / 问题详情
IServer启动出错,报 database is locked
2EXP 2021年05月14日
14-May-2021 09:10:34.434 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter iserver-services
 java.lang.IllegalStateException: java.sql.SQLException: database is locked
    at com.supermap.server.impl.RequestPerformanceRecordDAO.a(SourceFile:127)
    at com.supermap.server.impl.RequestPerformanceRecordDAO.<init>(SourceFile:57)
    at com.supermap.server.host.webapp.ApplicationFilter.a(SourceFile:176)
    at com.supermap.server.host.webapp.ApplicationFilter.a(SourceFile:80)
    at com.supermap.server.host.webapp.ApplicationFilter$1.call(SourceFile:121)
    at com.supermap.server.host.webapp.ApplicationFilter$1.call(SourceFile:118)
    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.a(SourceFile:177)
    at com.supermap.services.util.DelegatingErrorHandlingCallable.invokeQuietly(SourceFile:102)
    at com.supermap.server.host.webapp.ApplicationFilter.init(SourceFile:156)
    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4561)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5204)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: database is locked
    at org.sqlite.core.NativeDB.throwex(NativeDB.java:397)
    at org.sqlite.core.NativeDB._exec(Native Method)
    at org.sqlite.jdbc3.JDBC3Statement.executeUpdate(JDBC3Statement.java:116)
    at com.supermap.server.impl.RequestPerformanceRecordDAOInitializer.init(SourceFile:36)
    at com.supermap.server.impl.RequestPerformanceRecordDAO.a(SourceFile:125)
    ... 28 more

您这个问题可能是由于在启动iServer时之前启动的iServer尚未完全关闭导致的,您试试关闭所有的iServer进程,多执行几次shoutdown再重现启动iServer尝试看是否还是启动失败。这些方法都尝试了,还是不行

1个回答

你好,一般情况The database file is locked报错是关于文件型数据源被占用情况的输出。请您确认您的数据源中是否存在其他端占用的情况。比如是否在桌面端打开而没有关闭?
3,755EXP 2021年05月14日
...