Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
core 1.4.5
-
None
-
None
-
Websphere 8.5.5, Drools Guvnor 5.0.1, Windows 7 64-bit
Description
After the Websphere app server initializes the error message below is thrown. There are currently no functional errors as a result of this error and Drools/Jackrabbit seems to work correctly but I do not know the root cause of the error. It looks like the JNDI connection is lost because the
javax.jcr.Session.logout() is being called.
Our repository.xml and workspace.xml has multiple FileSystems and PersistenceManagers pointing to the same database. We are using JNDIDatabaseFileSystem and JNDIDatabasePersistenceManager.
Here is the logged stack trace of the error:
[5/16/14 11:22:56:591 EDT] 00000031 SystemOut O ERROR 16-05 11:22:56,584 (DatabaseFileSystem.java:reestablishConnection:1033) failed to re-establish connection
javax.naming.NoInitialContextException
at org.apache.aries.jndi.DelegateContext.getDefaultContext(DelegateContext.java:233)
at org.apache.aries.jndi.DelegateContext.findContext(DelegateContext.java:216)
at org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161)
at javax.naming.InitialContext.lookup(InitialContext.java:436)
at org.apache.jackrabbit.core.fs.db.JNDIDatabaseFileSystem.getConnection(JNDIDatabaseFileSystem.java:74)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.initConnection(DatabaseFileSystem.java:956)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.reestablishConnection(DatabaseFileSystem.java:1029)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.executeStmt(DatabaseFileSystem.java:1074)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.isFolder(DatabaseFileSystem.java:393)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.getOutputStream(DatabaseFileSystem.java:719)
at org.apache.jackrabbit.core.fs.FileSystemResource.getOutputStream(FileSystemResource.java:179)
at org.apache.jackrabbit.core.lock.LockManagerImpl.save(LockManagerImpl.java:221)
at org.apache.jackrabbit.core.lock.LockManagerImpl.close(LockManagerImpl.java:144)
at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doDispose(RepositoryImpl.java:1889)
at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.dispose(RepositoryImpl.java:1831)
at org.apache.jackrabbit.core.RepositoryImpl.doShutdown(RepositoryImpl.java:994)
at org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:948)
at org.apache.jackrabbit.core.TransientRepository.stopRepository(TransientRepository.java:275)
at org.apache.jackrabbit.core.TransientRepository.loggedOut(TransientRepository.java:427)
at org.apache.jackrabbit.core.SessionImpl.notifyLoggedOut(SessionImpl.java:574)
at org.apache.jackrabbit.core.SessionImpl.logout(SessionImpl.java:1247)
at org.apache.jackrabbit.core.XASessionImpl.logout(XASessionImpl.java:403)
at org.drools.repository.RulesRepository.logout(RulesRepository.java:157)
at org.drools.repository.RulesRepository.finalize(RulesRepository.java:1445)
at java.lang.J9VMInternals.runFinalize(J9VMInternals.java:463)
[5/16/14 11:22:56:592 EDT] 00000031 SystemOut O ERROR 16-05 11:22:56,591 (DatabaseFileSystem.java:isFolder:401) failed to check existence of folder: /
com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Statement is closed.
at com.ibm.ws.rsadapter.jdbc.WSJdbcWrapper.createClosedException(WSJdbcWrapper.java:122)
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.runtimeXIfNotClosed(WSJdbcStatement.java:1857)
at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.setObject(WSJdbcPreparedStatement.java:2463)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.executeStmt(DatabaseFileSystem.java:1060)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.isFolder(DatabaseFileSystem.java:393)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.getOutputStream(DatabaseFileSystem.java:719)
at org.apache.jackrabbit.core.fs.FileSystemResource.getOutputStream(FileSystemResource.java:179)
at org.apache.jackrabbit.core.lock.LockManagerImpl.save(LockManagerImpl.java:221)
at org.apache.jackrabbit.core.lock.LockManagerImpl.close(LockManagerImpl.java:144)
at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doDispose(RepositoryImpl.java:1889)
at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.dispose(RepositoryImpl.java:1831)
at org.apache.jackrabbit.core.RepositoryImpl.doShutdown(RepositoryImpl.java:994)
at org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:948)
at org.apache.jackrabbit.core.TransientRepository.stopRepository(TransientRepository.java:275)
at org.apache.jackrabbit.core.TransientRepository.loggedOut(TransientRepository.java:427)
at org.apache.jackrabbit.core.SessionImpl.notifyLoggedOut(SessionImpl.java:574)
at org.apache.jackrabbit.core.SessionImpl.logout(SessionImpl.java:1247)
at org.apache.jackrabbit.core.XASessionImpl.logout(XASessionImpl.java:403)
at org.drools.repository.RulesRepository.logout(RulesRepository.java:157)
at org.drools.repository.RulesRepository.finalize(RulesRepository.java:1445)
at java.lang.J9VMInternals.runFinalize(J9VMInternals.java:463)
[5/16/14 11:23:06:594 EDT] 00000031 SystemOut O ERROR 16-05 11:23:06,593 (DatabaseFileSystem.java:reestablishConnection:1033) failed to re-establish connection
javax.naming.NoInitialContextException
at org.apache.aries.jndi.DelegateContext.getDefaultContext(DelegateContext.java:233)
at org.apache.aries.jndi.DelegateContext.findContext(DelegateContext.java:216)
at org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161)
at javax.naming.InitialContext.lookup(InitialContext.java:436)
at org.apache.jackrabbit.core.fs.db.JNDIDatabaseFileSystem.getConnection(JNDIDatabaseFileSystem.java:74)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.initConnection(DatabaseFileSystem.java:956)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.reestablishConnection(DatabaseFileSystem.java:1029)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.executeStmt(DatabaseFileSystem.java:1074)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.exists(DatabaseFileSystem.java:328)
at org.apache.jackrabbit.core.fs.BasedFileSystem.exists(BasedFileSystem.java:121)
at org.apache.jackrabbit.core.fs.FileSystemResource.makeParentDirs(FileSystemResource.java:100)
at org.apache.jackrabbit.core.RepositoryImpl.storeRepProps(RepositoryImpl.java:1136)
at org.apache.jackrabbit.core.RepositoryImpl.doShutdown(RepositoryImpl.java:1009)
at org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:948)
at org.apache.jackrabbit.core.TransientRepository.stopRepository(TransientRepository.java:275)
at org.apache.jackrabbit.core.TransientRepository.loggedOut(TransientRepository.java:427)
at org.apache.jackrabbit.core.SessionImpl.notifyLoggedOut(SessionImpl.java:574)
at org.apache.jackrabbit.core.SessionImpl.logout(SessionImpl.java:1247)
at org.apache.jackrabbit.core.XASessionImpl.logout(XASessionImpl.java:403)
at org.drools.repository.RulesRepository.logout(RulesRepository.java:157)
at org.drools.repository.RulesRepository.finalize(RulesRepository.java:1445)
at java.lang.J9VMInternals.runFinalize(J9VMInternals.java:463)
[5/16/14 11:23:06:596 EDT] 00000031 SystemOut O ERROR 16-05 11:23:06,595 (DatabaseFileSystem.java:exists:337) failed to check existence of file system entry: /meta
com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Statement is closed.
at com.ibm.ws.rsadapter.jdbc.WSJdbcWrapper.createClosedException(WSJdbcWrapper.java:122)
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.runtimeXIfNotClosed(WSJdbcStatement.java:1857)
at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.setObject(WSJdbcPreparedStatement.java:2463)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.executeStmt(DatabaseFileSystem.java:1060)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.exists(DatabaseFileSystem.java:328)
at org.apache.jackrabbit.core.fs.BasedFileSystem.exists(BasedFileSystem.java:121)
at org.apache.jackrabbit.core.fs.FileSystemResource.makeParentDirs(FileSystemResource.java:100)
at org.apache.jackrabbit.core.RepositoryImpl.storeRepProps(RepositoryImpl.java:1136)
at org.apache.jackrabbit.core.RepositoryImpl.doShutdown(RepositoryImpl.java:1009)
at org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:948)
at org.apache.jackrabbit.core.TransientRepository.stopRepository(TransientRepository.java:275)
at org.apache.jackrabbit.core.TransientRepository.loggedOut(TransientRepository.java:427)
at org.apache.jackrabbit.core.SessionImpl.notifyLoggedOut(SessionImpl.java:574)
at org.apache.jackrabbit.core.SessionImpl.logout(SessionImpl.java:1247)
at org.apache.jackrabbit.core.XASessionImpl.logout(XASessionImpl.java:403)
at org.drools.repository.RulesRepository.logout(RulesRepository.java:157)
at org.drools.repository.RulesRepository.finalize(RulesRepository.java:1445)
at java.lang.J9VMInternals.runFinalize(J9VMInternals.java:463)
[5/16/14 11:23:06:598 EDT] 00000031 SystemOut O ERROR 16-05 11:23:06,596 (RepositoryImpl.java:doShutdown:1011) failed to persist repository properties
javax.jcr.RepositoryException: failed to persist repository properties: failed to check existence of file system entry: /meta: failed to check existence of file system entry: /meta
at org.apache.jackrabbit.core.RepositoryImpl.storeRepProps(RepositoryImpl.java:1147)
at org.apache.jackrabbit.core.RepositoryImpl.doShutdown(RepositoryImpl.java:1009)
at org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:948)
at org.apache.jackrabbit.core.TransientRepository.stopRepository(TransientRepository.java:275)
at org.apache.jackrabbit.core.TransientRepository.loggedOut(TransientRepository.java:427)
at org.apache.jackrabbit.core.SessionImpl.notifyLoggedOut(SessionImpl.java:574)
at org.apache.jackrabbit.core.SessionImpl.logout(SessionImpl.java:1247)
at org.apache.jackrabbit.core.XASessionImpl.logout(XASessionImpl.java:403)
at org.drools.repository.RulesRepository.logout(RulesRepository.java:157)
at org.drools.repository.RulesRepository.finalize(RulesRepository.java:1445)
at java.lang.J9VMInternals.runFinalize(J9VMInternals.java:463)
Caused by:
org.apache.jackrabbit.core.fs.FileSystemException: failed to check existence of file system entry: /meta
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.exists(DatabaseFileSystem.java:338)
at org.apache.jackrabbit.core.fs.BasedFileSystem.exists(BasedFileSystem.java:121)
at org.apache.jackrabbit.core.fs.FileSystemResource.makeParentDirs(FileSystemResource.java:100)
at org.apache.jackrabbit.core.RepositoryImpl.storeRepProps(RepositoryImpl.java:1136)
... 10 more
Caused by:
com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Statement is closed.
at com.ibm.ws.rsadapter.jdbc.WSJdbcWrapper.createClosedException(WSJdbcWrapper.java:122)
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.runtimeXIfNotClosed(WSJdbcStatement.java:1857)
at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.setObject(WSJdbcPreparedStatement.java:2463)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.executeStmt(DatabaseFileSystem.java:1060)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.exists(DatabaseFileSystem.java:328)
... 13 more
org.apache.jackrabbit.core.fs.FileSystemException: failed to check existence of file system entry: /meta
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.exists(DatabaseFileSystem.java:338)
at org.apache.jackrabbit.core.fs.BasedFileSystem.exists(BasedFileSystem.java:121)
at org.apache.jackrabbit.core.fs.FileSystemResource.makeParentDirs(FileSystemResource.java:100)
at org.apache.jackrabbit.core.RepositoryImpl.storeRepProps(RepositoryImpl.java:1136)
at org.apache.jackrabbit.core.RepositoryImpl.doShutdown(RepositoryImpl.java:1009)
at org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:948)
at org.apache.jackrabbit.core.TransientRepository.stopRepository(TransientRepository.java:275)
at org.apache.jackrabbit.core.TransientRepository.loggedOut(TransientRepository.java:427)
at org.apache.jackrabbit.core.SessionImpl.notifyLoggedOut(SessionImpl.java:574)
at org.apache.jackrabbit.core.SessionImpl.logout(SessionImpl.java:1247)
at org.apache.jackrabbit.core.XASessionImpl.logout(XASessionImpl.java:403)
at org.drools.repository.RulesRepository.logout(RulesRepository.java:157)
at org.drools.repository.RulesRepository.finalize(RulesRepository.java:1445)
at java.lang.J9VMInternals.runFinalize(J9VMInternals.java:463)
Caused by:
com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Statement is closed.
at com.ibm.ws.rsadapter.jdbc.WSJdbcWrapper.createClosedException(WSJdbcWrapper.java:122)
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.runtimeXIfNotClosed(WSJdbcStatement.java:1857)
at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.setObject(WSJdbcPreparedStatement.java:2463)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.executeStmt(DatabaseFileSystem.java:1060)
at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.exists(DatabaseFileSystem.java:328)
... 13 more