db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Jefferson (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JDO-185) JPOX does not support implicit parameters.
Date Thu, 03 Nov 2005 17:43:48 GMT
     [ http://issues.apache.org/jira/browse/JDO-185?page=all ]
     
Andy Jefferson resolved JDO-185:
--------------------------------

    Resolution: Fixed
     Assign To: Andy Jefferson  (was: Erik Bengtson)

JPOX CVS does support implicit parameters now, passing many of the implicit param tests (some
test errors have been mailed to the jdo-dev list separately).

> JPOX does not support implicit parameters.
> ------------------------------------------
>
>          Key: JDO-185
>          URL: http://issues.apache.org/jira/browse/JDO-185
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Andy Jefferson

>
> JPOX does not support implicit parameters. 
> Queries having implicit paramters throw a JDOUserException if implicit parameters are
used in the result or the filter (see below).
> Queries having implicit parameters in the range clause throw a NumberFormatException
(see below).
> The bugs can be reproduced appying patch JDO-160.
> javax.jdo.JDOUserException: Query requires 0 parameters, yet only 1 have been provided.
> 	at org.jpox.store.query.Query.executeWithArray(Query.java:862)
> 	at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:667)
> 	at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:587)
> 	at org.apache.jdo.tck.query.jdoql.parameters.ImplicitParameters.executeQuery(ImplicitParameters.java:150)
> 	at org.apache.jdo.tck.query.jdoql.parameters.ImplicitParameters.testFilter(ImplicitParameters.java:128)
> 	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 org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204)
> 	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 junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at junit.textui.TestRunner.doRun(TestRunner.java:116)
> 	at junit.textui.TestRunner.doRun(TestRunner.java:109)
> 	at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120)
> 	at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95)
> java.lang.NumberFormatException: For input string: ":zero"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> 	at java.lang.Integer.parseInt(Integer.java:468)
> 	at java.lang.Integer.<init>(Integer.java:609)
> 	at org.jpox.store.query.JDOQLQuery$SingleStringParser.processKeywordWithContent(JDOQLQuery.java:342)
> 	at org.jpox.store.query.JDOQLQuery$SingleStringParser.parse(JDOQLQuery.java:200)
> 	at org.jpox.store.query.JDOQLQuery.<init>(JDOQLQuery.java:134)
> 	at org.jpox.AbstractPersistenceManager.newQuery(AbstractPersistenceManager.java:1918)
> 	at org.jpox.AbstractPersistenceManager.newQuery(AbstractPersistenceManager.java:1873)
> 	at org.apache.jdo.tck.query.QueryElementHolder.getSingleStringQuery(QueryElementHolder.java:179)
> 	at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:664)
> 	at org.apache.jdo.tck.query.QueryTest.executeSingleStringQuery(QueryTest.java:632)
> 	at org.apache.jdo.tck.query.jdoql.parameters.ImplicitParameters.testRange(ImplicitParameters.java:136)
> 	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 org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204)
> 	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 junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at junit.textui.TestRunner.doRun(TestRunner.java:116)
> 	at junit.textui.TestRunner.doRun(TestRunner.java:109)
> 	at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120)
> 	at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95)

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