[jira] Resolved: (JDO-185) JPOX does not support implicit parameters.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Resolved: (JDO-185) JPOX does not support implicit parameters.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Resolved: (JDO-185) JPOX does not support implicit parameters.  
Andy Jefferson (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-03-05 10:45 PM

[ 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 separatel
y).

> 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 par
ameters are used in the result or the filter (see below).
> Queries having implicit parameters in the range clause throw a NumberForma
tException (see below).
> The bugs can be reproduced appying patch JDO-160.
> javax.jdo.JDOUserException: Query requires 0 parameters, yet only 1 have b
een 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.executeQu
ery(ImplicitParameters.java:150)
> 	at org.apache.jdo.tck.query.jdoql.parameters.ImplicitParameters.testFilte
r(ImplicitParameters.java:128)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
ava:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.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.j
ava:48)
> 	at java.lang.Integer.parseInt(Integer.java:468)
> 	at java.lang.Integer.<init>(Integer.java:609)
> 	at org.jpox.store.query.JDOQLQuery$SingleStringParser.processKeywordWithC
ontent(JDOQLQuery.java:342)
> 	at org.jpox.store.query.JDOQLQuery$SingleStringParser.parse(JDOQLQuery.ja
va:200)
> 	at org.jpox.store.query.JDOQLQuery.<init>(JDOQLQuery.java:134)
> 	at org.jpox.AbstractPersistenceManager.newQuery(AbstractPersistenceManage
r.java:1918)
> 	at org.jpox.AbstractPersistenceManager.newQuery(AbstractPersistenceManage
r.java:1873)
> 	at org.apache.jdo.tck.query.QueryElementHolder.getSingleStringQuery(Query
ElementHolder.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.j
ava:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.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/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:13 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register