[
https://issues.jboss.org/browse/AS7-4751?page=com.atlassian.jira.plugin.s...
]
Paul Ferraro commented on AS7-4751:
-----------------------------------
Actually, SingletonService.RpcHandler.getValueRef() should be a little more resilient. To
retrieve the value of the singleton service, and RPC is sent to all nodes. The
getValueRef() expects an affirmative result from only the master node. In the event of a
view change, there will be a brief period between the stopping of the old master node and
the starting of the new one. getValueRef() should retry if no results were returned (i.e.
the new master was not yet notified) - which should make the Thread.sleep() in the
proposed fix unnecessary.
Singleton Service fails on Windows with "IllegalStateException:
JBAS010350: Expected result from singleton provider only, but instead received 0
results"
---------------------------------------------------------------------------------------------------------------------------------------------------------
Key: AS7-4751
URL:
https://issues.jboss.org/browse/AS7-4751
Project: Application Server 7
Issue Type: Bug
Components: Clustering
Affects Versions: 7.1.1.Final
Environment: Windows -- any
Reporter: Radoslav Husar
Assignee: Paul Ferraro
Fix For: 7.1.3.Final (EAP)
As seen on hudson runs and observed by Tom C. (thanks Tom) :
http://hudson.qa.jboss.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/ea...
{noformat}
07:34:17,664 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/singleton].[org.jboss.as.test.clustering.cluster.singleton.service.MyServiceServlet]]
(http--10.16.92.4-8080-1) Servlet.service() for servlet
org.jboss.as.test.clustering.cluster.singleton.service.MyServiceServlet threw exception:
java.lang.IllegalStateException: java.lang.IllegalStateException: JBAS010350: Expected
result from singleton provider only, but instead received 0 results.
at
org.jboss.as.clustering.singleton.SingletonService$RpcHandler.getValueRef(SingletonService.java:225)
[jboss-as-clustering-singleton-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
at
org.jboss.as.clustering.singleton.SingletonService.getValue(SingletonService.java:176)
[jboss-as-clustering-singleton-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
at org.jboss.as.clustering.singleton.SingletonService.getValue(SingletonService.java:53)
[jboss-as-clustering-singleton-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl.getValue(ServiceControllerImpl.java:1203)
[jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at
org.jboss.as.test.clustering.cluster.singleton.service.MyServiceServlet.doGet(MyServiceServlet.java:40)
[classes:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
[jboss-servlet-api_3.0_spec-1.0.1.Final-redhat-1.jar:1.0.1.Final-redhat-1]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.1.Final-redhat-1.jar:1.0.1.Final-redhat-1]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.15.Final-redhat-1.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.15.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[jbossweb-7.0.15.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
[jbossweb-7.0.15.Final-redhat-1.jar:]
at
org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:67)
at
org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:48)
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
[jboss-as-web-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
[jbossweb-7.0.15.Final-redhat-1.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[jbossweb-7.0.15.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[jbossweb-7.0.15.Final-redhat-1.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
[jbossweb-7.0.15.Final-redhat-1.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[jbossweb-7.0.15.Final-redhat-1.jar:]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
[jbossweb-7.0.15.Final-redhat-1.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931)
[jbossweb-7.0.15.Final-redhat-1.jar:]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_02]
Caused by: java.lang.IllegalStateException: JBAS010350: Expected result from singleton
provider only, but instead received 0 results.
at
org.jboss.as.clustering.singleton.SingletonService$RpcHandler.getValueRef(SingletonService.java:221)
[jboss-as-clustering-singleton-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
... 21 more
{noformat}
Test itself then fails with
{noformat}
Error Message
Deployment with name deployment-1 could not be undeployed. Container container-1 must be
still running.
{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