[infinispan-issues] [JBoss JIRA] Commented: (ISPN-752) ClassCastException during rehash if join RPC has any exceptional responses
Scott Marlow (JIRA)
jira-events at lists.jboss.org
Tue Nov 2 15:23:01 EDT 2010
[ https://jira.jboss.org/browse/ISPN-752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560968#action_12560968 ]
Scott Marlow commented on ISPN-752:
-----------------------------------
I also hit a NPE rehash issue. http://pastebin.com/E237tmY8
I was going to create a new jira but it also seems to be doing a org.infinispan.distribution.JoinTask.performRehash. Let me know if it deserves a separate jira
> ClassCastException during rehash if join RPC has any exceptional responses
> --------------------------------------------------------------------------
>
> Key: ISPN-752
> URL: https://jira.jboss.org/browse/ISPN-752
> Project: Infinispan
> Issue Type: Bug
> Components: Distributed Cache
> Affects Versions: 4.2.0.ALPHA5
> Reporter: Paul Ferraro
> Assignee: Manik Surtani
> Fix For: 4.2.0.Final
>
>
> 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 at 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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list