Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-2400

Import throws Exception when the repository contains sharable nodes

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6, 2.0-beta1
    • Fix Version/s: None
    • Component/s: JCR 2.0
    • Labels:
      None

      Description

      I am using the sharable node feature in JackRabbit 1.6. I did an export using Session.exportSystemView() then I import back using Session.getWorkspace().importXML(). Everything work fine until I created some sharable nodes. I got exception from importXML() like below:

      Caused by: javax.jcr.nodetype.NoSuchNodeTypeException:

      {http://www.jcp.org/jcr/nt/1.0}

      share
      at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.getEffectiveNodeType(NodeTypeRegistry.java:1024)
      at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.getEffectiveNodeType(NodeTypeRegistry.java:471)
      at org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicableChildNodeDef(EffectiveNodeType.java:682)
      at org.apache.jackrabbit.core.nodetype.EffectiveNodeType.checkAddNodeConstraints(EffectiveNodeType.java:655)
      at org.apache.jackrabbit.core.BatchedItemOperations.checkAddNode(BatchedItemOperations.java:732)
      at org.apache.jackrabbit.core.xml.WorkspaceImporter.resolveUUIDConflict(WorkspaceImporter.java:150)
      at org.apache.jackrabbit.core.xml.WorkspaceImporter.startNode(WorkspaceImporter.java:487)
      at org.apache.jackrabbit.core.xml.SysViewImportHandler.processNode(SysViewImportHandler.java:86)
      at org.apache.jackrabbit.core.xml.SysViewImportHandler.endElement(SysViewImportHandler.java:231)
      at org.apache.jackrabbit.core.xml.ImportHandler.endElement(ImportHandler.java:183)
      at org.apache.jackrabbit.commons.xml.DefaultContentHandler.endElement(DefaultContentHandler.java:83)
      at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
      Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
      Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
      Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
      at org.apache.jackrabbit.commons.xml.ParsingContentHandler.parse(ParsingContentHandler.java:62)
      at org.apache.jackrabbit.commons.AbstractWorkspace.importXML(AbstractWorkspace.java:54)

        Activity

        Show
        Julian Reschke added a comment - Relevant part of the spec: http://www.day.com/specs/jcr/2.0/14_Shareable_Nodes.html#14.7%20Export
        Hide
        Julian Reschke added a comment -

        Does this affect any current release?

        Show
        Julian Reschke added a comment - Does this affect any current release?
        Hide
        Gazi Mushfiqur Rahman added a comment -

        Can this be resolved with Priority. This is hindering us to migrate our the repository.

        Thanks.

        Show
        Gazi Mushfiqur Rahman added a comment - Can this be resolved with Priority. This is hindering us to migrate our the repository. Thanks.
        Hide
        Jervis Liu added a comment -

        Hi, I tried JackRabbit 2.1, still same exception.

        Show
        Jervis Liu added a comment - Hi, I tried JackRabbit 2.1, still same exception.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jervis Liu
          • Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:

              Development