Bug 1008923

Summary: Attempting to lock a transient node produces NPE
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Horia Chiorean <hchiorea>
Component: ModeShapeAssignee: Horia Chiorean <hchiorea>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: fnguyen, ldimaggi
Target Milestone: CR1Keywords: QA-Closed
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-10 08:59:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Horia Chiorean 2013-09-17 10:56:47 UTC
Attempting to lock a transient node via the session's lock manager before calling session.save() produces the following exception:

Caused by: java.lang.NullPointerException
at org.modeshape.jcr.cache.document.SessionNode.updateReferences(SessionNode.java:791)
at org.modeshape.jcr.cache.document.SessionNode.setProperty(SessionNode.java:766)
at org.modeshape.jcr.RepositoryLockManager.lock(RepositoryLockManager.java:209)
	... 38 more

Comment 1 JBoss JIRA Server 2013-09-18 12:58:18 UTC
Horia Chiorean <hchiorea> made a comment on jira MODE-2047

According to the Javadoc from the spec methods any kind of locking on node which contains modifications should throw an {{InvalidItemStateException}}

Comment 2 JBoss JIRA Server 2013-09-18 13:03:30 UTC
Horia Chiorean <hchiorea> made a comment on jira MODE-2047

According to the Javadoc from the spec methods any kind of locking on a node which contains modifications should throw an {{InvalidItemStateException}}

Comment 3 JBoss JIRA Server 2013-09-18 14:33:15 UTC
Randall Hauch <rhauch> made a comment on jira MODE-2047

Merged into the 'master' branch. Leaving open until it is also cherry-picked to the '3.3.x-prod-ip6.0' branch.

Comment 9 JBoss JIRA Server 2013-10-24 09:19:40 UTC
Randall Hauch <rhauch> updated the status of jira MODE-2047 to Closed

Comment 10 belong 2013-11-19 23:19:50 UTC
Fixed before GA - setting to requires_doc_text- accordingly

Comment 11 Filip Nguyen 2014-02-17 14:54:42 UTC
Retested on GA.