StaleItemStateException when creating a snapshot in BRMS

Solution Unverified - Updated -

Issue

  • I get StaleItemStateException when I create a snapshot in BRMS
2013-05-28 04:29:16,939 [ajp-apr-xxx-17] [] INFO  org.drools.guvnor.server.RepositoryPackageOperations - USER:admin CREATING PACKAGE SNAPSHOT for package: [timed.AAOCP1012232.DATE_28_May_2013_08_27] snapshot name: [0.0.1-SNAPSHOT
2013-05-28 04:29:33,617 [ajp-apr-xxx-11] [] INFO  org.apache.jackrabbit.core.TransientRepository - Session opened
2013-05-28 04:29:33,661 [ajp-apr-xxx-11] [] INFO  org.drools.guvnor.server.RepositoryPackageOperations - USER:admin CREATING PACKAGE SNAPSHOT for package: [timed.AAOCP1012232.DATE_28_May_2013_08_27] snapshot name: [0.0.1-SNAPSHOT
2013-05-28 04:30:26,257 [ajp-apr-xxx-17] [] ERROR org.drools.repository.RulesRepository - Unable to create snapshot
javax.jcr.RepositoryException: update operation failed
        at org.apache.jackrabbit.core.BatchedItemOperations.update(BatchedItemOperations.java:161)
        at org.apache.jackrabbit.core.WorkspaceImpl.internalCopy(WorkspaceImpl.java:424)
        at org.apache.jackrabbit.core.WorkspaceImpl.copy(WorkspaceImpl.java:646)
        at org.drools.repository.RulesRepository.createPackageSnapshot(RulesRepository.java:591)
        at org.drools.guvnor.server.RepositoryPackageOperations.createPackageSnapshot(RepositoryPackageOperations.java:498)
...
Caused by: org.apache.jackrabbit.core.state.StaleItemStateException: 90902b92-7686-4f69-8552-c4d52a442cec has been modified externally
        at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:663)
        at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1458)
        at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1488)
        at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
        at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
        at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
        at org.apache.jackrabbit.core.BatchedItemOperations.update(BatchedItemOperations.java:157)
        ... 51 more

Environment

  • Red Hat JBoss BRMS
    • 5.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In