You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Michael Daglian (JIRA)" <ji...@apache.org> on 2006/04/03 14:10:43 UTC

[jira] Created: (JCR-385) ClassCastExeption when executing union queries

ClassCastExeption when executing union queries
----------------------------------------------

         Key: JCR-385
         URL: http://issues.apache.org/jira/browse/JCR-385
     Project: Jackrabbit
        Type: Bug

  Components: query  
    Reporter: Michael Daglian


The XPathQueryBuilder throws a ClassCastException on line 322 in release 0.9 when executing syntactically valid union queries. An example query would be "//element(*, nt:file) or //element(*, mix:lockable)". It appears that in the invocation of the visit method the SimpleNode id indicates a type of JJTROOTDESCENDANTS at a certain point but the data is actually an OrQueryNode and hence the cast to a PathQueryNode fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (JCR-385) ClassCastExeption when executing union queries

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-385:
------------------------------

        Fix Version/s: 1.3.1
             Assignee: Jukka Zitting
             Priority: Minor  (was: Major)
    Affects Version/s: 0.9
                       1.0
                       1.0.1
                       1.1
                       1.1.1
                       1.2.1
                       1.2.2
                       1.2.3
                       1.3

> ClassCastExeption when executing union queries
> ----------------------------------------------
>
>                 Key: JCR-385
>                 URL: https://issues.apache.org/jira/browse/JCR-385
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 0.9, 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3
>            Reporter: Michael Daglian
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: 1.3.1
>
>
> The XPathQueryBuilder throws a ClassCastException on line 322 in release 0.9 when executing syntactically valid union queries. An example query would be "//element(*, nt:file) or //element(*, mix:lockable)". It appears that in the invocation of the visit method the SimpleNode id indicates a type of JJTROOTDESCENDANTS at a certain point but the data is actually an OrQueryNode and hence the cast to a PathQueryNode fails.

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


[jira] Resolved: (JCR-385) ClassCastExeption when executing union queries

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved JCR-385.
-------------------------------

    Resolution: Fixed

Fixed in revision 544316 by throwing a more descriptive InvalidQueryException instead of the ClassCastException. Note that such union queries are currently not supported by Jackrabbit.

Merged to the 1.3 branch in revision 544319.

> ClassCastExeption when executing union queries
> ----------------------------------------------
>
>                 Key: JCR-385
>                 URL: https://issues.apache.org/jira/browse/JCR-385
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 0.9, 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3
>            Reporter: Michael Daglian
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: 1.3.1
>
>
> The XPathQueryBuilder throws a ClassCastException on line 322 in release 0.9 when executing syntactically valid union queries. An example query would be "//element(*, nt:file) or //element(*, mix:lockable)". It appears that in the invocation of the visit method the SimpleNode id indicates a type of JJTROOTDESCENDANTS at a certain point but the data is actually an OrQueryNode and hence the cast to a PathQueryNode fails.

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