Bug 724660 (BRMS-563) - After importing and reimporting same XML, the PathNotFoundException is thrown when archiving package. ModeShape used.
Summary: After importing and reimporting same XML, the PathNotFoundException is thrown...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: BRMS-563
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: Modeshape
Version: 5.1.0 GA
Hardware: Unspecified
OS: Unspecified
urgent
unspecified
Target Milestone: ---
: 5.1.0.PostGA
Assignee: Randall Hauch
QA Contact:
URL: http://jira.jboss.org/jira/browse/BRM...
Whiteboard:
Depends On:
Blocks: 780543
TreeView+ depends on / blocked
 
Reported: 2011-03-04 12:17 UTC by Petr Široký
Modified: 2011-09-20 12:30 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
ModeShape from SOA 5.1 GA (revision 2692) Local MySQL 5.1 database.
Last Closed: 2011-03-22 23:57:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
archive-package-error.png (65.81 KB, image/png)
2011-03-04 12:18 UTC, Petr Široký
no flags Details
brms-jdbc-ds.xml (1.27 KB, text/xml)
2011-03-04 12:18 UTC, Petr Široký
no flags Details
components.xml (3.20 KB, text/xml)
2011-03-04 12:18 UTC, Petr Široký
no flags Details
modeshape-config.xml (5.78 KB, text/xml)
2011-03-04 12:18 UTC, Petr Široký
no flags Details
rule_repository.xml (319.39 KB, text/xml)
2011-03-04 12:18 UTC, Petr Široký
no flags Details
server.log (51.35 KB, text/plain)
2011-03-04 12:18 UTC, Petr Široký
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 724652 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Issue Tracker BRMS-563 0 Critical Closed After importing and reimporting same XML, the PathNotFoundException is thrown when archiving package. ModeShape used. 2013-01-20 23:19:32 UTC
Red Hat Issue Tracker MODE-1114 0 Blocker Resolved Importing and reimporting (replacing) same XML with versioned content results in corrupted version history 2013-01-20 23:19:32 UTC

Internal Links: 724652

Description Petr Široký 2011-03-04 12:17:16 UTC
Affects Testing: Blocks Testing
Steps to Reproduce: 1. Import repository from XML file (e.g. attached rule_repository.xml).
2. Reimport the repository again (the same file).
3. Try to archive the package. 

Error occurs and package is not archived.
securitylevel_name: Public

Importing and then reimporting the same XML file causes the error when trying to archive package. The result is that the package is not archived and following exception appears in log.  

The exception in log:
Service method 'public abstract org.drools.guvnor.client.rpc.ValidatedResponse org.drools.guvnor.client.rpc.RepositoryService.savePackage(org.drools.guvnor.client.rpc.PackageConfigData) throws com.google.gwt.user.client.rpc.SerializationException' threw an unexpected exception: org.modeshape.graph.property.PathNotFoundException: Unable to find "[{http://www.modeshape.org/1.0}uuid = 72a1eedb-4bd9-4fff-a468-be8178f1e350]"; lowest existing path is "/"


Whole stacktrace is in attached server.log file starting on line 203.

Comment 1 Petr Široký 2011-03-04 12:18:59 UTC
Attached config files, log file and XML file that is being imported (and reimported).

Comment 2 Petr Široký 2011-03-04 12:18:59 UTC
Attachment: Added: archive-package-error.png
Attachment: Added: brms-jdbc-ds.xml
Attachment: Added: components.xml
Attachment: Added: modeshape-config.xml
Attachment: Added: rule_repository.xml
Attachment: Added: server.log


Comment 4 Petr Široký 2011-03-08 10:35:24 UTC
Link: Added: This issue is related to BRMS-557


Comment 7 Randall Hauch 2011-03-09 14:56:46 UTC
Like with BRMS-562, is the MySQL database using InnoDB? If so, could you re-run the tests using the InnoDB dialect for Hibernate?

Comment 8 Randall Hauch 2011-03-09 14:57:04 UTC
Thanks for the SVN link, Jiri.

Comment 9 Petr Široký 2011-03-09 16:10:22 UTC
Same exception is thrown when using org.hibernate.dialect.MySQLInnoDBDialect.

Comment 10 Randall Hauch 2011-03-11 16:08:01 UTC
Link: Added: This issue Cloned to BRMS-569


Comment 11 Van Halbert 2011-03-15 14:57:37 UTC
Link: Added: This issue is a dependency of SOA-2976


Comment 12 Randall Hauch 2011-03-16 04:16:48 UTC
I have a proposed fix for this issue under MODE-1114, and hope to committed the change soon to the '2.2.x' branch in SVN. However, I discovered another issue (MODE-1117) that I think may critical enough to warrant a fix. That issue is currently waiting on several reviews by key people in the ModeShape community, as it deals with spec compliance.

Comment 13 Randall Hauch 2011-03-16 05:44:56 UTC
The fix for MODE-1114 has been committed to the 'master' and '2.2.x' branches in Git and the '2.2.x' branch in SVN.

MODE-1117 is likely still an issue.

Comment 14 Randall Hauch 2011-03-16 18:31:39 UTC
I've committed the changes for MODE-1117 to the 'master' and '2.2.x' branches in Git, and to the '2.2.x' branch in SVN (the latter is what BRMS and SOA-P use). Van should be able to rebuild the JAR files with these changes, and testing should be able to resume.

I have resolve MODE-114 and MODE-1117. If there continues to be a problem with this issue, please reopen MODE-1114.

Comment 15 Van Halbert 2011-03-16 20:18:30 UTC
patch has been created

Comment 16 Van Halbert 2011-03-16 20:18:30 UTC
Link: Added: This issue depends SOA-2976


Comment 18 Petr Široký 2011-03-22 23:57:50 UTC
Verified fixed in patched ModeShape 2.2.x - see SOA-2976.


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