Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 58838 invoked from network); 11 Apr 2008 06:58:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2008 06:58:58 -0000 Received: (qmail 66007 invoked by uid 500); 11 Apr 2008 06:58:57 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 65971 invoked by uid 500); 11 Apr 2008 06:58:57 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 65953 invoked by uid 99); 11 Apr 2008 06:58:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 23:58:57 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2008 06:58:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5420B234C0C3 for ; Thu, 10 Apr 2008 23:56:06 -0700 (PDT) Message-ID: <1010528278.1207896966343.JavaMail.jira@brutus> Date: Thu, 10 Apr 2008 23:56:06 -0700 (PDT) From: "Rohnny Moland (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-888) javax.jcr.NamespaceException: : is not a registered namespace uri In-Reply-To: <27514020.1177532055783.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587865#action_12587865 ] Rohnny Moland commented on JCR-888: ----------------------------------- Sorry for late reply. I have not found any documentation for it. Mainly it is just a different interpretation about what a properties file can contain. The easy fix would be to just remove serializing of properties with empty key. If you serialize the word "empty" as the property key and then load the property it will work. The IBM JVM is free to download here: http://www.ibm.com/developerworks/java/jdk/index.html If you want to reproduce it, create a properties file with an empty key, load up the properties file and print the properties to the screen. I have only tried to reproduce the issue in ibm java 6, but I assume it has always been like that. > javax.jcr.NamespaceException: : is not a registered namespace uri > ----------------------------------------------------------------- > > Key: JCR-888 > URL: https://issues.apache.org/jira/browse/JCR-888 > Project: Jackrabbit > 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.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.(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.(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.