Bug 1008923 - Attempting to lock a transient node produces NPE
Summary: Attempting to lock a transient node produces NPE
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: ModeShape
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: ---
Assignee: Horia Chiorean
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-17 10:56 UTC by Horia Chiorean
Modified: 2016-02-10 08:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-10 08:59:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker MODE-2047 0 Blocker Closed Attempting to lock a transient node produces NPE 2014-02-17 14:54:48 UTC

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.


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