[ https://issues.apache.org/jira/browse/AMQ-8554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17517853#comment-17517853 ]
ASF subversion and git services commented on AMQ-8554: ------------------------------------------------------ Commit 4eb9c33492840410b60cbc4a100a9491a95a39b4 in activemq's branch refs/heads/activemq-5.17.x from Christopher L. Shannon (cshannon) [ https://gitbox.apache.org/repos/asf?p=activemq.git;h=4eb9c3349 ] AMQ-8554 - Add missing jetty-continuation jar to assembly (cherry picked from commit 291f925601312c62b568876d25992d65d1ce69e6) > RESTful API: NoClassDefFoundError->ContinuationSupport > ------------------------------------------------------ > > Key: AMQ-8554 > URL: https://issues.apache.org/jira/browse/AMQ-8554 > Project: ActiveMQ > Issue Type: Bug > Components: Broker, Connector > Affects Versions: 5.17.0 > Environment: Ubuntu 20.04.4 LTS > java --version: > openjdk 11.0.14 2022-01-18 > OpenJDK Runtime Environment (build 11.0.14+9-Ubuntu-0ubuntu2.20.04) > OpenJDK 64-Bit Server VM (build 11.0.14+9-Ubuntu-0ubuntu2.20.04, mixed mode, > sharing) > ActiveMQ-Version: 5.17.0 (clean installation) > Reporter: Marc Giavarra > Assignee: Christopher L. Shannon > Priority: Critical > Labels: JAR-files, Jetty, REST, RESTful > Fix For: 5.17.1 > > Attachments: image-2022-03-30-10-58-20-270.png > > Time Spent: 0.5h > Remaining Estimate: 0h > > The RESTful API does not work since version 5.17.0. If you send a GET-Request > like > {noformat} > http://BROKER-IP:8161/api/message/abc?type=queue&oneShot=true{noformat} > {color:#212121}{color:#212121}{color}You get an error: > {color} > {code:java} > 2022-03-29 19:00:14,445 | INFO | ActiveMQ Jolokia REST API available at > http://0.0.0.0:8161/api/jolokia/ | org.apache.activemq.web.WebConsoleStarter > | main > 2022-03-29 19:01:06,597 | INFO | Connector vm://localhost started | > org.apache.activemq.broker.TransportConnector | qtp1845760645-40 > 2022-03-29 19:01:06,703 | WARN | /api/message/abc | > org.eclipse.jetty.server.HttpChannel | qtp1845760645-40 > java.lang.NoClassDefFoundError: > org/eclipse/jetty/continuation/ContinuationSupport > at > org.apache.activemq.web.MessageServlet.doMessages(MessageServlet.java:188) > at > org.apache.activemq.web.MessageServlet.doGet(MessageServlet.java:167) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:655) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) > at > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) > at > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560) > at > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146) > 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.QueuedThreadPool.runJob(QueuedThreadPool.java:883) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) > at java.base/java.lang.Thread.run(Thread.java:829) > Caused by: java.lang.ClassNotFoundException: > org.eclipse.jetty.continuation.ContinuationSupport > at > java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) > ... 34 more > {code} > -- This message was sent by Atlassian Jira (v8.20.1#820001)