[JBoss JIRA] Created: (ISPN-1089) NullPointerException when using an AtomicMap without a TransactionManagerLookup setup
by Emmanuel Bernard (JIRA)
NullPointerException when using an AtomicMap without a TransactionManagerLookup setup
-------------------------------------------------------------------------------------
Key: ISPN-1089
URL: https://issues.jboss.org/browse/ISPN-1089
Project: Infinispan
Issue Type: Bug
Affects Versions: 5.0.0.CR1
Reporter: Emmanuel Bernard
Assignee: Manik Surtani
{code}
org.infinispan.CacheException: Unable to start batch
at org.infinispan.batch.BatchContainer.startBatch(BatchContainer.java:84)
at org.infinispan.batch.AutoBatchSupport.startAtomic(AutoBatchSupport.java:44)
at org.infinispan.atomic.AtomicHashMapProxy.put(AtomicHashMapProxy.java:160)
at org.hibernate.ogm.type.descriptor.PassThroughGridTypeDescriptor$1.doBind(PassThroughGridTypeDescriptor.java:41)
at org.hibernate.ogm.type.descriptor.BasicGridBinder.bind(BasicGridBinder.java:73)
at org.hibernate.ogm.type.AbstractGenericBasicType.nullSafeSet(AbstractGenericBasicType.java:275)
at org.hibernate.ogm.type.AbstractGenericBasicType.nullSafeSet(AbstractGenericBasicType.java:270)
at org.hibernate.ogm.persister.OgmEntityPersister.createNewResultSetIfNull(OgmEntityPersister.java:875)
at org.hibernate.ogm.persister.OgmEntityPersister.insert(OgmEntityPersister.java:859)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:273)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:265)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:383)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:133)
at org.hibernate.ogm.test.embeddable.EmbeddableTest.testEmbeddable(EmbeddableTest.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.hibernate.testing.junit.functional.annotations.HibernateTestCase.runTest(HibernateTestCase.java:97)
at org.hibernate.testing.junit.functional.annotations.HibernateTestCase.runBare(HibernateTestCase.java:85)
at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:109)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:60)
Caused by: java.lang.NullPointerException
at org.infinispan.batch.BatchContainer.startBatch(BatchContainer.java:65)
... 37 more
{code}
A more descriptive exception would be nice. I did not have any NPE until I started to use AtomicMaps in Hibernate OGM. I now set a TransactionManagerLookup and it works.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months