jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Huey <Steven.H...@sparta.com>
Subject Derby Persistence Errors
Date Thu, 03 May 2007 13:45:22 GMT
Hi,

We're using Jackrabbit 1.2.3 and started getting some errors from  
Derby that is preventing our repository from functioning. If anyone  
has any suggestions how I can clean this up it would be greatly  
appreciated. If you need any more information just let me know.

To me it looks like a node or something is corrupt with the Derby  
database. The stack trace has the UUID of the node that it's failing  
on, which I tried to retrieve even with a simple command line app  
that connects to the repository and uses the Session.getNodeByUUID 
(...) method, but it fails as well.

Any ideas?

Thanks,
Steve

= Snippet From Derby Log  
==========================================================

Database Class Loader started - derby.database.classpath=''
2007-05-02 17:41:59.626 GMT Thread 
[DefaultQuartzScheduler_Worker-1,5,main] (XID = 28872), (SESSIONID =  
0), (DATABASE = /opt/jcr/repository/workspaces/default/db), (DRDAID =  
null), Cleanup action starting
2007-05-02 17:41:59.626 GMT Thread 
[DefaultQuartzScheduler_Worker-1,5,main] (XID = 28872), (SESSIONID =  
0), (DATABASE = /opt/jcr/repository/workspaces/default/db), (DRDAID =  
null), Failed Statement is: select NODE_DATA from DEFAULT_NODE where  
NODE_ID = ?
java.lang.ArrayIndexOutOfBoundsException: -1
	at org.apache.derby.impl.store.raw.data.BasePage.getHeaderAtSlot 
(Unknown Source)
	at  
org.apache.derby.impl.store.raw.data.StoredPage.restorePortionLongColumn 
(Unknown Source)
	at  
org.apache.derby.impl.store.raw.data.OverflowInputStream.fillByteHolder( 
Unknown Source)
	at org.apache.derby.impl.store.raw.data.OverflowInputStream.<init> 
(Unknown Source)
	at  
org.apache.derby.impl.store.raw.data.StoredPage.readRecordFromArray 
(Unknown Source)
	at  
org.apache.derby.impl.store.raw.data.StoredPage.restoreLongRecordFromSlo 
t(Unknown Source)
	at  
org.apache.derby.impl.store.raw.data.StoredPage.restoreRecordFromSlot 
(Unknown Source)
	at org.apache.derby.impl.store.raw.data.BasePage.fetchFromSlot 
(Unknown Source)
	at  
org.apache.derby.impl.store.access.conglomerate.GenericConglomerateContr 
oller.fetch(Unknown Source)
	at  
org.apache.derby.impl.sql.execute.IndexRowToBaseRowResultSet.getNextRowC 
ore(Unknown Source)
	at  
org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCor 
e(Unknown Source)
	at  
org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow 
(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown  
Source)
	at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source)
	at  
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.loa 
d(DatabasePersistenceManager.java:339)
	at  
org.apache.jackrabbit.core.state.SharedItemStateManager.loadItemState 
(SharedItemStateManager.java:1101)
	at  
org.apache.jackrabbit.core.state.SharedItemStateManager.getNonVirtualIte 
mState(SharedItemStateManager.java:1028)
	at  
org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState 
(SharedItemStateManager.java:250)
	at  
org.apache.jackrabbit.core.state.LocalItemStateManager.getNodeState 
(LocalItemStateManager.java:95)
	at  
org.apache.jackrabbit.core.state.LocalItemStateManager.getItemState 
(LocalItemStateManager.java:150)
	at org.apache.jackrabbit.core.state.XAItemStateManager.getItemState 
(XAItemStateManager.java:226)
	at  
org.apache.jackrabbit.core.state.SessionItemStateManager.getItemState 
(SessionItemStateManager.java:177)
	at org.apache.jackrabbit.core.HierarchyManagerImpl.getItemState 
(HierarchyManagerImpl.java:120)
	at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath 
(HierarchyManagerImpl.java:267)
	at org.apache.jackrabbit.core.CachingHierarchyManager.resolvePath 
(CachingHierarchyManager.java:132)
	at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath 
(HierarchyManagerImpl.java:267)
	at org.apache.jackrabbit.core.CachingHierarchyManager.resolvePath 
(CachingHierarchyManager.java:132)
	at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath 
(HierarchyManagerImpl.java:203)
	at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath 
(HierarchyManagerImpl.java:341)
	at org.apache.jackrabbit.core.CachingHierarchyManager.resolvePath 
(CachingHierarchyManager.java:193)
	at org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath 
(NodeImpl.java:243)
	at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2412)
	at com.sparta.wcm.jobs.UpdateEmployeeList.initSession 
(UpdateEmployeeList.java:181)
	at com.sparta.wcm.jobs.UpdateEmployeeList.execute 
(UpdateEmployeeList.java:97)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run 
(SimpleThreadPool.java:529)
Cleanup action completed

= Snippet from our web application log  
==================================================

