openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Persson (JIRA)" <>
Subject [jira] [Resolved] (OPENJPA-2193) Nullpointer exception when persisting object during high load
Date Tue, 17 Jul 2012 06:10:33 GMT


Daniel Persson resolved OPENJPA-2193.

    Resolution: Not A Problem

Hi again.

Seems that this one could be resolved. We found a quite severe EntityManager leakage when
it comes to threads. I thought they where GC'ed when the thread ended but it seems they lived
on and caused a lot of unexplained behavior. After we put in code to manage our Entities manually
and also visualize their usage the problems have drastically decreased.

Thanks again for the time you've put in to try to help me.

Best regards

> Nullpointer exception when persisting object during high load
> -------------------------------------------------------------
>                 Key: OPENJPA-2193
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Daniel Persson
>            Priority: Minor
>         Attachments: patch-tomcat-pooling-fix.patch
> During high load and many persists _conn is null during commit.
> Caused by: <openjpa-2.2.0-r422266:1244990 nonfatal general error> org.apache.openjpa.persistence.PersistenceException:
>         at org.apache.openjpa.kernel.BrokerImpl.afterCompletion(
>         at org.apache.openjpa.kernel.LocalManagedRuntime.commit(
>         at org.apache.openjpa.kernel.BrokerImpl.commit(
>         at org.apache.openjpa.kernel.DelegatingBroker.commit(
>         at org.apache.openjpa.persistence.EntityManagerImpl.commit(
>         ... 29 more
> Caused by: java.lang.NullPointerException
>         at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.commit(
>         at org.apache.openjpa.kernel.DelegatingStoreManager.commit(
>         at org.apache.openjpa.datacache.DataCacheStoreManager.commit(
>         at org.apache.openjpa.kernel.DelegatingStoreManager.commit(
>         at org.apache.openjpa.kernel.BrokerImpl.endStoreManagerTransaction(
>         at org.apache.openjpa.kernel.BrokerImpl.endTransaction(
>         at org.apache.openjpa.kernel.BrokerImpl.afterCompletion(
>         ... 33 more

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message