jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Connelly (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-620) Document View Import tests fail for EMF/XMI serialization
Date Sun, 05 Nov 2006 01:23:17 GMT
     [ http://issues.apache.org/jira/browse/JCR-620?page=all ]

Dan Connelly updated JCR-620:
-----------------------------

    Attachment: XMIDocumentViewImportTest.java

On second thought, don't close this JIRA.

The latest attached JUnit shows the problem without having to introduce new document contents.

The method importWithHandler in DocumentViewImportTest is overridden in such a way that the
JVM default parser is used to extract events directly from the DOM.

Problem is that Sun'd Apache Xalan parser delivers different events to the handler than does
org.apache.xerces.parsers.SAXParser.

> Document View Import tests fail for EMF/XMI serialization
> ---------------------------------------------------------
>
>                 Key: JCR-620
>                 URL: http://issues.apache.org/jira/browse/JCR-620
>             Project: Jackrabbit
>          Issue Type: Test
>          Components: JCR API
>    Affects Versions: 1.1
>         Environment: New JUnit for org.apache.jackrabbit.test.api
>            Reporter: Dan Connelly
>         Attachments: XMIDocumentViewImportTest.java, XMIDocumentViewImportTest.java,
XMIDocumentViewImportTest.java
>
>
> XMIDocumentViewImportTest is copy of DocumentViewImportTest EXCEPT that createSimpleDocument
is overridden.
> New simple document is typical of XMI serializations from Eclipse Modeling Framework
(EMF).
> Four out of eight tests fail due to bad uri    Trace below:
> javax.jcr.NamespaceException: www.apache.org/jackrabbit/test/namespaceImportTest7: is
not a registered namespace uri.
> 	at org.apache.jackrabbit.core.NamespaceRegistryImpl.getPrefix(NamespaceRegistryImpl.java:378)
> 	at org.apache.jackrabbit.core.LocalNamespaceMappings.getPrefix(LocalNamespaceMappings.java:193)
> 	at org.apache.jackrabbit.core.SessionImpl.getNamespacePrefix(SessionImpl.java:1307)
> 	at org.apache.jackrabbit.test.api.XMIDocumentViewImportTest.checkImportSimpleXMLTree(XMIDocumentViewImportTest.java:176)
> 	at org.apache.jackrabbit.test.api.XMIDocumentViewImportTest.performTests(XMIDocumentViewImportTest.java:154)
> 	at org.apache.jackrabbit.test.api.XMIDocumentViewImportTest.doTestImportXML(XMIDocumentViewImportTest.java:119)
> 	at org.apache.jackrabbit.test.api.XMIDocumentViewImportTest.testWorkspaceImportXml(XMIDocumentViewImportTest.java:70)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at org.apache.jackrabbit.test.AbstractJCRTest.run(AbstractJCRTest.java:393)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message