2007-05-02 12:41:59,682 ERROR  
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager  
- failed to read node state: 1c6889a0-02cc-47e2-9c69-ed44e2b07ca0
java.lang.ArrayIndexOutOfBoundsException: -1
	at org.apache.derby.impl.store.raw.data.BasePage.getHeaderAtSlot 
(Unknown Source)
	at  
org.apache.derby.impl.store.raw.data.StoredPage.restorePortionLongColumn 
(Unknown Source)
	at  
org.apache.derby.impl.store.raw.data.OverflowInputStream.fillByteHolder( 
Unknown Source)
	at org.apache.derby.impl.store.raw.data.OverflowInputStream.<init> 
(Unknown Source)
	at  
org.apache.derby.impl.store.raw.data.StoredPage.readRecordFromArray 
(Unknown Source)
	at  
org.apache.derby.impl.store.raw.data.StoredPage.restoreLongRecordFromSlo 
t(Unknown Source)
	at  
org.apache.derby.impl.store.raw.data.StoredPage.restoreRecordFromSlot 
(Unknown Source)
	at org.apache.derby.impl.store.raw.data.BasePage.fetchFromSlot 
(Unknown Source)
	at  
org.apache.derby.impl.store.access.conglomerate.GenericConglomerateContr 
oller.fetch(Unknown Source)
	at  
org.apache.derby.impl.sql.execute.IndexRowToBaseRowResultSet.getNextRowC 
ore(Unknown Source)
	at  
org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCor 
e(Unknown Source)
	at  
org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow 
(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown  
Source)
	at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source)
	at  
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.loa 
d(DatabasePersistenceManager.java:339)
	at  
org.apache.jackrabbit.core.state.SharedItemStateManager.loadItemState 
(SharedItemStateManager.java:1101)
	at  
org.apache.jackrabbit.core.state.SharedItemStateManager.getNonVirtualIte 
mState(SharedItemStateManager.java:1028)
	at  
org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState 
(SharedItemStateManager.java:250)
	at  
org.apache.jackrabbit.core.state.LocalItemStateManager.getNodeState 
(LocalItemStateManager.java:95)
	at  
org.apache.jackrabbit.core.state.LocalItemStateManager.getItemState 
(LocalItemStateManager.java:150)
	at org.apache.jackrabbit.core.state.XAItemStateManager.getItemState 
(XAItemStateManager.java:226)
	at  
org.apache.jackrabbit.core.state.SessionItemStateManager.getItemState 
(SessionItemStateManager.java:177)
	at org.apache.jackrabbit.core.HierarchyManagerImpl.getItemState 
(HierarchyManagerImpl.java:120)
	at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath 
(HierarchyManagerImpl.java:267)
	at org.apache.jackrabbit.core.CachingHierarchyManager.resolvePath 
(CachingHierarchyManager.java:132)
	at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath 
(HierarchyManagerImpl.java:267)
	at org.apache.jackrabbit.core.CachingHierarchyManager.resolvePath 
(CachingHierarchyManager.java:132)
	at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath 
(HierarchyManagerImpl.java:203)
	at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath 
(HierarchyManagerImpl.java:341)
	at org.apache.jackrabbit.core.CachingHierarchyManager.resolvePath 
(CachingHierarchyManager.java:193)
	at org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath 
(NodeImpl.java:243)
	at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2412)
	at com.sparta.wcm.jobs.UpdateEmployeeList.initSession 
(UpdateEmployeeList.java:181)
	at com.sparta.wcm.jobs.UpdateEmployeeList.execute 
(UpdateEmployeeList.java:97)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run 
(SimpleThreadPool.java:529)
2007-05-02 12:41:59,694 ERROR org.quartz.core.JobRunShell - Job  
DEFAULT.UpdateEmployeeList threw an unhandled Exception:
java.lang.RuntimeException: JCR error in UpdateEmployeeList.initSession
	at com.sparta.wcm.jobs.UpdateEmployeeList.initSession 
(UpdateEmployeeList.java:183)
	at com.sparta.wcm.jobs.UpdateEmployeeList.execute 
(UpdateEmployeeList.java:97)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run 
(SimpleThreadPool.java:529)
Caused by: javax.jcr.RepositoryException: failed to retrieve state of  
intermediary node: failed to read node state: 1c6889a0-02cc-47e2-9c69- 
ed44e2b07ca0: failed to read node state: 1c6889a0-02cc-47e2-9c69- 
ed44e2b07ca0
	at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath 
(HierarchyManagerImpl.java:211)
	at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath 
(HierarchyManagerImpl.java:341)
	at org.apache.jackrabbit.core.CachingHierarchyManager.resolvePath 
(CachingHierarchyManager.java:193)
	at org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath 
(NodeImpl.java:243)
	at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2412)
	at com.sparta.wcm.jobs.UpdateEmployeeList.initSession 
(UpdateEmployeeList.java:181)
	... 3 more



--

Steven Huey
Steven.Huey@sparta.com




Mime
View raw message