Error : ExceptionInInitializerError

85 views
Skip to first unread message

Harshit Bhuva

unread,
Apr 26, 2022, 11:59:14 AM4/26/22
to WildFly
Hi Team,

I am using remote infinispan cache which 2 nodes

I am trying to run my war junit but I am getting following error while running junit.

I have already added infinispan related jars in my classpath.

NOTE : I am running this war junit using my eclipse and have added the required jars in classpath.


java.lang.ExceptionInInitializerError
    at org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.newPool(ChannelFactory.java:180)
    at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
    at org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.fetchChannelAndInvoke(ChannelFactory.java:261)
    at org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.pingServersIgnoreException(ChannelFactory.java:197)
    at org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.start(ChannelFactory.java:150)
    at org.infinispan.client.hotrod.RemoteCacheManager.actualStart(RemoteCacheManager.java:362)
    at org.infinispan.client.hotrod.RemoteCacheManager.start(RemoteCacheManager.java:316)
    at org.infinispan.client.hotrod.RemoteCacheManager.<init>(RemoteCacheManager.java:174)
    at org.infinispan.jcache.remote.JCacheManager.<init>(JCacheManager.java:43)
    at org.infinispan.jcache.remote.JCachingProvider.createCacheManager(JCachingProvider.java:37)
    at org.infinispan.jcache.AbstractJCachingProvider.getCacheManager(AbstractJCachingProvider.java:66)
    at com.digite.platform.cache.session.RemoteCacheManager.<init>(RemoteCacheManager.java:26)
    at com.digite.platform.CacheHelper.getInstance(CacheHelper.java:50)
    at com.digite.platform.CacheHelperWrapper.put(CacheHelperWrapper.java:28)
    at com.digite.platform.dashboard.web.actions.DashboardActionTest.setWorkspaceMock(DashboardActionTest.java:79)
    at com.digite.platform.dashboard.web.actions.DashboardActionTest.testCreateDashboard(DashboardActionTest.java:124)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at junit.framework.TestCase.runTest(TestCase.java:176)
    at junit.framework.TestCase.runBare(TestCase.java:141)
    at junit.framework.TestResult$1.protect(TestResult.java:122)
    at junit.framework.TestResult.runProtected(TestResult.java:142)
    at junit.framework.TestResult.run(TestResult.java:125)
    at junit.framework.TestCase.run(TestCase.java:129)
    at junit.framework.TestSuite.runTest(TestSuite.java:252)
    at junit.framework.TestSuite.run(TestSuite.java:247)
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:542)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:770)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:464)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:210)
Caused by: org.infinispan.commons.CacheConfigurationException: Unable to instantiate 'org.wildfly.security.sasl.plain.WildFlyElytronSaslPlainProvider'
    at org.infinispan.commons.util.Util.loadClass(Util.java:136)
    at org.infinispan.commons.util.Util.getInstance(Util.java:303)
    at org.infinispan.client.hotrod.impl.transport.netty.ChannelInitializer.<clinit>(ChannelInitializer.java:74)
    ... 35 more
Caused by: java.lang.ClassNotFoundException: org.wildfly.security.sasl.plain.WildFlyElytronSaslPlainProvider
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at org.infinispan.commons.util.Util.loadClassStrict(Util.java:171)
    at org.infinispan.commons.util.Util.loadClass(Util.java:134)
    ... 37 more


Reply all
Reply to author
Forward
0 new messages