Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-15886

ClassCastException during startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 15.0.1.Final, 14.0.28.Final
    • 14.0.24.Final
    • None
    • None

      I am getting the following error during startup.

      Clearly something is wrong (maybe with my step up). This is currently stopping my node rejoining the cluster.

       

      However, as I basically have no info on what is wrong, so this issue is just related to the fact that we get a ClassCastException on the exception, which is suppressing the actual exception.

       

      I've got a fix which I will open a pull request for.

       

      11:17:18,746 ERROR (main) [org.infinispan.CONFIG] ISPN000660: Cache org.infinispan.LOCKS start failed, stopping any running components org.infinispan.commons.CacheConfigurationException: ISPN000659: Component ComponentWrapper{name=org.infinispan.statetransfer.StateTransferManager, instance=StateTransferManagerImpl [org.infinispan.LOCKS@online-instances-infinispan-1-2046], status=FAILED} failed to start
      	at org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:584)
      	at org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:807)
      	at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:379)
      	at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:252)
      	at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:222)
      	at org.infinispan.cache.impl.CacheImpl.start(CacheImpl.java:1009)
      	at org.infinispan.cache.impl.AbstractDelegatingCache.start(AbstractDelegatingCache.java:504)
      	at org.infinispan.cache.impl.AbstractDelegatingCache.start(AbstractDelegatingCache.java:504)
      	at org.infinispan.cache.impl.AbstractDelegatingCache.start(AbstractDelegatingCache.java:504)
      	at org.infinispan.cache.impl.AbstractDelegatingCache.start(AbstractDelegatingCache.java:504)
      	at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:727)
      	at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:673)
      	at org.infinispan.manager.DefaultCacheManager.internalGetCache(DefaultCacheManager.java:562)
      	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:525)
      	at org.infinispan.security.actions.GetCacheAction.run(GetCacheAction.java:26)
      	at org.infinispan.security.actions.GetCacheAction.run(GetCacheAction.java:14)
      	at org.infinispan.security.Security.doPrivileged(Security.java:61)
      	at org.infinispan.registry.impl.SecurityActions.getCache(SecurityActions.java:49)
      	at org.infinispan.registry.impl.InternalCacheRegistryImpl.startInternalCaches(InternalCacheRegistryImpl.java:136)
      	at org.infinispan.globalstate.impl.GlobalConfigurationManagerImpl.start(GlobalConfigurationManagerImpl.java:106)
      	at org.infinispan.globalstate.impl.CorePackageImpl$2.start(CorePackageImpl.java:61)
      	at org.infinispan.globalstate.impl.CorePackageImpl$2.start(CorePackageImpl.java:48)
      	at org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeStart(BasicComponentRegistryImpl.java:616)
      	at org.infinispan.factories.impl.BasicComponentRegistryImpl.doStartWrapper(BasicComponentRegistryImpl.java:607)
      	at org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:576)
      	at org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:807)
      	at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:379)
      	at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:252)
      	at org.infinispan.manager.DefaultCacheManager.internalStart(DefaultCacheManager.java:779)
      	at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:747)
      	at org.infinispan.server.SecurityActions.lambda$startCacheManager$1(SecurityActions.java:68)
      	at org.infinispan.security.Security.doPrivileged(Security.java:56)
      	at org.infinispan.server.SecurityActions.doPrivileged(SecurityActions.java:40)
      	at org.infinispan.server.SecurityActions.startCacheManager(SecurityActions.java:71)
      	at org.infinispan.server.Server.run(Server.java:425)
      	at org.infinispan.server.Bootstrap.runInternal(Bootstrap.java:173)
      	at org.infinispan.server.tool.Main.run(Main.java:98)
      	at org.infinispan.server.Bootstrap.main(Bootstrap.java:56)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      	at org.infinispan.server.loader.Loader.run(Loader.java:106)
      	at org.infinispan.server.loader.Loader.main(Loader.java:51)
      Caused by: java.util.concurrent.CompletionException: java.lang.ClassCastException: class java.lang.NullPointerException cannot be cast to class org.infinispan.topology.CacheJoinException (java.lang.NullPointerException is in module java.base of loader 'bootstrap'; org.infinispan.topology.CacheJoinException is in unnamed module of loader java.net.URLClassLoader @3a71f4dd)
      	at org.infinispan.util.concurrent.CompletionStages.join(CompletionStages.java:89)
      	at org.infinispan.statetransfer.StateTransferManagerImpl.start(StateTransferManagerImpl.java:123)
      	at org.infinispan.statetransfer.CorePackageImpl$2.start(CorePackageImpl.java:102)
      	at org.infinispan.statetransfer.CorePackageImpl$2.start(CorePackageImpl.java:81)
      	at org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeStart(BasicComponentRegistryImpl.java:616)
      	at org.infinispan.factories.impl.BasicComponentRegistryImpl.doStartWrapper(BasicComponentRegistryImpl.java:607)
      	at org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:576)
      	... 43 more 

              Unassigned Unassigned
              rubik_cube_man Luke Morfill (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: