Bug 780245 (SOA-2640) - cannot save jcr2 session after Node.remove() calls
Summary: cannot save jcr2 session after Node.remove() calls
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-2640
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: EDS
Version: 5.1.0.ER4
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 5.1.0.ER5
Assignee: Van Halbert
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-03 08:29 UTC by Aleksandar Kostadinov
Modified: 2010-12-07 19:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
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


Attachments (Terms of Use)
JBoss Web_2.1.10 - Error report.html (5.85 KB, text/html)
2010-12-03 08:43 UTC, Aleksandar Kostadinov
no flags Details
index.jsp (4.45 KB, application/octet-stream)
2010-12-03 08:43 UTC, Aleksandar Kostadinov
no flags Details
modeshape-config.xml (16.68 KB, text/xml)
2010-12-03 08:43 UTC, Aleksandar Kostadinov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker MODE-1035 0 None None None Never
Red Hat Issue Tracker SOA-2640 0 None None None Never

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.


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