openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Pflueger <Michael.Pflue...@sma.de>
Subject Re: concurrent thread exception plus deadlock on delete statement using slice
Date Wed, 08 Jun 2011 06:58:40 GMT
Hello,

>  1. Try em.createQuery("delete from A a")

I've tried this, but the error persists. The trace is:

Exception in thread "main" <openjpa-2.1.0-r422266:1071316 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:1935)
	at org.apache.openjpa.kernel.BrokerImpl.isActive(BrokerImpl.java:1883)
	at org.apache.openjpa.kernel.DelegatingBroker.isActive(DelegatingBroker.java:468)
	at org.apache.openjpa.persistence.EntityManagerImpl.isActive(EntityManagerImpl.java:668)
	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.deleteAll(DelegatingQuery.java:560)
	at org.apache.openjpa.persistence.QueryImpl.executeUpdate(QueryImpl.java:362)
	at betriebsdaten.demo.OpenJpaDemo.main(OpenJpaDemo.java:28)
___________________________________________________

SMA Solar Technology AG
Aufsichtsrat: Guenther Cramer (Vorsitzender)
Vorstand: Juergen Dolle, Roland Grebe, Uwe Hertel, Pierre-Pascal Urbon, Marko Werner
Handelsregister: Amtsgericht Kassel HRB 3972
Sitz der Gesellschaft: 34266 Niestetal
USt-ID-Nr. DE 113 08 59 54
WEEE-Reg.-Nr. DE 95881150
___________________________________________________


Mime
View raw message