On 4/26/06, Brian Moseley <[EMAIL PROTECTED]> wrote:
i'm having an odd problem looking up a property. the exception is:

javax.jcr.RepositoryException: failed to resolve path cosmo:username
relative to /r/ro/root: cosmo: cosmo
        at 
org.apache.jackrabbit.core.NodeImpl.resolveRelativePropertyPath(NodeImpl.java:190)
        at org.apache.jackrabbit.core.NodeImpl.getProperty(NodeImpl.java:2283)

and the root cause is:

org.apache.jackrabbit.name.UnknownPrefixException: cosmo
        at org.apache.jackrabbit.name.QName.fromJCRName(QName.java:597)
        at 
org.apache.jackrabbit.core.CachingNamespaceResolver.getQName(CachingNamespaceResolver.java:89)
        at 
org.apache.jackrabbit.core.NamespaceRegistryImpl.getQName(NamespaceRegistryImpl.java:347)
               at
org.apache.jackrabbit.core.LocalNamespaceMappings.getQName(LocalNamespaceMappings.java:169)
        at 
org.apache.jackrabbit.core.NodeImpl.resolveRelativePropertyPath(NodeImpl.java:162)
        at org.apache.jackrabbit.core.NodeImpl.getProperty(NodeImpl.java:2283)

checking repository/namespaces/ns_reg.properties, i find that the
prefix cosmo is there:

#Wed Apr 26 12:22:11 PDT 2006rep=internal
xml=http\://www.w3.org/XML/1998/namespace
fn=http\://www.w3.org/2004/10/xpath-functions
xs=http\://www.w3.org/2001/XMLSchema
mix=http\://www.jcp.org/jcr/mix/1.0m
...
cosmo=http\://osafoundation.org/cosmo

what could be the reason for this prefix lookup failing?

hmm, pretty weird indeed... is it reproducable? i suggest you place
a break point where the UnknownPrefixException is thrown and do
a little debugging.


Reply via email to