Bug 1108089 - LevelDBCacheStoreTest fails -- NoClassDefFoundError and arjuna.exceptions.FatalError
Summary: LevelDBCacheStoreTest fails -- NoClassDefFoundError and arjuna.exceptions.Fat...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Server
Version: 6.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER2
: 6.3.1
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-11 12:46 UTC by Tomas Sykora
Modified: 2015-01-26 14:04 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
: 1139633 (view as bug list)
Environment:
Last Closed: 2015-01-26 14:04:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-4409 0 Major Resolved LevelDBCacheStoreIT fails to initialise with com.arjuna.ats.arjuna.exceptions.FatalError 2016-11-18 09:26:40 UTC

Description Tomas Sykora 2014-06-11 12:46:21 UTC
Issue needs further investigation.

Tests are passing with upstream suite. Not opening JIRA yet.


testDataSurvivesRestart(org.infinispan.server.test.cs.leveldb.LevelDBCacheStoreTest)  Time elapsed: 0.007 sec  <<< ERROR!
com.arjuna.ats.arjuna.exceptions.FatalError: null
	at com.arjuna.ats.internal.jts.ORBManager.getPOA(ORBManager.java:96)
	at com.arjuna.ats.internal.jts.OTSImpleManager.<clinit>(OTSImpleManager.java:296)
	at com.arjuna.ats.internal.jta.transaction.jts.TransactionImple.getTransaction(TransactionImple.java:1132)
	at com.arjuna.ats.internal.jta.transaction.jts.TransactionManagerImple.getTransaction(TransactionManagerImple.java:69)
	at org.infinispan.CacheImpl.getOngoingTransaction(CacheImpl.java:1411)
	at org.infinispan.CacheImpl.getInvocationContextForRead(CacheImpl.java:586)
	at org.infinispan.CacheImpl.keySet(CacheImpl.java:474)
	at org.infinispan.CacheImpl.keySet(CacheImpl.java:469)
	at org.infinispan.registry.ClusterRegistryImpl.keys(ClusterRegistryImpl.java:71)
	at org.infinispan.query.remote.ProtobufMetadataManager.ensureInit(ProtobufMetadataManager.java:67)
	at org.infinispan.query.remote.ProtobufMetadataManager.getSerializationContext(ProtobufMetadataManager.java:132)
	at org.infinispan.query.remote.LifecycleManager.cacheStarting(LifecycleManager.java:114)
	at org.infinispan.factories.ComponentRegistry.notifyCacheStarting(ComponentRegistry.java:228)
	at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:214)
	at org.infinispan.CacheImpl.start(CacheImpl.java:696)
	at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:574)
	at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:529)
	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:409)
	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:382)
	at org.infinispan.server.test.cs.leveldb.LevelDBCacheStoreTest.getServerMarshaller(LevelDBCacheStoreTest.java:190)
	at org.infinispan.server.test.cs.leveldb.LevelDBCacheStoreTest.<clinit>(LevelDBCacheStoreTest.java:67)

testDataRetrievableViaLevelDbApi(org.infinispan.server.test.cs.leveldb.LevelDBCacheStoreTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.infinispan.server.test.cs.leveldb.LevelDBCacheStoreTest
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
	at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:195)
	at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:244)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:241)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)
	at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
	at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
	at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
	at org.junit.runners.Suite.runChild(Suite.java:127)
	at org.junit.runners.Suite.runChild(Suite.java:26)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:141)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:114)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:86)
	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

Comment 2 Galder Zamarreño 2014-06-16 13:45:35 UTC
https://issues.jboss.org/browse/ISPN-4409

Comment 3 Galder Zamarreño 2014-06-17 08:38:33 UTC
PR for ISPN-4409: https://github.com/infinispan/infinispan/pull/2650

Comment 4 Tomas Sykora 2014-07-08 12:10:23 UTC
Still the same problem for product in 6.3.0 CR2.

Comment 5 Tomas Sykora 2014-07-08 12:10:45 UTC
Note, that there is leveldb-0.6.jar used in product.

Comment 8 Martin Gencur 2014-08-22 12:47:01 UTC
Integrated the PR:https://github.com/infinispan/jdg/pull/203 
Jakub: The error "Caused by: java.lang.ClassNotFoundException: org.iq80.leveldb.impl.Iq80DBFactory" is probably caused by the fact that JDG server does not contain iq80 libaries as we only support the JNI implementation of LevelDB cache store. I tried to run the test with option -Dleveldb.impl=JNI and it passes. Maybe it's worth to change the default value to JNI instead of having to specify it by a parameter

Comment 9 Tomas Sykora 2014-09-08 10:44:34 UTC
Verified for 6.3.1. Thanks Jakub for fixes! 

Still remains on ON_QA state as we want to verify it also with 6.4.0.x


Note You need to log in before you can comment on or make changes to this bug.