jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-171) QueryManager.createQuery() exception handling
Date Mon, 18 Jul 2005 11:58:11 GMT
     [ http://issues.apache.org/jira/browse/JCR-171?page=all ]
     
Marcel Reutegger resolved JCR-171:
----------------------------------

    Resolution: Fixed

Fixed in revision: 219472

> QueryManager.createQuery() exception handling
> ---------------------------------------------
>
>          Key: JCR-171
>          URL: http://issues.apache.org/jira/browse/JCR-171
>      Project: Jackrabbit
>         Type: Bug
>   Components: query
>     Reporter: Edgar Poce
>     Assignee: Marcel Reutegger
>     Priority: Minor

>
> Query q = this.superuser.getWorkspace().getQueryManager()
>                 .createQuery("SELECT * FROM nt:base", Query.XPATH);
> produces:
> org.apache.jackrabbit.core.query.xpath.TokenMgrError: Lexical error at line 1, column
28.  Encountered: "b" (98), after : ":"
> 	at org.apache.jackrabbit.core.query.xpath.XPathTokenManager.getNextToken(XPathTokenManager.java:14546)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.jj_ntk(XPath.java:9187)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.PredicateList(XPath.java:5195)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.AxisStep(XPath.java:4707)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.StepExpr(XPath.java:4597)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.RelativePathExpr(XPath.java:4511)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.PathExpr(XPath.java:4482)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.ValueExpr(XPath.java:4125)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.UnaryExpr(XPath.java:4032)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.CastExpr(XPath.java:3935)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.CastableExpr(XPath.java:3898)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.TreatExpr(XPath.java:3861)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.InstanceofExpr(XPath.java:3824)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.IntersectExceptExpr(XPath.java:3748)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.UnionExpr(XPath.java:3672)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.MultiplicativeExpr(XPath.java:3622)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.AdditiveExpr(XPath.java:3510)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.RangeExpr(XPath.java:3451)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.ComparisonExpr(XPath.java:3353)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.AndExpr(XPath.java:3290)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.OrExpr(XPath.java:3227)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.ExprSingle(XPath.java:2214)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.ForClause(XPath.java:2337)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.FLWORExpr(XPath.java:2233)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.ExprSingle(XPath.java:2133)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.Expr(XPath.java:2094)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.QueryBody(XPath.java:2066)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.MainModule(XPath.java:512)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.Module(XPath.java:387)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.QueryList(XPath.java:151)
> 	at org.apache.jackrabbit.core.query.xpath.XPath.XPath2(XPath.java:118)
> 	at org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.<init>(XPathQueryBuilder.java:224)
> 	at org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.createQuery(XPathQueryBuilder.java:255)
> 	at org.apache.jackrabbit.core.query.QueryParser.parse(QueryParser.java:57)
> 	at org.apache.jackrabbit.core.query.lucene.QueryImpl.<init>(QueryImpl.java:119)
> 	at org.apache.jackrabbit.core.query.lucene.SearchIndex.createExecutableQuery(SearchIndex.java:158)
> 	at org.apache.jackrabbit.core.query.QueryImpl.<init>(QueryImpl.java:90)
> 	at org.apache.jackrabbit.core.SearchManager.createQuery(SearchManager.java:192)
> 	at org.apache.jackrabbit.core.query.QueryManagerImpl.createQuery(QueryManagerImpl.java:87)
> 	at org.apache.jackrabbit.test.api.query.IllegalXPathTest.testIllegalStatement(IllegalXPathTest.java:45)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at org.apache.jackrabbit.test.AbstractJCRTest.run(AbstractJCRTest.java:401)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194)

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


Mime
View raw message