You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Michael Watzek (JIRA)" <ji...@apache.org> on 2005/12/09 14:52:08 UTC

[jira] Created: (JDO-239) JPOX throws NPE when result class is specified with no result clause for deletion by query using single string query.

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
 Assigned to: Erik Bengtson 


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


[jira] Assigned: (JDO-239) JPOX throws NPE when result class is specified with no result clause for deletion by query using single string query.

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-239?page=all ]

Andy Jefferson reassigned JDO-239:
----------------------------------

    Assign To: Andy Jefferson  (was: Erik Bengtson)

> 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


[jira] Resolved: (JDO-239) JPOX throws NPE when result class is specified with no result clause for deletion by query using single string query.

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
     [ 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