[ https://issues.apache.org/jira/browse/OPENJPA-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Wisneski resolved OPENJPA-109. ------------------------------------ Resolution: Fixed This problem is fixed in current code. > every NativeQuery using SqlResultSetMapping fails at runtime with There is no > query result mapping for "null" with name "xxx" when the entity is persisted > in a different method than the method doing the query. > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: OPENJPA-109 > URL: https://issues.apache.org/jira/browse/OPENJPA-109 > Project: OpenJPA > Issue Type: Bug > Environment: windows xp, openjpa_097_incubating > Reporter: George Hongell > > every NativeQuery using SqlResultSetMapping fails at runtime with There is no > query result mapping for "null" with name "xxx" when the entity is persisted > in a different method than the method doing the query. > <4|true|0.9.7-incubating-SNAPSHOT> > org.apache.openjpa.persistence.ArgumentException: > There is no query result mapping for "null" with name "DeptBeanMapping". > at > org.apache.openjpa.jdbc.meta.MappingRepository.getQueryResultMapping(MappingRepository.java:175) > at > org.apache.openjpa.jdbc.kernel.SQLStoreQuery$SQLExecutor.<init>(SQLStoreQuery.java:174) > at > org.apache.openjpa.jdbc.kernel.SQLStoreQuery.newDataStoreExecutor(SQLStoreQuery.java:143) > at > org.apache.openjpa.kernel.QueryImpl.createExecutor(QueryImpl.java:718) > at > org.apache.openjpa.kernel.QueryImpl.compileForDataStore(QueryImpl.java:676) > at > org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:658) > at org.apache.openjpa.kernel.QueryImpl.getOperation(QueryImpl.java:1463) > at > org.apache.openjpa.kernel.DelegatingQuery.getOperation(DelegatingQuery.java:120) > at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:214) > at > org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:264) > at > com.ibm.ws.query.tests.JUNamedNativeQueryTest.testSelectDeptBean(JUNamedNativeQueryTest.java:457) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:615) > at junit.framework.TestCase.runTest(Unknown Source) > at junit.framework.TestCase.runBare(Unknown Source) > at junit.framework.TestResult$1.protect(Unknown Source) > at junit.framework.TestResult.runProtected(Unknown Source) > at junit.framework.TestResult.run(Unknown Source) > at junit.framework.TestCase.run(Unknown Source) > at junit.framework.TestSuite.runTest(Unknown Source) > at junit.framework.TestSuite.run(Unknown Source) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.