Martin Gencur created ISPN-3754:
-----------------------------------
Summary: Tests for REST security must use cache-container with caches
defined
Key: ISPN-3754
URL:
https://issues.jboss.org/browse/ISPN-3754
Project: Infinispan
Issue Type: Bug
Affects Versions: 6.0.0.Final
Reporter: Martin Gencur
Assignee: Vitalii Chepeliuk
Currently, the tests fail with this exception:
{code}
10:47:01,208 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed
to start service jboss.endpoint.websocket.websocket-connector:
org.jboss.msc.service.StartException in service
jboss.endpoint.websocket.websocket-connector: JDGS010004: Failed to start WebSocketServer
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.start(ProtocolServerService.java:113)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_17]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: java.lang.NullPointerException
at org.infinispan.commons.equivalence.AnyEquivalence.hashCode(AnyEquivalence.java:35)
at
org.infinispan.commons.util.concurrent.jdk8backported.EquivalentConcurrentHashMapV8.get(EquivalentConcurrentHashMapV8.java:954)
at
org.infinispan.commons.util.concurrent.jdk8backported.EquivalentConcurrentHashMapV8.containsKey(EquivalentConcurrentHashMapV8.java:982)
at org.infinispan.manager.DefaultCacheManager.cacheExists(DefaultCacheManager.java:401)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:406)
at
org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:89)
at
org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:80)
at
org.infinispan.server.core.AbstractProtocolServer.startDefaultCache(AbstractProtocolServer.scala:120)
at
org.infinispan.server.core.AbstractProtocolServer.startInternal(AbstractProtocolServer.scala:37)
at
org.infinispan.server.websocket.WebSocketServer.startInternal(WebSocketServer.java:57)
at
org.infinispan.server.core.AbstractProtocolServer.start(AbstractProtocolServer.scala:44)
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.startProtocolServer(ProtocolServerService.java:130)
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.start(ProtocolServerService.java:107)
... 5 more
{code}
This is caused by the fact that REST security tests define endpoints which use
"security" container. However, this container does not have any caches defined.
--
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