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-239) JPOX throws NPE when result class is specified with no result clause for deletion by query using single string query.
Date Tue, 13 Dec 2005 15:33:46 GMT
     [ http://issues.apache.org/jira/browse/JDO-239?page=all ]
     
Andy Jefferson resolved JDO-239:
--------------------------------

    Resolution: Fixed

Fixed in JPOX CVS. Builds from 14/12/2005 will have this.

> JPOX throws NPE when result class is specified with no result clause for deletion by
query using single string query.
> ---------------------------------------------------------------------------------------------------------------------
>
>          Key: JDO-239
>          URL: http://issues.apache.org/jira/browse/JDO-239
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Andy Jefferson

>
> The test case DeleteQueryElements fails throwing a NPE for the query below. The test
case is expected to thow a JDOUserException. The same test case succeeds when an API query
is used.
> 14:22:25,250 (main) DEBUG [org.apache.jdo.tck] - Deleting persistent by single string
query: SELECT INTO org.apache.jdo.tck.query.result.classes.FullName FROM org.apache.jdo.tck.pc.company.Person

> 14:22:25,250 (main) INFO  [org.apache.jdo.tck] - Exception during setUp or runtest: 
> java.lang.NullPointerException
> 	at org.jpox.store.query.ResultClassROF.<init>(ResultClassROF.java:99)
> 	at org.jpox.store.rdbms.extent.ClassTableExtent.newResultObjectFactory(ClassTableExtent.java:374)
> 	at org.jpox.store.query.JDOQLQuery.performExecute(JDOQLQuery.java:642)
> 	at org.jpox.store.query.JDOQLQuery.performDeletePersistentAll(JDOQLQuery.java:764)
> 	at org.jpox.store.query.Query.deletePersistentAll(Query.java:1131)
> 	at org.jpox.store.query.Query.deletePersistentAll(Query.java:1094)
> 	at org.jpox.store.query.Query.deletePersistentAll(Query.java:1068)
> 	at org.apache.jdo.tck.query.QueryTest.delete(QueryTest.java:1322)
> 	at org.apache.jdo.tck.query.QueryTest.delete(QueryTest.java:1286)
> 	at org.apache.jdo.tck.query.QueryTest.deletePersistentAllBySingleStringQuery(QueryTest.java:1259)
> 	at org.apache.jdo.tck.query.delete.DeleteQueryElements.testNegative(DeleteQueryElements.java:238)
> 	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