Bug 724660 (BRMS-563)

Summary: After importing and reimporting same XML, the PathNotFoundException is thrown when archiving package. ModeShape used.
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Petr Široký <psiroky>
Component: ModeshapeAssignee: Randall Hauch <rhauch>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 5.1.0 GACC: jlocker, psiroky, rhauch
Target Milestone: ---Keywords: TestBlocker
Target Release: 5.1.0.PostGA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-563
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
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
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 780543    
Attachments:
Description Flags
archive-package-error.png
none
brms-jdbc-ds.xml
none
components.xml
none
modeshape-config.xml
none
rule_repository.xml
none
server.log none

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.