AMQ restart via JBoss ON fails sometimes due to unsuccessful shutdown
Issue
- AMQ restart operation sometimes fails with error messages:
java.lang.Exception: Restart failed while attempting to shut down: Was not able to stop the server at
org.rhq.core.pc.operation.OperationInvocation.run(OperationInvocation.java:278)
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)
or
java.lang.Exception: Was not able to start the server
at org.rhq.core.pc.operation.OperationInvocation.run(OperationInvocation.java:278)
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)
- I'm having varied results using the restart operation from within JON.
- Sometimes restart of AMQ using JBoss ON works correctly and yet at other times it fails with the following:
java.lang.Exception: Restart failed while attempting to shut down: Was not able to stop the server
at org.rhq.core.pc.operation.OperationInvocation.run(OperationInvocation.java:278)
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)
- AMQ restart via JBoss ON fails sometimes due to unsuccessful shutdown
Environment
- Red Hat JBoss Operations Network (ON) 3.3.5
- Red Hat JBoss A-MQ (AMQ) 6.2.0
- Red Hat JBoss Fuse/A-MQ 6.2.0 Patch 1
-
Red Hat JBoss ON 3.3 Management Plug-in Pack Update-04 for Red Hat JBoss A-MQ 6
-
Windows OS
-
AMQ started and run as a Windows service;
-
Connection Settings for AMQ resource in JBoss ON UI are:
- Start Script Path:
- C:\windows\system32\net.exe
- Start Script Prefix:
- Start Script Arguments:
- start
<name of the amq service>
- Start Script Path:
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.