Bug 780245 (SOA-2640)

Summary: cannot save jcr2 session after Node.remove() calls
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Aleksandar Kostadinov <akostadinov>
Component: EDSAssignee: Van Halbert <vhalbert>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.1.0.ER4CC: akostadinov, rhauch
Target Milestone: ---   
Target Release: 5.1.0.ER5   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-2640
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
postgresql 8.4 jdbc repository, JSP web application, repository schema generated through PostgreSQL/create.modeshape-jpa-connector.ddl
Last Closed: 2010-12-07 19:32:12 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:
Attachments:
Description Flags
JBoss Web_2.1.10 - Error report.html
none
index.jsp
none
modeshape-config.xml none

Description Aleksandar Kostadinov 2010-12-03 08:29:18 UTC
project_key: SOA

Calling Session.save() after nt:file Node.remove() causes NullPointerException. addNode() and remove() are called within the same session but not within the same save() call (unlike MODE-788). I'm attaching my jsp and the exception I'm seeing.

Comment 1 Aleksandar Kostadinov 2010-12-03 08:35:59 UTC
Interesting is the issue does not manifest when using the preconfigured "eds" repository but only with my custom postgresql 8.4 repo. I haven't tried other databases yet but will. Attaching modeshape-config.xml also.

Comment 2 Aleksandar Kostadinov 2010-12-03 08:43:22 UTC
Attachment: Added: JBoss Web_2.1.10 - Error report.html
Attachment: Added: index.jsp
Attachment: Added: modeshape-config.xml


Comment 3 Van Halbert 2010-12-03 12:53:47 UTC
Link: Added: This issue Cloned to SOA-2641


Comment 4 Randall Hauch 2010-12-03 22:34:01 UTC
MODE-1035 has been marked as resolved. Hopefully you will see this fixed in the next ER build.

Comment 5 Van Halbert 2010-12-05 14:35:19 UTC
ModeShape committed the changes to the 2.2.x product branch and should be in the ER5 release.

Comment 6 Aleksandar Kostadinov 2010-12-07 19:32:12 UTC
Thanks, it is working now.