[jira] [Work logged] (AMQ-9481) Concurrent access error attempting to consume messages via REST API in 5.18.2 or higher
[ https://issues.apache.org/jira/browse/AMQ-9481?focusedWorklogId=915842=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-915842 ] ASF GitHub Bot logged work on AMQ-9481: --- Author: ASF GitHub Bot Created on: 22/Apr/24 15:01 Start Date: 22/Apr/24 15:01 Worklog Time Spent: 10m Work Description: cshannon merged PR #1206: URL: https://github.com/apache/activemq/pull/1206 Issue Time Tracking --- Worklog Id: (was: 915842) Time Spent: 20m (was: 10m) > Concurrent access error attempting to consume messages via REST API in 5.18.2 > or higher > --- > > Key: AMQ-9481 > URL: https://issues.apache.org/jira/browse/AMQ-9481 > Project: ActiveMQ Classic > Issue Type: Bug >Affects Versions: 5.18.2, 5.18.3, 5.18.4 >Reporter: Andrew Smith >Assignee: Christopher L. Shannon >Priority: Major > Fix For: 5.18.5, 6.1.3 > > Time Spent: 20m > Remaining Estimate: 0h > > I am attempting to download a file from a queue via PowerShell. This can be > done with the following 4 lines: > {code:java} > $user="admin" > $pass="admin" | ConvertTo-SecureString -AsPlainText -Force > $cred = New-Object Management.Automation.PSCredential($user,$pass) > $status = Invoke-WebRequest -Uri > "http://localhost:8161/api/message/TestQueue?type=queue=Importer; > -Credential $cred -ContentType "application/base64"{code} > When I do this using 5.18.1, it works and either downloads a file or times > out after a short period if there are no files on the queue. When I run the > same script against 5.18.2 or higher, I get the following error the first > time I try to download a file after starting the broker: > {noformat} > Invoke-WebRequest : HTTP ERROR 500 AsyncContext timeout > URI:/api/message/TestQueue > STATUS:500 > MESSAGE:AsyncContext timeout > SERVLET:MessageServlet > At line:1 char:11 > + $status = Invoke-WebRequest -Uri "http://localhost:8161/api/message/T ... > + ~~~ > + CategoryInfo : InvalidOperation: > (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc > eption > + FullyQualifiedErrorId : > WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand{noformat} > Then every time I try after that I get the following: > {noformat} > Invoke-WebRequest : HTTP ERROR 500 javax.servlet.ServletException: > javax.servlet.ServletException: > javax.servlet.ServletException: Concurrent access to consumer is not supported > URI:/api/message/TestQueue > STATUS:500 > MESSAGE:javax.servlet.ServletException: javax.servlet.ServletException: > javax.servlet.ServletException: Concurrent > access to consumer is not supported > SERVLET:MessageServlet > CAUSED BY:javax.servlet.ServletException: javax.servlet.ServletException: > javax.servlet.ServletException: Concurrent > access to consumer is not supported > CAUSED BY:javax.servlet.ServletException: javax.servlet.ServletException: > Concurrent access to consumer is not > supported > CAUSED BY:javax.servlet.ServletException: Concurrent access to consumer is > not supported > Caused by: > javax.servlet.ServletException: javax.servlet.ServletException: > javax.servlet.ServletException: Concurrent access to > consumer is not supported > at > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:162) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > at org.eclipse.jetty.server.Server.handle(Server.java:516) > at > org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) > at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) > at > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) > at > org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) > at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) > at > org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) > at > org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) >
[jira] [Work logged] (AMQ-9481) Concurrent access error attempting to consume messages via REST API in 5.18.2 or higher
[ https://issues.apache.org/jira/browse/AMQ-9481?focusedWorklogId=915708=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-915708 ] ASF GitHub Bot logged work on AMQ-9481: --- Author: ASF GitHub Bot Created on: 21/Apr/24 16:46 Start Date: 21/Apr/24 16:46 Worklog Time Spent: 10m Work Description: cshannon opened a new pull request, #1206: URL: https://github.com/apache/activemq/pull/1206 This fixes AsyncServletRequest to correctly call context.dispatch() when the async request times out so that the consumer can be re-used. Issue Time Tracking --- Worklog Id: (was: 915708) Remaining Estimate: 0h Time Spent: 10m > Concurrent access error attempting to consume messages via REST API in 5.18.2 > or higher > --- > > Key: AMQ-9481 > URL: https://issues.apache.org/jira/browse/AMQ-9481 > Project: ActiveMQ Classic > Issue Type: Bug >Affects Versions: 5.18.2, 5.18.3, 5.18.4 >Reporter: Andrew Smith >Assignee: Christopher L. Shannon >Priority: Major > Fix For: 5.18.5, 6.1.3 > > Time Spent: 10m > Remaining Estimate: 0h > > I am attempting to download a file from a queue via PowerShell. This can be > done with the following 4 lines: > {code:java} > $user="admin" > $pass="admin" | ConvertTo-SecureString -AsPlainText -Force > $cred = New-Object Management.Automation.PSCredential($user,$pass) > $status = Invoke-WebRequest -Uri > "http://localhost:8161/api/message/TestQueue?type=queue=Importer; > -Credential $cred -ContentType "application/base64"{code} > When I do this using 5.18.1, it works and either downloads a file or times > out after a short period if there are no files on the queue. When I run the > same script against 5.18.2 or higher, I get the following error the first > time I try to download a file after starting the broker: > {noformat} > Invoke-WebRequest : HTTP ERROR 500 AsyncContext timeout > URI:/api/message/TestQueue > STATUS:500 > MESSAGE:AsyncContext timeout > SERVLET:MessageServlet > At line:1 char:11 > + $status = Invoke-WebRequest -Uri "http://localhost:8161/api/message/T ... > + ~~~ > + CategoryInfo : InvalidOperation: > (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc > eption > + FullyQualifiedErrorId : > WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand{noformat} > Then every time I try after that I get the following: > {noformat} > Invoke-WebRequest : HTTP ERROR 500 javax.servlet.ServletException: > javax.servlet.ServletException: > javax.servlet.ServletException: Concurrent access to consumer is not supported > URI:/api/message/TestQueue > STATUS:500 > MESSAGE:javax.servlet.ServletException: javax.servlet.ServletException: > javax.servlet.ServletException: Concurrent > access to consumer is not supported > SERVLET:MessageServlet > CAUSED BY:javax.servlet.ServletException: javax.servlet.ServletException: > javax.servlet.ServletException: Concurrent > access to consumer is not supported > CAUSED BY:javax.servlet.ServletException: javax.servlet.ServletException: > Concurrent access to consumer is not > supported > CAUSED BY:javax.servlet.ServletException: Concurrent access to consumer is > not supported > Caused by: > javax.servlet.ServletException: javax.servlet.ServletException: > javax.servlet.ServletException: Concurrent access to > consumer is not supported > at > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:162) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > at org.eclipse.jetty.server.Server.handle(Server.java:516) > at > org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) > at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) > at > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) > at > org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) > at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) > at > org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) > at >