]
Sebastian Łaskawiec closed ISPN-6356.
-------------------------------------
SecurityException during HotRod server stop
-------------------------------------------
Key: ISPN-6356
URL:
https://issues.jboss.org/browse/ISPN-6356
Project: Infinispan
Issue Type: Bug
Components: Server
Affects Versions: 8.2.0.Final
Reporter: Dan Berindei
Assignee: Vojtech Juranek
Fix For: 8.2.1.Final, 9.0.0.Alpha1, 9.0.0.Final
The HotRod server should use a SecurityAction to remove the
`CrashedMemberDetectorListener` listener (and probably to remove the
`ReAddMyAddressListener` listener as well).
{noformat}
20:41:29,066 WARN [org.infinispan.server.endpoint] (MSC service thread 1-7)
DGENDPT10010: Failed to stop connector HotRodServer: java.lang.SecurityException:
ISPN000287: Unauthorized access: subject 'null' lacks 'LISTEN' permission
at
org.infinispan.security.impl.AuthorizationHelper.checkPermission(AuthorizationHelper.java:86)
at
org.infinispan.security.impl.AuthorizationHelper.checkPermission(AuthorizationHelper.java:56)
at
org.infinispan.manager.DefaultCacheManager.removeListener(DefaultCacheManager.java:727)
at
org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.removeListener(AbstractDelegatingEmbeddedCacheManager.java:193)
at org.infinispan.server.hotrod.HotRodServer.stop(HotRodServer.scala:310)
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.doStop(ProtocolServerService.java:199)
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.stop(ProtocolServerService.java:189)
at
org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:2056)
at
org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:2017)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
{noformat}