Cannot disable transaction manager
rocketraman Mar 29, 2011 6:59 PMI am running Infinispan 4.2.1 in an unmanaged environment and would like to disable the transaction manager. However, I get an exception on startup no matter how I configure the <transaction/> element in the infinispan.xml file, or even after programmatically calling:
cacheManager.getDefaultConfiguration().setTransactionManagerLookup(null);
cacheManager.getDefaultConfiguration().setTransactionManagerLookupClass(null);
Here is the exception:
Exception in thread "main" org.infinispan.CacheException: Unable to invoke method private void org.infinispan.transaction.xa.TransactionTable.start() on object
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:174)
at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:889)
at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:687)
at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:589)
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:147)
at org.infinispan.CacheDelegate.start(CacheDelegate.java:323)
at mypackageInfinispanCacheStore.initCache(InfinispanCacheStore.java:114)
at mypackage.InfinispanCacheStore.init(InfinispanCacheStore.java:85)
at mypackage.InfinispanCacheStore.main(InfinispanCacheStore.java:380)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:171)
... 13 more
Caused by: java.lang.NullPointerException
at org.infinispan.manager.DefaultCacheManager.addListener(DefaultCacheManager.java:562)
at org.infinispan.transaction.xa.TransactionTable.start(TransactionTable.java:105)
... 18 more
Is there any way to simply disable the transaction manager?
Thanks,
Raman