jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Slattery (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-888) javax.jcr.NamespaceException: : is not a registered namespace uri
Date Mon, 06 Apr 2009 15:44:12 GMT

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

Paul Slattery updated JCR-888:
------------------------------

    Attachment: NamespaceRegistryImpl.java

Here is my attempt to fix this issue attached.
The associated patch did not seem to work for me. As stated one unit test is still failing.
(see below)
Unfortunately I do not have enough time to look further into this issue , perhaps this may
be a starting point for someone else.

Paul

----------

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.jackrabbit.core.util.TestAll
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.827 sec
Running org.apache.jackrabbit.core.nodetype.compact.TestAll
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.186 sec
Running org.apache.jackrabbit.core.xml.TestAll
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 22.015 sec <<< FAILURE!
Running org.apache.jackrabbit.core.query.TestAll
Tests run: 113, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.075 sec
Running org.apache.jackrabbit.core.observation.TestAll
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.155 sec
Running org.apache.jackrabbit.core.config.TestAll
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.577 sec
Running org.apache.jackrabbit.core.nodetype.xml.TestAll
Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.547 sec
Running org.apache.jackrabbit.core.TestAll
Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.811 sec
Running org.apache.jackrabbit.core.state.TestAll
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.622 sec
Running org.apache.jackrabbit.core.data.TestAll
javax.jcr.NamespaceException: nt: is not a registered namespace uri.
        at org.apache.jackrabbit.core.NamespaceRegistryImpl.getPrefix(NamespaceRegistryImpl.java:538)
        at org.apache.jackrabbit.core.LocalNamespaceMappings.getPrefix(LocalNamespaceMappings.java:193)
        at org.apache.jackrabbit.core.xml.ImportHandler.startDocument(ImportHandler.java:121)
        at org.apache.jackrabbit.commons.DefaultContentHandler.startDocument(DefaultContentHandler.java:199)
        at org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(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.DefaultContentHandler.parse(DefaultContentHandler.java:82)
        at org.apache.jackrabbit.commons.AbstractSession.importXML(AbstractSession.java:125)
        at org.apache.jackrabbit.core.data.ExportImportTest.doTestExportImportBinary(ExportImportTest.java:64)
        at org.apache.jackrabbit.core.data.ExportImportTest.testExportImportBinary(ExportImportTest.java:39)
        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:406)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        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 org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.855 sec <<< FAILURE!

Results :

Failed tests:
  testExportImportBinary(org.apache.jackrabbit.core.data.ExportImportTest)

Tests in error:
  testTwoMixins(org.apache.jackrabbit.core.xml.DocumentViewTest)

Tests run: 229, Failures: 1, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to C:\AdminFolder\jackrabbit149\jackrabbit-core-1.4.9\target\surefire-reports
for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 43 seconds
[INFO] Finished at: Mon Apr 06 16:41:39 BST 2009
[INFO] Final Memory: 16M/39M
[INFO] ------------------------------------------------------------------------

> javax.jcr.NamespaceException: : is not a registered namespace uri
> -----------------------------------------------------------------
>
>                 Key: JCR-888
>                 URL: https://issues.apache.org/jira/browse/JCR-888
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 1.2.3, 1.3
>         Environment: Windows XP, Eclipse 3.1, JRE 1.4.2 and 5.0
>            Reporter: Dave Erickson
>         Attachments: NamespaceRegistryImpl.java, NamespaceRegistryImpl.java.patch
>
>
> Using the first hops with both versions 1.2.3 and 1.3, the repository is created successfully
the first time it is run.  Subsequent attempts to login result in a javax.jcr.NamespaceException.
> DEBUG - Initializing transient repository
> INFO - Starting repository...
> INFO - LocalFileSystem initialized at path repository\repository
> Exception in thread "main" javax.jcr.NamespaceException: : is not a registered namespace
uri.
> 	at org.apache.jackrabbit.core.NamespaceRegistryImpl.getPrefix(NamespaceRegistryImpl.java:538)
> 	at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.checkNamespace(NodeTypeRegistry.java:1292)
> 	at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.validateNodeTypeDef(NodeTypeRegistry.java:1415)
> 	at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.internalRegister(NodeTypeRegistry.java:1221)
> 	at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.<init>(NodeTypeRegistry.java:671)
> 	at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.create(NodeTypeRegistry.java:118)
> 	at org.apache.jackrabbit.core.RepositoryImpl.createNodeTypeRegistry(RepositoryImpl.java:571)
> 	at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:262)
> 	at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:584)
> 	at org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
> 	at org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
> 	at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
> 	at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:388)
> 	at testing.FirstHops.main(FirstHops.java:24)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message