[infinispan-issues] [JBoss JIRA] Commented: (ISPN-779) GlobalComponentRegistry shutdown hook causing issues when servers stopped
Galder Zamarreño (JIRA)
jira-events at lists.jboss.org
Thu Nov 18 04:15:08 EST 2010
[ https://jira.jboss.org/browse/ISPN-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563981#comment-12563981 ]
Galder Zamarreño commented on ISPN-779:
---------------------------------------
The issue is only present in master or trunk and this is due to me merging ISPN-496 incorrectly into the main trunk.
4.1.x: http://fisheye.jboss.org/changelog/Infinispan/?cs=1952
trunk: http://fisheye.jboss.org/changelog/Infinispan/?cs=1954
The code in Main.scala to change the shutdown behaivour is not present in trunk.
> GlobalComponentRegistry shutdown hook causing issues when servers stopped
> -------------------------------------------------------------------------
>
> Key: ISPN-779
> URL: https://jira.jboss.org/browse/ISPN-779
> Project: Infinispan
> Issue Type: Bug
> Components: Cache Server
> Reporter: Galder Zamarreño
> Assignee: Galder Zamarreño
> Fix For: 5.0.0.BETA1
>
>
> I'm seeing a NPE when Memcached server shutdowns:
> Exception in thread "Thread-2" java.lang.RuntimeException: Exception encountered in shutting down the server
> at org.infinispan.server.core.ShutdownHook.run(Main.scala:239)
> Caused by: java.util.concurrent.ExecutionException: org.infinispan.CacheException: Unable to invoke method private void org.infinispan.transaction.xa.TransactionTable.stop() on object
> at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
> at java.util.concurrent.FutureTask.get(FutureTask.java:83)
> at org.infinispan.server.core.ShutdownHook.run(Main.scala:235)
> Caused by: org.infinispan.CacheException: Unable to invoke method private void org.infinispan.transaction.xa.TransactionTable.stop() 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.internalStop(AbstractComponentRegistry.java:709)
> at org.infinispan.factories.AbstractComponentRegistry.stop(AbstractComponentRegistry.java:603)
> at org.infinispan.factories.ComponentRegistry.stop(ComponentRegistry.java:166)
> at org.infinispan.CacheDelegate.stop(CacheDelegate.java:325)
> at org.infinispan.manager.DefaultCacheManager.stop(DefaultCacheManager.java:521)
> at org.infinispan.server.core.ShutdownHook$$anon$5.call(Main.scala:230)
> at org.infinispan.server.core.ShutdownHook$$anon$5.call(Main.scala:226)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 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:680)
> 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)
> ... 13 more
> Caused by: java.lang.NullPointerException
> at org.infinispan.manager.DefaultCacheManager.removeListener(DefaultCacheManager.java:541)
> at org.infinispan.transaction.xa.TransactionTable.stop(TransactionTable.java:87)
> ... 18 more
> The origin seems to be in ISPN-771
> Maybe since transaction table now removes the listener, it needs to stop *before* the cache manager notifier does?
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list