|NPE on concurrent entity manager access [message #385457]
||Wed, 11 February 2009 15:48
| Johannes Stamminger
Registered: July 2009
I get a NPE
org.eclipse.persistence.internal.databaseaccess.Parameterize dSQLBatchWritingMechanism.executeBatchedStatements(Parameter izedSQLBatchWritingMechanism.java:147)
with accessing a single entity manager concurrently (update + select or
select + select). Obviously the "this.previousCall" in that line is null
(also seen in debugger). This is no "stable" behavior meaning that
sometimes no such exception occurs - but something else then goes wrong.
So my question: is it allowed to access the entity manager concurrently in
general? Use case here is that I wait for a entity being updated in the
database and both tasks (=threads), the one updating and the one reading
by way of a query use the same entity manager.
Powered by FUDForum
. Page generated in 0.01985 seconds