[
https://issues.jboss.org/browse/ISPN-3166?page=com.atlassian.jira.plugin....
]
Richard Achmatowicz commented on ISPN-3166:
-------------------------------------------
Example:
{noformat}
16:25:23,290 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-6)
JBAS010282: Stopped repl cache from web container
16:25:23,290 DEBUG [org.infinispan.xsite.BackupReceiverRepositoryImpl] (MSC service thread
1-6) Processing cache stop: EventImpl{type=CACHE_STOPPED, newMembers=null,
oldMembers=null, localAddress=null, viewId=0, subgroupsMerged=null, mergeView=false}.
Cache name: 'repl'
16:25:23,291 DEBUG [org.infinispan.xsite.BackupReceiverRepositoryImpl] (MSC service thread
1-6) Processing entry SiteCachePair{site='LON', cache='repl'}
16:25:23,291 WARN [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000004:
Failure during stop of service jboss.infinispan.web.repl: org.infinispan.CacheException:
Caught exception [java.lang.NullPointerException] while invoking method [public void
org.infinispan.xsite.BackupReceiverRepositoryImpl.cacheStopped(org.infinispan.notifications.cachemanagerlistener.event.CacheStoppedEvent)]
on listener instance: org.infinispan.xsite.BackupReceiverRepositoryImpl@12c1a513
at
org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation$1.run(AbstractListenerImpl.java:218)
at
org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:44)
at
org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation.invoke(AbstractListenerImpl.java:238)
at
org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifierImpl.notifyCacheStopped(CacheManagerNotifierImpl.java:135)
at org.infinispan.factories.ComponentRegistry.stop(ComponentRegistry.java:250)
at org.infinispan.CacheImpl.stop(CacheImpl.java:608)
at org.infinispan.CacheImpl.stop(CacheImpl.java:603)
at org.infinispan.AbstractDelegatingCache.stop(AbstractDelegatingCache.java:348)
at org.jboss.as.clustering.infinispan.subsystem.CacheService.stop(CacheService.java:96)
at org.jboss.as.clustering.msc.AsynchronousService.stop(AsynchronousService.java:114)
at
org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:2082)
[jboss-msc-1.1.2.Final.jar:1.1.2.Final]
at
org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:2043)
[jboss-msc-1.1.2.Final.jar:1.1.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_04]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_04]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]
Caused by: java.lang.NullPointerException
at
org.infinispan.xsite.BackupReceiverRepositoryImpl.cacheStopped(BackupReceiverRepositoryImpl.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_04]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_04]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_04]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_04]
at
org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation$1.run(AbstractListenerImpl.java:213)
... 14 more
16:25:23,296 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC
service thread 1-5) ISPN000080: Disconnecting and closing JGroups Channel
{noformat}
BackupReceiverRepositoryImpl generates NPE on cache shutdown
------------------------------------------------------------
Key: ISPN-3166
URL:
https://issues.jboss.org/browse/ISPN-3166
Project: Infinispan
Issue Type: Bug
Components: Cross-Site Replication
Affects Versions: 5.3.0.Beta2, 5.3.0.CR1
Reporter: Richard Achmatowicz
Assignee: Mircea Markus
In the method BackupReceiverRepositoryImpl.getBackupCachemanager(), when creating a
SiteCachePair for a cache with no explicitly configured backup, the localCacheName is not
being set. This results in an NPE when shutting down the cache.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira