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

ClassCastException during rehash if join RPC has any exceptional responses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.CR1, 4.2.0.Final
    • 4.2.0.ALPHA5
    • Core
    • None

      JoinTask.updateTopologyInfo(...) assumes all responses from a JOIN_REHASH_START will be SuccessfulResponse's. ExceptionResponse's are not handled and cause a CCE.

      org.infinispan.CacheException: Caught exception invoking method public void org.jboss.web.tomcat.service.session.distributedcache.ispn.DistributedCacheManager$ViewChangeListener.viewChanged(org.infinispan.notifications.cachemanagerlistener.event.ViewChangedEvent) on listener instance org.jboss.web.tomcat.service.session.distributedcache.ispn.DistributedCacheManager$ViewChangeListener@69408a75
      at org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation$1.run(AbstractListenerImpl.java:179)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.distribution.DistributionManagerImpl.waitForJoinToComplete() throws java.lang.Throwable on object
      at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:173)
      at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:861)
      at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:680)
      at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:582)
      at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:148)
      at org.infinispan.CacheDelegate.start(CacheDelegate.java:317)
      at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:493)
      at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:437)
      at org.jboss.web.tomcat.service.session.distributedcache.ispn.DistributedCacheManager.getJvmRouteCache(DistributedCacheManager.java:152)
      at org.jboss.web.tomcat.service.session.distributedcache.ispn.DistributedCacheManager$ViewChangeListener.viewChanged(DistributedCacheManager.java:564)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation$1.run(AbstractListenerImpl.java:175)
      ... 3 more
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:170)
      ... 17 more
      Caused by: org.infinispan.CacheException: Unexpected exception
      at org.infinispan.distribution.JoinTask.performRehash(JoinTask.java:145)
      at org.infinispan.distribution.RehashTask.call(RehashTask.java:53)
      at org.infinispan.distribution.RehashTask.call(RehashTask.java:33)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      ... 3 more
      Caused by: java.lang.ClassCastException: org.infinispan.remoting.responses.ExceptionResponse cannot be cast to org.infinispan.remoting.responses.SuccessfulResponse
      at org.infinispan.distribution.JoinTask.updateTopologyInfo(JoinTask.java:158)
      at org.infinispan.distribution.JoinTask.performRehash(JoinTask.java:106)

              manik_jira Manik Surtani (Inactive)
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: