-
Bug
-
Resolution: Done
-
Blocker
-
JDG 7.2 ER1
-
None
All the Java tests being run via IKVM now fail with an exception similar to the one below. It turns out that the new code for ISPN-8543 invokes sun.misc.Unsafe which fails in IKVM. The tests were running fine with DR4. A similar problem will appear in the upstream dotnet-client when the version of Infinispan dependency is upgraded there.
org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.globalstate.impl.GlobalConfigurationManagerImpl.start() on object of type GlobalConfigurationManagerImpl at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:256) at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:668) at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:260) at org.infinispan.test.fwk.TestCacheManagerFactory.newDefaultCacheManager(TestCacheManagerFactory.java:411) at org.infinispan.test.fwk.TestCacheManagerFactory.newDefaultCacheManager(TestCacheManagerFactory.java:71) at org.infinispan.test.fwk.TestCacheManagerFactory.createCacheManager(TestCacheManagerFactory.java:244) at org.infinispan.test.fwk.TestCacheManagerFactory.createCacheManager(TestCacheManagerFactory.java:219) at org.infinispan.client.hotrod.CacheManagerNotStartedTest.createCacheManager(CacheManagerNotStartedTest.java:33) at org.infinispan.test.SingleCacheManagerTest.setup(SingleCacheManagerTest.java:31) at org.infinispan.client.hotrod.CacheManagerNotStartedTest.setup(CacheManagerNotStartedTest.java:42) at org.infinispan.test.SingleCacheManagerTest.createBeforeClass(SingleCacheManagerTest.java:44) at java.lang.reflect.Method.invoke(Method.java:486) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:79) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:140) at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:172) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107) at org.testng.TestRunner.privateRun(TestRunner.java:766) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:336) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:64) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1199) at org.testng.TestNG.runSuitesLocally(TestNG.java:1123) at org.testng.TestNG.run(TestNG.java:1031) at org.infinispan.client.hotrod.JavaClientTests.main(JavaClientTests.java:92) Caused by: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.globalstate.impl.GlobalConfigurationManagerImpl.start() on object of type GlobalConfigurationManagerImpl at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:172) at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:879) at org.infinispan.factories.AbstractComponentRegistry.invokePrioritizedMethods(AbstractComponentRegistry.java:643) at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:631) at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:549) at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:242) ... 29 more Caused by: java.lang.ExceptionInInitializerError at com.github.benmanes.caffeine.cache.BaseMpscLinkedArrayQueue.modifiedCalcElementOffset(MpscGrowableArrayQueue.java:296) at com.github.benmanes.caffeine.cache.BaseMpscLinkedArrayQueue.offer(MpscGrowableArrayQueue.java:254) at com.github.benmanes.caffeine.cache.BoundedLocalCache.afterWrite(BoundedLocalCache.java:912) at com.github.benmanes.caffeine.cache.BoundedLocalCache.put(BoundedLocalCache.java:1542) at com.github.benmanes.caffeine.cache.BoundedLocalCache.put(BoundedLocalCache.java:1491) at org.infinispan.registry.impl.InternalCacheRegistryImpl.registerInternalCache(InternalCacheRegistryImpl.java:69) at org.infinispan.globalstate.impl.GlobalConfigurationManagerImpl.start(GlobalConfigurationManagerImpl.java:56) at java.lang.reflect.Method.invoke(Method.java:486) at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:167) ... 34 more Caused by: java.lang.IllegalStateException: Unknown pointer size at com.github.benmanes.caffeine.cache.UnsafeRefArrayAccess.<clinit>(MpscGrowableArrayQueue.java:600) ... 36 more