jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lei Zhou" <L...@pointalliance.com>
Subject Jackrabbit 1.4.9 - Multiple transactions over single session?
Date Fri, 22 May 2009 16:07:25 GMT
I'm getting intermittent StaleItemStateException when updating a 
collection of nodes repeatedly. The first run of the use case never fails. 
But second or third run would fail on same set of data. 
Wonder how JR handles such use cases and what needs to be paid attention 
The exception output below: 

Caused by: org.apache.jackrabbit.core.state.StaleItemStateException: 
14229e16-a57c-42f3-91ba-a307c1b60ec9/{}DocumentReferences has been 
modified externally

My use case is as below: 

Begin Transaction(xid1)
   check out nodes
Commit Transaction(xid1)

Begin Transaction(xid2)
   update nodes/delete nodes
Commit Transaction(xid2)

Begin Transaction(xid3)
   check in nodes if exist
Commit Transaction(xid3)


Disclaimer: This message is intended only for the use of the individual or entity to which
it is addressed and may contain information which is privileged, confidential, proprietary,
or exempt from disclosure under applicable law. 

If you are not the intended recipient or the person responsible for delivering the message
to the intended recipient, you are strictly prohibited from disclosing, distributing, copying,
or in any way using this message. If you have received this communication in error, please
notify the sender and destroy and delete any copies you may have received. 
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message