jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Mullen <daniel.mul...@oracle.com>
Subject Re: xpath query failure
Date Mon, 10 Oct 2005 21:18:07 GMT
You probably need to escape names.  See section 6.4.3 of JSR-170.

Cheers,
..Dan

Brian Moseley wrote:

> the following xpath query is failing with the below stack trace. the 
> problem seems to be the space in the item name "morgen calendar-2". 
> the space character is obviously allowed in the item name in this 
> position, so is this a bug, or am i missing something? thanks!
>
> /jcr:root/morgen/morgen calendar-2//element(*, 
> caldav:resource)[@icalendar:uid = 'e505b68c-36c9-11da- 
> cb90-000a95bb2738']
>
> 2005-10-06 17:33:43,120 ERROR [JCRCalendarDao] JCR error storing  
> calendar
> javax.jcr.query.InvalidQueryException: Internal error: data is not a 
> RelationQueryNode
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit 
> (XPathQueryBuilder.java:435)
>         at  
> org.apache.jackrabbit.core.query.xpath.SimpleNode.jjtAccept 
> (SimpleNode.java:80)
>         at 
> org.apache.jackrabbit.core.query.xpath.SimpleNode.childrenAccept 
> (SimpleNode.java:89)
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit 
> (XPathQueryBuilder.java:455)
>         at  
> org.apache.jackrabbit.core.query.xpath.SimpleNode.jjtAccept 
> (SimpleNode.java:80)
>         at 
> org.apache.jackrabbit.core.query.xpath.SimpleNode.childrenAccept 
> (SimpleNode.java:89)
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit 
> (XPathQueryBuilder.java:455)
>         at  
> org.apache.jackrabbit.core.query.xpath.SimpleNode.jjtAccept 
> (SimpleNode.java:80)
>         at 
> org.apache.jackrabbit.core.query.xpath.SimpleNode.childrenAccept 
> (SimpleNode.java:89)
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit 
> (XPathQueryBuilder.java:455)
>         at  
> org.apache.jackrabbit.core.query.xpath.SimpleNode.jjtAccept 
> (SimpleNode.java:80)
>         at 
> org.apache.jackrabbit.core.query.xpath.SimpleNode.childrenAccept 
> (SimpleNode.java:89)
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit 
> (XPathQueryBuilder.java:455)
>         at  
> org.apache.jackrabbit.core.query.xpath.SimpleNode.jjtAccept 
> (SimpleNode.java:80)
>         at 
> org.apache.jackrabbit.core.query.xpath.SimpleNode.childrenAccept 
> (SimpleNode.java:89)
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit 
> (XPathQueryBuilder.java:455)
>         at  
> org.apache.jackrabbit.core.query.xpath.SimpleNode.jjtAccept 
> (SimpleNode.java:80)
>         at 
> org.apache.jackrabbit.core.query.xpath.SimpleNode.childrenAccept 
> (SimpleNode.java:89)
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit 
> (XPathQueryBuilder.java:455)
>         at  
> org.apache.jackrabbit.core.query.xpath.SimpleNode.jjtAccept 
> (SimpleNode.java:80)
>         at 
> org.apache.jackrabbit.core.query.xpath.SimpleNode.childrenAccept 
> (SimpleNode.java:89)
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit 
> (XPathQueryBuilder.java:455)
>         at  
> org.apache.jackrabbit.core.query.xpath.SimpleNode.jjtAccept 
> (SimpleNode.java:80)
>         at 
> org.apache.jackrabbit.core.query.xpath.SimpleNode.childrenAccept 
> (SimpleNode.java:89)
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit 
> (XPathQueryBuilder.java:455)
>         at  
> org.apache.jackrabbit.core.query.xpath.SimpleNode.jjtAccept 
> (SimpleNode.java:80)
>         at 
> org.apache.jackrabbit.core.query.xpath.SimpleNode.childrenAccept 
> (SimpleNode.java:89)
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.createPathQuery 
> Node(XPathQueryBuilder.java:617)
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit 
> (XPathQueryBuilder.java:318)
>         at  
> org.apache.jackrabbit.core.query.xpath.SimpleNode.jjtAccept 
> (SimpleNode.java:80)
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.<init> 
> (XPathQueryBuilder.java:245)
>         at 
> org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.createQuery 
> (XPathQueryBuilder.java:276)
>         at 
> org.apache.jackrabbit.core.query.xpath.QueryBuilder.createQueryTree 
> (QueryBuilder.java:37)
>         at org.apache.jackrabbit.core.query.QueryParser.parse 
> (QueryParser.java:54)
>         at org.apache.jackrabbit.core.query.lucene.QueryImpl.<init> 
> (QueryImpl.java:125)
>         at 
> org.apache.jackrabbit.core.query.lucene.SearchIndex.createExecutableQuer 
> y(SearchIndex.java:268)
>         at org.apache.jackrabbit.core.query.QueryImpl.<init> 
> (QueryImpl.java:90)
>         at org.apache.jackrabbit.core.SearchManager.createQuery 
> (SearchManager.java:165)
>         at 
> org.apache.jackrabbit.core.query.QueryManagerImpl.createQuery 
> (QueryManagerImpl.java:87)
> ...
>

Mime
View raw message