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

javax.jcr.nodetype.ConstraintViolationException is wrapped by org.modeshape.jcr.JcrContentHandler.EnclosingSAXException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • 2.5.0.Beta2
    • 2.4.0.Final
    • JCR

      If the value constraint check fails (during import or when setting a property), the JCR specification stipulates that a repository throw a javax.jcr.nodetype.ConstraintViolationException. But when importing an XML file with a value that does violate the constraint of a property definition, this exception is actually wrapped by org.modeshape.jcr.JcrContentHandler.EnclosingSAXException (which is a checked one) and the client hast to extract the real cause explicitly.

              rhauch Randall Hauch (Inactive)
              dimonv_jira Dmitri Voronov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: