报表工具FineReport报错:java.sql.SQLException: The database is already in use by another process: lockFile

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: Servlet.init() for servlet ReportServer threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:662)

root cause 

java.lang.RuntimeException: CREATE EMB-DB: SET LOGSIZE FAILED!
com.fr.data.core.db.DBUtils.getEmbeddedDB(Unknown Source)
com.fr.data.core.db.DBUtils.getEmbeddedDB(Unknown Source)
com.fr.web.core.db.FineDB.refreshDB(Unknown Source)
com.fr.web.core.db.FineDB.getDB(Unknown Source)
com.fr.web.core.db.PlatformDB.refreshDB(Unknown Source)
com.fr.web.core.db.PlatformDB.getDB(Unknown Source)
com.fr.fs.web.service.ScheduleService.initScheduleServer(Unknown Source)
com.fr.fs.web.service.ScheduleService.<init>(Unknown Source)
com.fr.fs.FSModule.service4Register(Unknown Source)
com.fr.module.ServerModule.start(Unknown Source)
com.fr.report.module.EngineModule.start(Unknown Source)
com.fr.base.ModuleContext.startModule(Unknown Source)
com.fr.web.BaseServlet.init(Unknown Source)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:662)

root cause 

com.fr.third.org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The database is already in use by another process: lockFile: com.fr.third.org.hsqldb.persist.LockFile@d869f972[file =/home/creditcc/creditcc/webapps/WebReport/WEB-INF/finedb/db.lck, exists=true, locked=false, valid=false, ] method: checkHeartbeat length: 0)
com.fr.third.org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
com.fr.third.org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
com.fr.third.org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
com.fr.data.pool.MemoryConnection.create(Unknown Source)
com.fr.data.impl.JDBCDatabaseConnection.createConnection(Unknown Source)
com.fr.data.core.db.DBUtils.getEmbeddedDB(Unknown Source)
com.fr.data.core.db.DBUtils.getEmbeddedDB(Unknown Source)
com.fr.web.core.db.FineDB.refreshDB(Unknown Source)
com.fr.web.core.db.FineDB.getDB(Unknown Source)
com.fr.web.core.db.PlatformDB.refreshDB(Unknown Source)
com.fr.web.core.db.PlatformDB.getDB(Unknown Source)
com.fr.fs.web.service.ScheduleService.initScheduleServer(Unknown Source)
com.fr.fs.web.service.ScheduleService.<init>(Unknown Source)
com.fr.fs.FSModule.service4Register(Unknown Source)
com.fr.module.ServerModule.start(Unknown Source)
com.fr.report.module.EngineModule.start(Unknown Source)
com.fr.base.ModuleContext.startModule(Unknown Source)
com.fr.web.BaseServlet.init(Unknown Source)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:662)

root cause 

java.sql.SQLException: The database is already in use by another process: lockFile: com.fr.third.org.hsqldb.persist.LockFile@d869f972[file =/home/creditcc/creditcc/webapps/WebReport/WEB-INF/finedb/db.lck, exists=true, locked=false, valid=false, ] method: checkHeartbeat length: 0
com.fr.third.org.hsqldb.jdbc.Util.sqlException(Util.java:63)
com.fr.third.org.hsqldb.jdbc.jdbcConnection.<init>(jdbcConnection.java:2430)
com.fr.third.org.hsqldb.jdbcDriver.getConnection(jdbcDriver.java:183)
com.fr.third.org.hsqldb.jdbcDriver.connect(jdbcDriver.java:161)
com.fr.third.org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
com.fr.third.org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
com.fr.third.org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
com.fr.third.org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
com.fr.third.org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
com.fr.third.org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
com.fr.data.pool.MemoryConnection.create(Unknown Source)
com.fr.data.impl.JDBCDatabaseConnection.createConnection(Unknown Source)
com.fr.data.core.db.DBUtils.getEmbeddedDB(Unknown Source)
com.fr.data.core.db.DBUtils.getEmbeddedDB(Unknown Source)
com.fr.web.core.db.FineDB.refreshDB(Unknown Source)
com.fr.web.core.db.FineDB.getDB(Unknown Source)
com.fr.web.core.db.PlatformDB.refreshDB(Unknown Source)
com.fr.web.core.db.PlatformDB.getDB(Unknown Source)
com.fr.fs.web.service.ScheduleService.initScheduleServer(Unknown Source)
com.fr.fs.web.service.ScheduleService.<init>(Unknown Source)
com.fr.fs.FSModule.service4Register(Unknown Source)
com.fr.module.ServerModule.start(Unknown Source)
com.fr.report.module.EngineModule.start(Unknown Source)
com.fr.base.ModuleContext.startModule(Unknown Source)
com.fr.web.BaseServlet.init(Unknown Source)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:662)


曾经部署到tomcat中的FineReport报表工具今天报如上错误,经多方查证对比,发现原来确实是WebReport/WEB-INF/finedb/db.lck这个文件出了问题。将此文件删除后再重新访问此报表http://localhost:8080/WebReport/ReportServer,FineReport可以正常访问了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值