LiteAutoDetach + DetachProxyFields=false can lead to Broker concurrency
exceptions
----------------------------------------------------------------------------------
Key: OPENJPA-2158
URL: https://issues.apache.org/jira/browse/OPENJPA-2158
Project: OpenJPA
Issue Type: Bug
Components: kernel
Affects Versions: 2.2.0, 2.1.1, 2.3.0
Reporter: Rick Curtis
Fix For: 2.3.0, 2.2.1
OPENJPA-2014 added support for allowing proxies to stay in place after detach,
but these detached proxy instances still hold a reference to a StateManager
that is no longer valid.
Exception data: <openjpa-2.2.1-SNAPSHOT-r422266:1244808 fatal general error>
org.apache.openjpa.persistence.PersistenceException: Multiple concurrent
threads attempted to access a single broker. By default brokers are not thread
safe; if you require and/or intend a broker to be accessed by more than one
thread, set the openjpa.Multithreaded property to true to override the default
behavior.
at
org.apache.openjpa.kernel.BrokerImpl.endOperation(BrokerImpl.java:1956)
at org.apache.openjpa.kernel.BrokerImpl.isActive(BrokerImpl.java:1904)
at
org.apache.openjpa.kernel.DelegatingBroker.isActive(DelegatingBroker.java:476)
at
org.apache.openjpa.persistence.EntityManagerImpl.isActive(EntityManagerImpl.java:677)
at
org.apache.openjpa.persistence.PersistenceExceptions$2.translate(PersistenceExceptions.java:76)
at
org.apache.openjpa.kernel.DelegatingQuery.translate(DelegatingQuery.java:99)
at
org.apache.openjpa.kernel.DelegatingQuery.execute(DelegatingQuery.java:544)
at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:286)
at
org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:302)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira