jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Hall (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-2723) Exception when missing namespace in CND file should have clearer message
Date Sat, 21 Aug 2010 17:08:17 GMT

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

Carl Hall updated JCR-2723:
---------------------------

    Attachment: types-bad.cnd
                types-good.cnd

types-bad.cnd is missing a namespace and causes the error noted in the description.
types.good.cnd contains the "sling" namespace and doesn't cause an exception when importing.

> Exception when missing namespace in CND file should have clearer message
> ------------------------------------------------------------------------
>
>                 Key: JCR-2723
>                 URL: https://issues.apache.org/jira/browse/JCR-2723
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-jcr-commons, nodetype
>    Affects Versions: 2.1.0, 2.1.1
>            Reporter: Carl Hall
>         Attachments: types-bad.cnd, types-good.cnd
>
>
> Using the attached CND file, when calling CndImporter.registerNodeTypes(..) the following
message is in the returned exception:
> "Unable to parse CND Input: Error setting name of sling:resourceType to sling:resourceType
(bundle://23.0:0/SLING-INF/nodetypes/types.cnd, line 24)"
> The issue with line 24 is that the "sling" namespace has not been included.  The message
should state that a namespace is missing and what prefix is not understood.

-- 
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