openjpa-users mailing list archives

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

>  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(
	at org.apache.openjpa.kernel.BrokerImpl.isActive(
	at org.apache.openjpa.kernel.DelegatingBroker.isActive(
	at org.apache.openjpa.persistence.EntityManagerImpl.isActive(
	at org.apache.openjpa.persistence.PersistenceExceptions$2.translate(
	at org.apache.openjpa.kernel.DelegatingQuery.translate(
	at org.apache.openjpa.kernel.DelegatingQuery.deleteAll(
	at org.apache.openjpa.persistence.QueryImpl.executeUpdate(
	at betriebsdaten.demo.OpenJpaDemo.main(

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

View raw message