[
https://issues.jboss.org/browse/ISPN-1603?page=com.atlassian.jira.plugin....
]
Dan Berindei commented on ISPN-1603:
------------------------------------
It's harmless, it should only happen during the coordinator shutdown. I wanted to set
{{viewTriggerThread}} to {{null}} to ensure that we don't keep its context classloader
around longer than necessary, but I guess it would be even better to set the thread
context classloader to the {{core}} classloader and let {{viewTriggerThread}} be non-null
all the time.
NPE on ViewChangedEvent
-----------------------
Key: ISPN-1603
URL:
https://issues.jboss.org/browse/ISPN-1603
Project: Infinispan
Issue Type: Bug
Components: Listeners
Affects Versions: 5.1.0.CR1
Reporter: Sanne Grinovero
Assignee: Dan Berindei
Fix For: 5.1.0.CR2
This seems to happen in backgrous, without really affecting test functionality; at least
it seems so.
Can be observed for example running the testsuite of *Query*.
{noformat} 2011-12-09 12:18:32,749 ERROR [NAKACK] (Incoming-1,Infinispan-Cluster,Command
line test-NodeR-34770) couldn't deliver message [dst: <null>, src: Command line
test-NodeQ-7093 (3 headers), size=0 bytes]
java.lang.RuntimeException: org.infinispan.CacheException: Caught exception
[java.lang.NullPointerException] while invoking method [public void
org.infinispan.cacheviews.CacheViewsManagerImpl$ViewListener.handleViewChange(org.infinispan.notifications.cachemanagerlistener.event.ViewChangedEvent)]
on listener instance:
org.infinispan.cacheviews.CacheViewsManagerImpl$ViewListener@284dbb2f
at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:561)
at org.jgroups.JChannel.up(JChannel.java:716)
at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1026)
at org.jgroups.protocols.FRAG2.up(FRAG2.java:181)
at org.jgroups.protocols.FC.up(FC.java:499)
at org.jgroups.protocols.pbcast.GMS.installView(GMS.java:625)
at
org.jgroups.protocols.pbcast.ParticipantGmsImpl.handleViewChange(ParticipantGmsImpl.java:152)
at org.jgroups.protocols.pbcast.GMS.up(GMS.java:781)
at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:244)
at org.jgroups.protocols.UNICAST.up(UNICAST.java:332)
at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:733)
at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:561)
at org.jgroups.protocols.Discovery.up(Discovery.java:354)
at org.jgroups.protocols.TP.passMessageUp(TP.java:1174)
at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1709)
at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1686)
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:662)
Caused by: org.infinispan.CacheException: Caught exception
[java.lang.NullPointerException] while invoking method [public void
org.infinispan.cacheviews.CacheViewsManagerImpl$ViewListener.handleViewChange(org.infinispan.notifications.cachemanagerlistener.event.ViewChangedEvent)]
on listener instance:
org.infinispan.cacheviews.CacheViewsManagerImpl$ViewListener@284dbb2f
at
org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation$1.run(AbstractListenerImpl.java:204)
at
org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:41)
at
org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation.invoke(AbstractListenerImpl.java:220)
at
org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifierImpl.notifyViewChange(CacheManagerNotifierImpl.java:96)
at
org.infinispan.remoting.transport.jgroups.JGroupsTransport$NotifyViewChange.emitNotification(JGroupsTransport.java:461)
at
org.infinispan.remoting.transport.jgroups.JGroupsTransport.viewAccepted(JGroupsTransport.java:517)
at
org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:519)
at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:558)
... 18 more
Caused by: java.lang.NullPointerException
at
org.infinispan.cacheviews.CacheViewsManagerImpl.handleNewView(CacheViewsManagerImpl.java:549)
at
org.infinispan.cacheviews.CacheViewsManagerImpl.access$1200(CacheViewsManagerImpl.java:95)
at
org.infinispan.cacheviews.CacheViewsManagerImpl$ViewListener.handleViewChange(CacheViewsManagerImpl.java:845)
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:199)
... 25 more
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira