[
https://issues.apache.org/jira/browse/AMQ-9330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17834303#comment-17834303
]
Jean-Baptiste Onofré commented on AMQ-9330:
-------------------------------------------
Using {{curl}} to consume from an empty queue (on 5.18.4-SNAPSHOT), I got:
{code:java}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 AsyncContext timeout</title>
</head>
<body><h2>HTTP ERROR 500 AsyncContext timeout</h2>
<table>
<tr><th>URI:</th><td>/api/message/TEST</td></tr>
<tr><th>STATUS:</th><td>500</td></tr>
<tr><th>MESSAGE:</th><td>AsyncContext timeout</td></tr>
<tr><th>SERVLET:</th><td>MessageServlet</td></tr>
</table>
</body>
</html> {code}
I tried with 5.18.1 (same {{curl}} command), I got nothing display (e.g. 204).
I checked and it seems the problem has been introduced by this commit
[add6356261d7b3fdc743293a9581a0b2f0c6b8a6] AMQ-9243 - Remove deprecated
jetty-continuation dependency (#998)
The fix should probably be on the {{{}AsyncServletRequest{}}}. I'm checking.
> Polling empty queue via REST returns 500 Server Error
> -----------------------------------------------------
>
> Key: AMQ-9330
> URL: https://issues.apache.org/jira/browse/AMQ-9330
> Project: ActiveMQ Classic
> Issue Type: Bug
> Affects Versions: 5.18.2
> Reporter: Michael Hoyt
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: 5.18.4
>
>
> In AMQ 5.18.1 Polling an empty queue via the REST api returned a 204 No
> Content response. In 5.18.2 that same method now returns a 500 Server Error
> response.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)