Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1165

Guvnor import fails due to constraint exceptions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 2.5.0.Final
    • 2.5.0.Beta2
    • JCR
    • None

    Description

      I see this error on import of the attached policyquote_service_repository.xml file. Randall to reproduce use the guvnor I gave you and try importing the policyquote_service_repository.xml.

      14:52:02,417 INFO  [STDOUT] Clearing rules repository
      14:52:05,498 INFO  [STDOUT] ERROR 04-05 14:52:05,495 (RulesRepository.java:importRulesRepositoryFromStream:1314) 	 One or more of the 'drools:categoryReference' REFERENCE property values ,14ade576-def0-477f-905c-a00b82d607fa,5a6eeee1-127e-441c-b2e6-f7af541d5e41 on node '/drools:repository/drools:package_area/PolicyQuoteProcessService/assets/SuccessfulPolicyQuote' does not satisfy the constraints of the 'drools:categoryReference' property definition on the 'drools:assetNodeType' node type, and no other property definition is valid.
      javax.jcr.nodetype.ConstraintViolationException: One or more of the 'drools:categoryReference' REFERENCE property values ,14ade576-def0-477f-905c-a00b82d607fa,5a6eeee1-127e-441c-b2e6-f7af541d5e41 on node '/drools:repository/drools:package_area/PolicyQuoteProcessService/assets/SuccessfulPolicyQuote' does not satisfy the constraints of the 'drools:categoryReference' property definition on the 'drools:assetNodeType' node type, and no other property definition is valid.
      	at org.modeshape.jcr.SessionCache$NodeEditor.setProperty(SessionCache.java:1377)
      	at org.modeshape.jcr.JcrContentHandler$BasicNodeHandler.create(JcrContentHandler.java:844)
      	at org.modeshape.jcr.JcrContentHandler$BasicNodeHandler.node(JcrContentHandler.java:674)
      	at org.modeshape.jcr.JcrContentHandler$BasicNodeHandler.finish(JcrContentHandler.java:659)
      	at org.modeshape.jcr.JcrContentHandler$SystemViewContentHandler.endElement(JcrContentHandler.java:1055)
      	at org.modeshape.jcr.JcrContentHandler.endElement(JcrContentHandler.java:453)
      	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      

      Please let me know if you need more info.

      Attachments

        Activity

          People

            bcarothers_jira Brian Carothers (Inactive)
            kstam@redhat.com Kurt Stam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: