0 Replies Latest reply on Jan 21, 2015 3:21 PM by Suhasan Chirravuri

    Getting Cannot load null class! on infinispan startup

    Suhasan Chirravuri Newbie

      hi

      Getting the following exception when i migrate from 5.1.X to 5.2.x. My test scenario was to test persistence for infinispan

       

      Exception occured while loading the cache region: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.loaders.CacheLoaderManagerImpl.start() on object of type CacheLoaderManagerImpl

                      at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:205) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:886) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:657) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:646) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:549) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:217) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at org.infinispan.CacheImpl.start(CacheImpl.java:582) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:686) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:649) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:545) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_24]

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.6.0_24]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.6.0_24]

                      at java.lang.reflect.Method.invoke(Method.java:616) [rt.jar:1.6.0_24]

                      at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:130) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]

                      at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]

                      at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]

                      at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]

                      at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]

                      at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:248) [jboss-as-ejb3-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:344) [jboss-as-ejb3-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:66) [jboss-as-ejb3-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]

                      at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]

                      at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]

                      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]

                      at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:126) [jboss-as-ejb3-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:141) [jboss-as-ejb3-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.6.0_24]

                      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.6.0_24]

                      at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.6.0_24]

                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_24]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_24]

                      at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]

                      at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: org.infinispan.CacheException: Unable to start cache loaders

                      at org.infinispan.loaders.CacheLoaderManagerImpl.start(CacheLoaderManagerImpl.java:160) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_24]

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.6.0_24]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.6.0_24]

                      at java.lang.reflect.Method.invoke(Method.java:616) [rt.jar:1.6.0_24]

                      at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:203) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      ... 51 more

      Caused by: java.lang.IllegalArgumentException: Cannot load null class!

                      at org.infinispan.util.Util.getInstance(Util.java:221) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at org.infinispan.loaders.jdbc.connectionfactory.ConnectionFactory.getConnectionFactory(ConnectionFactory.java:42) [infinispan-cachestore-jdbc-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore.start(JdbcStringBasedCacheStore.java:119) [infinispan-cachestore-jdbc-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      at org.infinispan.loaders.CacheLoaderManagerImpl.start(CacheLoaderManagerImpl.java:152) [infinispan-core-5.2.6.Final-redhat-1.jar:5.2.6.Final-redhat-1]

                      ... 56 more

       

      On comparing logs

       

      In 5.1.8

       

      Starting cache with config: JdbcStringBasedCacheStoreConfig{key2StringMapper=null} AbstractNonDelegatingJdbcCacheStoreConfig{lockConcurrencyLevel=2048, lockAcquistionTimeout=60000, tableManipulation=org.infinispan.loaders.jdbc.TableManipulation@5f66320b, manageConnectionFactory=true} AbstractJdbcCacheStoreConfig{connectionFactoryConfig=ConnectionFactoryConfig{connectionFactoryClass='org.infinispan.loaders.jdbc.connectionfactory.ManagedConnectionFactory', driverClass='null', connectionUrl='jdbc:mysql://15.213.49.81:3306/test', userName='root'}} LockSupportCacheStoreConfig{lockConcurrencyLevel=2048, lockAcquistionTimeout=60000} JdbcStringBasedCacheStoreConfig{className='org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore', ignoreModifications=false, fetchPersistentState=true, properties={}, purgeOnStartup=false},, singletonStore{org.infinispan.loaders.decorators.SingletonStoreConfig@6954bfe}, async{org.infinispan.loaders.decorators.AsyncStoreConfig@33b01412}, purgeSynchronously{false}, purgerThreads{1}

       

      In 5.2.6

      Starting cache with config: JdbcStringBasedCacheStoreConfig{key2StringMapper=null} AbstractNonDelegatingJdbcCacheStoreConfig{lockConcurrencyLevel=2048, lockAcquistionTimeout=60000, tableManipulation=org.infinispan.loaders.jdbc.TableManipulation@6a02938d, manageConnectionFactory=true} AbstractJdbcCacheStoreConfig{connectionFactoryConfig=ConnectionFactoryConfig{connectionFactoryClass='null', driverClass='null', connectionUrl='null', userName='null'}} LockSupportCacheStoreConfig{lockConcurrencyLevel=2048, lockAcquistionTimeout=60000} JdbcStringBasedCacheStoreConfig{className='org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore', ignoreModifications=false, fetchPersistentState=true, properties={}, purgeOnStartup=false},, singletonStore{org.infinispan.loaders.decorators.SingletonStoreConfig@4f25445a}, async{org.infinispan.loaders.decorators.AsyncStoreConfig@17aa994e}, purgeSynchronously{false}, purgerThreads{1}

       

      The AbstractJdbcCacheStoreConfig became null while loading confirguraiton, So please let me know how can I add the same?