You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by CarpathianAnonymous <an...@yahoo.com> on 2012/08/21 16:21:44 UTC
Exception during commit - null
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
--
View this message in context: http://openjpa.208410.n2.nabble.com/Exception-during-commit-null-tp7580913.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: Exception during commit - null
Posted by Rick Curtis <cu...@gmail.com>.
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*