[jboss-jira] [JBoss JIRA] (WFLY-5612) UnsupportedOperationException on SingletonService.getValue()

Paul Ferraro (JIRA) issues at jboss.org
Fri Oct 30 14:28:00 EDT 2015


    [ https://issues.jboss.org/browse/WFLY-5612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123954#comment-13123954 ] 

Paul Ferraro commented on WFLY-5612:
------------------------------------

Couple things:
# Under which server profile does this test run?
# org.wildfly.clustering.server is a private module.  Singleton services should be created using the public module.  e.g. https://github.com/wildfly/wildfly/blob/9.x/testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/cluster/singleton/service/MyServiceActivator.java

> UnsupportedOperationException on SingletonService.getValue()
> ------------------------------------------------------------
>
>                 Key: WFLY-5612
>                 URL: https://issues.jboss.org/browse/WFLY-5612
>             Project: WildFly
>          Issue Type: Bug
>          Components: Clustering
>    Affects Versions: 9.0.2.Final
>            Reporter: Thomas Diesler
>            Assignee: Paul Ferraro
>
> {code}
> java.lang.IllegalStateException: java.lang.UnsupportedOperationException
> 	at java.util.Collections$1.remove(Collections.java:4684)
> 	at org.wildfly.clustering.server.singleton.SingletonService$SingletonDispatcher.getValueRef(SingletonService.java:266)
> 	at org.wildfly.clustering.server.singleton.SingletonService.getValue(SingletonService.java:225)
> 	at org.wildfly.clustering.server.singleton.SingletonService.getValue(SingletonService.java:69)
> 	at org.wildfly.clustering.service.AsynchronousServiceBuilder.getValue(AsynchronousServiceBuilder.java:92)
> 	at org.jboss.msc.service.ServiceControllerImpl.awaitValue(ServiceControllerImpl.java:1166)
> 	at org.wildfly.camel.test.singleton.SingletonRouteTest.testSingletonService(SingletonRouteTest.java:138)
> {code}
> This is happening when I try to provide a code example for a singleton service like [this|https://github.com/wildfly-extras/wildfly-camel/blob/master/itests/standalone/extra/src/main/java/org/wildfly/camel/test/singleton/SingletonRouteTest.java#L128]
> CrossRef: https://github.com/wildfly-extras/wildfly-camel/issues/77



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list