You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2014/08/18 21:27:18 UTC

[jira] [Resolved] (OAK-2038) Invalid type error while importing DocView xml data

     [ https://issues.apache.org/jira/browse/OAK-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dürig resolved OAK-2038.
--------------------------------

    Resolution: Fixed

Fixed in trunk at http://svn.apache.org/r1618709
Merged into 1.0 at http://svn.apache.org/r1618715

I adapted the test expectations slightly. Specifically the part re. the part expecting the node identifier to stay the same. This might not hold for {{IMPORT_UUID_CREATE_NEW}} and neither is relevant for the problem at hand AFAICS. Please reopen if you think we need to add anything else here.

> Invalid type error while importing DocView xml data
> ---------------------------------------------------
>
>                 Key: OAK-2038
>                 URL: https://issues.apache.org/jira/browse/OAK-2038
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0.4
>            Reporter: Amit Jain
>            Assignee: Michael Dürig
>             Fix For: 1.1, 1.0.5
>
>         Attachments: OAK-2038.patch
>
>
> There is a bug that occurs when importing document view xml using
> {code:java}
> session.getWorkspace().importXML(path, ins, ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW);
> {code}
> When importing the following error is returned:
> {code:none}
> RepositoryTest
> org.apache.jackrabbit.oak.jcr.RepositoryTest
> [0]
> importWithRegisteredType[0](org.apache.jackrabbit.oak.jcr.RepositoryTest)
> javax.jcr.ValueFormatException: Invalid type: 0
> 	at org.apache.jackrabbit.oak.plugins.value.ValueFactoryImpl.createValue(ValueFactoryImpl.java:267)
> 	at org.apache.jackrabbit.oak.jcr.xml.StringValue.getValue(StringValue.java:88)
> 	at org.apache.jackrabbit.oak.spi.xml.PropInfo.getValues(PropInfo.java:163)
> 	at org.apache.jackrabbit.oak.jcr.xml.ImporterImpl.createProperty(ImporterImpl.java:202)
> 	at org.apache.jackrabbit.oak.jcr.xml.ImporterImpl.startNode(ImporterImpl.java:452)
> 	at org.apache.jackrabbit.oak.jcr.xml.DocViewImportHandler.startElement(DocViewImportHandler.java:277)
> 	at org.apache.jackrabbit.oak.jcr.xml.ImportHandler.startElement(ImportHandler.java:183)
> 	at org.apache.jackrabbit.commons.xml.DefaultContentHandler.startElement(DefaultContentHandler.java:161)
> 	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
> 	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
> ....
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)