jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas " <nto...@gmail.com>
Subject Re: Issue when restoring the Node version history
Date Fri, 11 Aug 2006 13:39:24 GMT
Sure, here it is. It is a working copy so some things are stupid (they are
there only for me to test a few things).

Enclosed you will find the relevant sysView.xml

Here is the complete exception stack:

Exception in thread "main" javax.jcr.nodetype.ConstraintViolationException:
no matching child node definition found for {
http://www.jcp.org/jcr/1.0}rootVersion
    at
org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicableChildNodeDef
(EffectiveNodeType.java:737)
    at
org.apache.jackrabbit.core.BatchedItemOperations.findApplicableNodeDefinition
(BatchedItemOperations.java:881)
    at org.apache.jackrabbit.core.BatchedItemOperations.createNodeState(
BatchedItemOperations.java:975)
    at org.apache.jackrabbit.backup.RestoreNodeVersionImporter.startNode(
RestoreNodeVersionImporter.java:180)
    at org.apache.jackrabbit.core.xml.SysViewImportHandler.processNode(
SysViewImportHandler.java:86)
    at org.apache.jackrabbit.core.xml.SysViewImportHandler.startElement(
SysViewImportHandler.java:131)
    at org.apache.jackrabbit.core.xml.ImportHandler.startElement(
ImportHandler.java:192)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(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.jackrabbit.backup.NodeVersionHistoriesBackup.importXML(
NodeVersionHistoriesBackup.java:121)
    at org.apache.jackrabbit.backup.NodeVersionHistoriesBackup.restore(
NodeVersionHistoriesBackup.java:95)
    at org.apache.jackrabbit.backup.BackupManager.restore(BackupManager.java
:138)
    at org.apache.jackrabbit.backup.LaunchBackup.restore(LaunchBackup.java
:298)
    at org.apache.jackrabbit.backup.LaunchBackup.main(LaunchBackup.java:169)
    at org.apache.jackrabbit.backup.BackupTest.main(BackupTest.java:154)

Thanks for the help
Nico


On 8/11/06, Jukka Zitting <jukka.zitting@gmail.com> wrote:
>
> Hi,
>
> On 8/11/06, Nicolas <ntoper@gmail.com> wrote:
> > Exception in thread "main"
> javax.jcr.nodetype.ConstraintViolationException:
> > no mat)hing child node definition found for {
> > http://www.jcp.org/jcr/1.0}rootVersion
> >
> > This exception is raised when I call getEffectiveNodeType...
>
> Could you send your piece of code and the relevant system view XML
> snippet that causes this exception?
>
> BR,
>
> Jukka Zitting
>
> --
> Yukatan - http://yukatan.fi/ - info@yukatan.fi
> Software craftsmanship, JCR consulting, and Java development
>



-- 
a+
Nico
my blog! http://www.deviant-abstraction.net !!

Mime
View raw message