[
https://issues.apache.org/jira/browse/OPENJPA-1552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842446#action_12842446
]
Albert Lee commented on OPENJPA-1552:
-------------------------------------
It turns out the problem is not in OpenJPA. It is caused by a derived
provider's StoreManager class not supporting QueryLanguages.LANG_PREPARED_SQL.
I shall change this JIRA to enable EntityManagerImpl to support proper
QueryImpl creation for its subclass.
> BrokerImpl.newQuery not handling cached openjpa.prepared.SQL
> -------------------------------------------------------------
>
> Key: OPENJPA-1552
> URL: https://issues.apache.org/jira/browse/OPENJPA-1552
> Project: OpenJPA
> Issue Type: Bug
> Components: kernel
> Affects Versions: 2.0.0-beta
> Reporter: Albert Lee
> Assignee: Albert Lee
> Priority: Minor
> Fix For: 2.0.0
>
>
> Ran into the following exception when derived OpenJPA provider is used to
> create multiple query of the same JPQL statement.
> openjpa.prepared.SQL
> org.apache.openjpa.persistence.PersistenceException: openjpa.prepared.SQL
> at org.apache.openjpa.kernel.BrokerImpl.newQuery(BrokerImpl.java:3661)
> at
> org.apache.openjpa.kernel.DelegatingBroker.newQuery(DelegatingBroker.java:1251)
> at
> org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:966)
> at
> com.ibm.ws.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:102)
> at
> com.ibm.ws.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:81)
> at
> com.ibm.ws.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:29)
> at com.ibm.ws.query.pdq.tests.JsePdqCrudTest.setUp(JsePdqCrudTest.java:167)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.