Bug 971908 - Saving multiple assets in a single tab from BRM (Guvnor) throws "binaryUpToDate has been modified externally"
Summary: Saving multiple assets in a single tab from BRM (Guvnor) throws "binaryUpToDa...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 5.x.x
Hardware: All
OS: All
high
high
Target Milestone: ---
: ---
Assignee: manstis
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-07 14:33 UTC by Musharraf Hussain
Modified: 2018-12-02 17:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
JBoss Enterprise BRMS Platform 5.3.1
Last Closed: 2013-08-22 07:04:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GUVNOR-2017 0 Major Resolved Saving multiple assets in a single tab from BRM (Guvnor) throws "binaryUpToDate has been modified externally" 2016-01-26 12:57:50 UTC

Description Musharraf Hussain 2013-06-07 14:33:44 UTC
Description of problem:


    If we try to save multiple rules opened in a single tab through BRM (i.e. Guvnor) it throws the error "binaryUpToDate has been modified externally" . As per the experts the saving of each asset will try to set the 'binaryUpToDate' attribute on the package item in which these assets belong to. This is the reason why we get "binaryUpToDate has been modified externally" for the second or all the following asset saving operations.

~~~
ERROR [RepositoryServiceServlet] Service method 'public abstract java.lang.String org.drools.guvnor.client.rpc.AssetService.checkinVersion(org.drools.guvnor.client.rpc.RuleAsset) throws com.google.gwt.user.client.rpc.SerializationException' threw an unexpected exception: org.drools.repository.RulesRepositoryException: Unable to checkin.
org.drools.repository.RulesRepositoryException: Unable to checkin.
at org.drools.repository.VersionableItem.checkin(VersionableItem.java:591)
at org.drools.guvnor.server.RepositoryAssetOperations.checkinVersion(RepositoryAssetOperations.java:141)
at org.drools.guvnor.server.RepositoryAssetService.checkinVersion(RepositoryAssetService.java:153)
...
Caused by: javax.jcr.InvalidItemStateException: Unable to update a stale item: item.save()
at org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:262)
at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:329)
...
Caused by: org.apache.jackrabbit.core.state.StaleItemStateException: da98caef-e1c4-4f98-880c-46a740c9131f/
{http://www.jboss.org/drools-repository/1.0}

binaryUpToDate 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)
...
~~~

    After this strangely, we can still see the assets are getting properly updated in BRM (i.e. Guvnor).



Version-Release number of selected component (if applicable):
- JBoss Enterprise BRMS Platform 5.3.1

How reproducible:
- Please follow the steps below to reproduce this issue

Steps to Reproduce:
1. Open multiple assets in a single tab
2. Save the assets in the editor by clicking "save all"
3.

Actual results:
- It throws the exception "binaryUpToDate has been modified externally"

Expected results:
- It should allow to save those multiple assets at one shot.

Additional info:

Comment 4 manstis 2013-08-02 13:33:21 UTC
See comment #2, not applicable to 6.0.x.

Comment 5 Prakash Aradhya 2013-08-06 19:56:05 UTC
This should nto be an issue in 6.0  Can QE double check this ?

Comment 6 Lukáš Petrovický 2013-08-22 07:04:52 UTC
No longer valid in 6.0.

Comment 7 JBoss JIRA Server 2013-11-18 12:02:31 UTC
Michael Anstis <michael.anstis> updated the status of jira GUVNOR-2017 to Resolved


Note You need to log in before you can comment on or make changes to this bug.