Bug 724684 (BRMS-573)

Summary: ConstraintViolationException (Cannot find a definition for the property) is thrown when importing repository from some XML files. ModeShape used.
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Petr Široký <psiroky>
Component: ModeshapeAssignee: Petr Široký <psiroky>
Status: CLOSED NEXTRELEASE QA Contact: Petr Široký <psiroky>
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0 GACC: atangrin, lcarlon, lpetrovi, rhauch
Target Milestone: ---   
Target Release: BRMS 5.2.0.GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-573
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
When importing a repository from an XML file with Modeshape, the ConstraintViolationException exception was thrown. Upgrading the version of ModeShape resolved this issue.
Story Points: ---
Clone Of: Environment:
ModeShape version 2.2.x, patched. See SOA-2976
Last Closed: 2011-08-03 13:53:45 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
docgen_repository.xml
none
server.log none

Description Petr Široký 2011-03-23 15:37:23 UTC
Steps to Reproduce: 1. Unzip BRMS 5.1.0, install and configure modeshape.
2. Log into Guvnor, import docgen_repository.xml file.

Error message is shown and exception appears in log.
securitylevel_name: Public

Following exception is thrown when importing repository from some XML files (one that is doing this is attached):

javax.jcr.nodetype.ConstraintViolationException: Cannot find a definition for the property named 'drools:categoryReference' on the node at '/drools:repository/drools:package_area/docgen/assets/docgen03' with primary type 'drools:assetNodeType' and mixin types: []

It has probably nothing do to with SOA-2976 patch, because same exception is thrown with non patched version too.

This is the only XML file we (QE) have that is causing this. We have several other XMLs (cca 15) and there is no problem with them.

Comment 1 Petr Široký 2011-03-23 15:39:11 UTC
Attachment: Added: docgen_repository.xml
Attachment: Added: server.log


Comment 2 Tihomir Surdilovic 2011-06-02 22:16:56 UTC
assigning to kurt to take a look at and provide any input

Comment 3 Randall Hauch 2011-08-01 15:35:57 UTC
Can this be retested with a recent BRMS 5.2 build? These appear to be related to issues that were already fixed.

Comment 4 Lukáš Petrovický 2011-08-03 10:14:47 UTC
Assigning to Petr for re-testing.

Comment 5 Petr Široký 2011-08-03 13:53:45 UTC
Verified fixed in BRMS 5.2.0 ER1.

Comment 6 lcarlon 2011-08-25 02:46:25 UTC
Hi, How was this fixed?

Required for release notes.

Thanks
Lee

Comment 7 lcarlon 2011-08-31 04:27:43 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
https://bugzilla.redhat.com/show_bug.cgi?id=724684

When importing a repository from an XML file with Modeshape, the ConstraintViolationException exception is thrown.

Comment 8 lcarlon 2011-08-31 04:31:45 UTC
I still need to know how this was resolved for the release notes (information in bullet point form is fine).

If it is simply the case that upgrading versions of modeshape resolved the bug I can add that to the release notes, but please let me know if this is the case.

Thanks
Lee

Comment 9 lcarlon 2011-09-15 04:36:02 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,3 +1 @@
-https://bugzilla.redhat.com/show_bug.cgi?id=724684
+When importing a repository from an XML file with Modeshape, the ConstraintViolationException exception is thrown. This issue was resolved and the behavior no longer occurs.-
-When importing a repository from an XML file with Modeshape, the ConstraintViolationException exception is thrown.

Comment 10 lcarlon 2011-09-21 04:28:04 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-When importing a repository from an XML file with Modeshape, the ConstraintViolationException exception is thrown. This issue was resolved and the behavior no longer occurs.+When importing a repository from an XML file with Modeshape, the ConstraintViolationException exception is thrown.

Comment 11 Petr Široký 2011-09-21 07:59:42 UTC
Hi Lee,

I do not know how exactly was this issue fixed. It was just gone in new version of ModeShape.

Comment 12 lcarlon 2011-09-21 22:28:46 UTC
Thanks Petr,

That's actually great - it means I can add to the release notes that upgrading between versions of Modeshape resolved the issue.

Thanks for getting back to me.

Comment 13 lcarlon 2011-09-21 22:29:27 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-When importing a repository from an XML file with Modeshape, the ConstraintViolationException exception is thrown.+When importing a repository from an XML file with Modeshape, the ConstraintViolationException exception is thrown. Upgrading the version of ModeShape resolved this issue.

Comment 14 lcarlon 2011-10-05 05:31:31 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-When importing a repository from an XML file with Modeshape, the ConstraintViolationException exception is thrown. Upgrading the version of ModeShape resolved this issue.+When importing a repository from an XML file with Modeshape, the ConstraintViolationException exception was thrown. Upgrading the version of ModeShape resolved this issue.