Roman Nevezhyn created AMQ-8104:
-----------------------------------
Summary: Pausing queue doesn't work if audit log is turned on
Key: AMQ-8104
URL: https://issues.apache.org/jira/browse/AMQ-8104
Project: ActiveMQ
Issue Type: Bug
Components: JMX, Web Console
Affects Versions: 5.15.14, 5.16.0
Reporter: Roman Nevezhyn
If audit log is turned on then Pause Queue doesn't work and causes
java.lang.NullPointerException.
*Steps to reproduce:*
1. Start ActiveMQ normally with audit log turned on: ./activemq start
-Dorg.apache.activemq.audit=true
2. Create a Queue normarlly: http://127.0.0.1:8161/admin/ > Queues > Enter
Queue Name > Create
3. Pause newly created queue: Click on `Pause`.
*Expected result:*
- Queue is paused normally.
*Achieved result:*
- Error in web console: Error! Exception occurred while processing this
request, check the log for more information!
- Error in the `activemq.log`:
{code:java}
2020-12-16 09:50:41,877 | INFO | Starting Jetty server |
org.apache.activemq.transport.WebTransportServerSupport | main2020-12-16
09:50:41,992 | INFO | Creating Jetty connector |
org.apache.activemq.transport.WebTransportServerSupport | main2020-12-16
09:50:42,124 | WARN |
[email protected]@5e4bd84a{/,null,STARTING} has
uncovered http methods for path: / | org.eclipse.jetty.security.SecurityHandler
| main2020-12-16 09:50:42,199 | INFO | Listening for connections at
ws://3c22fb843faa.ant.amazon.com:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
| org.apache.activemq.transport.ws.WSTransportServer | main2020-12-16
09:50:42,201 | INFO | Connector ws started |
org.apache.activemq.broker.TransportConnector | main2020-12-16 09:50:42,203 |
INFO | Apache ActiveMQ 5.15.14 (localhost,
ID:3c22fb843faa.ant.amazon.com-55549-1608141041704-0:1) started |
org.apache.activemq.broker.BrokerService | main2020-12-16 09:50:42,204 | INFO
| For help or more information please see: http://activemq.apache.org |
org.apache.activemq.broker.BrokerService | main2020-12-16 09:50:42,937 | INFO
| ActiveMQ WebConsole available at http://0.0.0.0:8161/ |
org.apache.activemq.web.WebConsoleStarter | main2020-12-16 09:50:42,938 | INFO
| ActiveMQ Jolokia REST API available at http://0.0.0.0:8161/api/jolokia/ |
org.apache.activemq.web.WebConsoleStarter | main2020-12-16 09:51:04,036 | WARN
| /admin/pauseDestination.action | org.eclipse.jetty.server.HttpChannel |
qtp1803093683-37javax.servlet.ServletException: javax.servlet.ServletException:
org.springframework.web.util.NestedServletException: Request processing failed;
nested exception is java.lang.NullPointerException at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:162)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.server.Server.handle(Server.java:516)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)[jetty-all-9.4.35.v20201120-uber.jar:9.4.35.v20201120]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_272]{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)