You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Albert Lee (JIRA)" <ji...@apache.org> on 2012/10/09 20:38:03 UTC
[jira] [Closed] (OPENJPA-2158) LiteAutoDetach +
DetachProxyFields=false can lead to Broker concurrency exceptions
[ https://issues.apache.org/jira/browse/OPENJPA-2158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Albert Lee closed OPENJPA-2158.
-------------------------------
> 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.1.1, 2.2.0, 2.3.0
> Reporter: Rick Curtis
> Assignee: 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
For more information on JIRA, see: http://www.atlassian.com/software/jira