<div dir="ltr"><div><div><div><div>This is more of wildfly-dev mailing list question.<br><br></div>but in short, yes what you describe is possible.<br></div>And should be fixed or at least better handled in WildFly 9+ that has graceful shutdown in place.<br></div>As long as you use new version of :shutdown operation that uses timeout.<br><br>--<br></div>tomaz<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 10, 2015 at 12:54 PM, Kákonyi István <span dir="ltr">&lt;<a href="mailto:kakonyi.istvan@alerant.hu" target="_blank">kakonyi.istvan@alerant.hu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="HU">
<div>
<p class="MsoNormal">Hi Team!<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I would like to ask your help about a strange behaviour/issue which occurs when stopping a wildfly 8.2.0 server instance:<u></u><u></u></p>
<p style="margin-bottom:12.0pt;line-height:11.2pt;background:white"><span style="font-size:10.5pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#333333">When stopping a Wildfly 8.2.0 server instance, the following line appeared in the log:<u></u><u></u></span></p>
<p style="margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:11.2pt;background:white;text-align:start;word-spacing:0px">
<span style="font-size:10.5pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#333333">2015-09-04 11:07:39,810 ERROR [org.jboss.remotingjmx.protocol.v2.ServerCommon] org.jboss.remoting3.NotOpenException: Writes closed<u></u><u></u></span></p>
<p style="margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:11.2pt;background:white;text-align:start;word-spacing:0px">
<span style="font-size:10.5pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#333333">Also there is an IllegalStateException right before that ERROR line:<u></u><u></u></span></p>
<p style="margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:11.2pt;background:white;text-align:start;word-spacing:0px">
<span style="font-size:10.5pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#333333">2015-09-04 11:07:39,806 WARN [org.jboss.remotingjmx.protocol.v2.ServerCommon] Unexpected internal error: java.lang.IllegalStateException<br>
at org.jboss.as.patching.installation.InstallationManagerService.getValue(InstallationManagerService.java:87) [wildfly-patching-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.patching.installation.InstallationManagerService.getValue(InstallationManagerService.java:28) [wildfly-patching-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.msc.service.ServiceControllerImpl.getValue(ServiceControllerImpl.java:1158) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
at org.jboss.as.patching.management.PatchResource$ElementProviderResourceProvider.children(PatchResource.java:139) [wildfly-patching-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.patching.management.PatchResource$ElementProviderResourceProvider.hasChildren(PatchResource.java:134) [wildfly-patching-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.controller.registry.AbstractModelResource.hasChildren(AbstractModelResource.java:81) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.controller.registry.AbstractModelResource$DelegateResource.hasChildren(AbstractModelResource.java:279) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:57) [wildfly-jmx-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:61) [wildfly-jmx-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.jmx.model.RootResourceIterator.iterate(RootResourceIterator.java:43) [wildfly-jmx-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.jmx.model.ModelControllerMBeanHelper.getMBeanCount(ModelControllerMBeanHelper.java:105) [wildfly-jmx-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.jmx.model.ModelControllerMBeanServerPlugin.getMBeanCount(ModelControllerMBeanServerPlugin.java:157) [wildfly-jmx-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.jmx.PluggableMBeanServerImpl.getMBeanCount(PluggableMBeanServerImpl.java:554) [wildfly-jmx-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.jmx.BlockingNotificationMBeanServer.getMBeanCount(BlockingNotificationMBeanServer.java:143) [wildfly-jmx-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.remotingjmx.protocol.v2.ServerProxy$GetMBeanCountHandler.handle(ServerProxy.java:655)<br>
at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:153)<br>
at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:75) [wildfly-jmx-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:70) [wildfly-jmx-8.2.0.Final.jar:8.2.0.Final]<br>
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_60]<br>
at javax.security.auth.Subject.doAs(Subject.java:422) [rt.jar:1.8.0_60]<br>
at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:94) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:70) [wildfly-jmx-8.2.0.Final.jar:8.2.0.Final]<br>
at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:149)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]<br>
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]<u></u><u></u></span></p>
<p style="margin-top:0cm;line-height:11.2pt;background:white;text-align:start;word-spacing:0px">
<span style="font-size:10.5pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#333333">It seems as if the server was in the process of shutting down its services when a JMX connection was requested. We were able to confirm this by initiating a JMX connection, then
 almost at the same time we initiated a graceful stop on the server as well, and the aforementioned ERROR appeared in the log.<u></u><u></u></span></p>
<p style="margin-top:0cm;line-height:11.2pt;background:white"><span style="font-size:10.5pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#333333">Is it possible that during the shutdown phase jmx connections are still allowed by the server which finally causes
 IllegalStateException?<u></u><u></u></span></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">Istvan<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>_______________________________________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div>