openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: Exception during commit - null
Date Tue, 04 Sep 2012 19:42:50 GMT
Can you provide any more details on what conditions this NPE happens? I
don't know how we could have started a transaction without first getting a
connection... thus, avoiding the NPE.

Thanks,
Rick

On Tue, Aug 21, 2012 at 9:21 AM, CarpathianAnonymous <
andreibratu2004@yahoo.com> wrote:

> Hello,
>
> I'm getting the following exception when trying to commit with the
> following
> command:
> EntityManager instance.getTransaction().commit()
> The error does not appear all the time. Do you have some ideea why this is
> happening ?
>
> Thanks
>
> INFO   | jvm 1    | 2012/08/21 16:28:53 | <openjpa-2.1.1-r422266:1148538
> fatal store error> org.apache.openjpa.persistence.RollbackException: null
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       at
>
> org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:593)
>
> ...
>
> INFO   | jvm 1    | 2012/08/21 16:28:53 | Caused by:
> <openjpa-2.1.1-r422266:1148538 nonfatal general error>
> org.apache.openjpa.persistence.PersistenceException: null
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       at
> org.apache.openjpa.kernel.BrokerImpl.afterCompletion(BrokerImpl.java:2018)
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       at
>
> org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:94)
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       at
> org.apache.openjpa.kernel.BrokerImpl.commit(BrokerImpl.java:1498)
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       at
>
> org.apache.openjpa.kernel.DelegatingBroker.commit(DelegatingBroker.java:933)
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       at
>
> org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:569)
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       ... 19 more
> INFO   | jvm 1    | 2012/08/21 16:28:53 | Caused by:
> java.lang.NullPointerException
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       at
>
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.commit(JDBCStoreManager.java:225)
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       at
>
> org.apache.openjpa.kernel.DelegatingStoreManager.commit(DelegatingStoreManager.java:95)
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       at
>
> org.apache.openjpa.kernel.BrokerImpl.endStoreManagerTransaction(BrokerImpl.java:1455)
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       at
> org.apache.openjpa.kernel.BrokerImpl.endTransaction(BrokerImpl.java:2335)
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       at
> org.apache.openjpa.kernel.BrokerImpl.afterCompletion(BrokerImpl.java:1994)
> INFO   | jvm 1    | 2012/08/21 16:28:53 |       ... 23 more
>
>
>
> --
>
> --
*Rick Curtis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message