Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4535

invalid filter in GUI gives large stack-trace in logfile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.31.2
    • 2.32.0
    • Web Console
    • None

    Description

      Using the message browser screen (artemisBrowseQueue) with a lot of messages.
      Tried to search a message by giving its message-id (just "2149244887") in the search-field.
      This resulted in no change in the gui, but a very large stack-trace in the logfile.

      I know the expression syntax is described in https://activemq.apache.org/components/artemis/documentation/latest/filter-expressions.html.
      It's just that this stack-trace is a bit much...

      The stack-trace and a few extra lines at the beginning for context:

      2023-12-14 20:24:42,956 ERROR [org.apache.activemq.artemis.core.server] AMQ224006: Invalid filter: 2149244887
      2023-12-14 20:24:42,957 ERROR [org.apache.activemq.artemis.core.server] AMQ224006: Invalid filter: 2149244887
      2023-12-14 20:24:42,957 WARN  [org.apache.activemq.artemis.core.management.impl.QueueControlImpl] AMQ229020: Invalid filter: 2149244887
      org.apache.activemq.artemis.api.core.ActiveMQInvalidFilterExpressionException: AMQ229020: Invalid filter: 2149244887
          at org.apache.activemq.artemis.core.filter.impl.FilterImpl.createFilter(FilterImpl.java:90) ~[artemis-server-2.31.2.jar:2.31.2]
          at org.apache.activemq.artemis.core.filter.impl.FilterImpl.createFilter(FilterImpl.java:72) ~[artemis-server-2.31.2.jar:2.31.2]
          at org.apache.activemq.artemis.core.management.impl.QueueControlImpl.browse(QueueControlImpl.java:1614) ~[artemis-server-2.31.2.jar:2.31.2]
          at jdk.internal.reflect.GeneratedMethodAccessor42.invoke(Unknown Source) ~[?:?]
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
          at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
          at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) ~[?:?]
          at jdk.internal.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) ~[?:?]
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
          at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
          at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:260) ~[?:?]
          at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) ~[?:?]
          at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) ~[?:?]
          at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) ~[?:?]
          at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) ~[?:?]
          at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) ~[?:?]
          at javax.management.StandardMBean.invoke(StandardMBean.java:405) ~[?:?]
          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809) ~[?:?]
          at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) ~[?:?]
          at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) ~[?:?]
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
          at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
          at org.apache.activemq.artemis.core.server.management.ArtemisMBeanServerBuilder$MBeanInvocationHandler.invoke(ArtemisMBeanServerBuilder.java:96) ~[artemis-server-2.31.2.jar:2.31.2]
          at com.sun.proxy.$Proxy31.invoke(Unknown Source) ~[?:?]
          at org.jolokia.handler.ExecHandler.doHandleRequest(ExecHandler.java:98) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.handler.ExecHandler.doHandleRequest(ExecHandler.java:40) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.handler.JsonRequestHandler.handleRequest(JsonRequestHandler.java:89) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.backend.MBeanServerExecutorLocal.handleRequest(MBeanServerExecutorLocal.java:109) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.backend.MBeanServerHandler.dispatchRequest(MBeanServerHandler.java:161) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.backend.LocalRequestDispatcher.dispatchRequest(LocalRequestDispatcher.java:99) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.backend.BackendManager.callRequestDispatcher(BackendManager.java:429) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.backend.BackendManager.handleRequest(BackendManager.java:158) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.http.HttpRequestHandler.executeRequest(HttpRequestHandler.java:197) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.http.HttpRequestHandler.handlePostRequest(HttpRequestHandler.java:137) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.http.AgentServlet$3.handleRequest(AgentServlet.java:493) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.http.AgentServlet.handleSecurely(AgentServlet.java:383) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.http.AgentServlet.handle(AgentServlet.java:354) ~[jolokia-core-1.7.2.jar:?]
          at org.jolokia.http.AgentServlet.doPost(AgentServlet.java:317) ~[jolokia-core-1.7.2.jar:?]
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:523) ~[jetty-servlet-api-4.0.6.jar:?]
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) ~[jetty-servlet-api-4.0.6.jar:?]
          at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1419) ~[jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764) ~[jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665) ~[jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.filters.FlightRecordingDownloadFacade.doFilter(FlightRecordingDownloadFacade.java:68) ~[hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) ~[jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) ~[jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.auth.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:63) ~[hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) ~[jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) ~[jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.auth.AuthenticationFilter.lambda$executeAs$1(AuthenticationFilter.java:105) ~[hawtio-system-2.17.6.jar:2.17.6]
          at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
          at javax.security.auth.Subject.doAs(Subject.java:423) [?:?]
          at io.hawt.web.auth.AuthenticationFilter.executeAs(AuthenticationFilter.java:104) [hawtio-system-2.17.6.jar:2.17.6]
          at io.hawt.web.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:72) [hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) [jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.filters.HttpHeaderFilter.doFilter(HttpHeaderFilter.java:46) [hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) [jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.filters.HttpHeaderFilter.doFilter(HttpHeaderFilter.java:46) [hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) [jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.filters.HttpHeaderFilter.doFilter(HttpHeaderFilter.java:46) [hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) [jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.filters.HttpHeaderFilter.doFilter(HttpHeaderFilter.java:46) [hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) [jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.filters.HttpHeaderFilter.doFilter(HttpHeaderFilter.java:46) [hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) [jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.filters.HttpHeaderFilter.doFilter(HttpHeaderFilter.java:46) [hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) [jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.filters.HttpHeaderFilter.doFilter(HttpHeaderFilter.java:46) [hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) [jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.filters.HttpHeaderFilter.doFilter(HttpHeaderFilter.java:46) [hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) [jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.filters.HttpHeaderFilter.doFilter(HttpHeaderFilter.java:46) [hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) [jetty-servlet-10.0.16.jar:10.0.16]
          at io.hawt.web.auth.SessionExpiryFilter.process(SessionExpiryFilter.java:166) [hawtio-system-2.17.6.jar:2.17.6]
          at io.hawt.web.auth.SessionExpiryFilter.doFilter(SessionExpiryFilter.java:60) [hawtio-system-2.17.6.jar:2.17.6]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.apache.activemq.artemis.component.JolokiaFilter.doFilter(JolokiaFilter.java:50) [artemis-web-2.31.2.jar:2.31.2]
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578) [jetty-security-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) [jetty-servlet-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:51) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.Server.handle(Server.java:563) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282) [jetty-server-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314) [jetty-io-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) [jetty-io-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) [jetty-io-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421) [jetty-util-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390) [jetty-util-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277) [jetty-util-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:199) [jetty-util-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411) [jetty-util-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969) [jetty-util-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194) [jetty-util-10.0.16.jar:10.0.16]
          at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149) [jetty-util-10.0.16.jar:10.0.16]
          at java.lang.Thread.run(Thread.java:829) [?:?]
      Caused by: org.apache.activemq.artemis.selector.filter.FilterException: 2149244887
          at org.apache.activemq.artemis.selector.impl.SelectorParser.parse(SelectorParser.java:76) ~[artemis-selector-2.31.2.jar:2.31.2]
          at org.apache.activemq.artemis.core.filter.impl.FilterImpl.createFilter(FilterImpl.java:86) ~[artemis-server-2.31.2.jar:2.31.2]
          ... 122 more
      Caused by: org.apache.activemq.artemis.selector.strict.ParseException: Expression will not result in a boolean value: 2149244887
          at org.apache.activemq.artemis.selector.strict.StrictParser.asBooleanExpression(StrictParser.java:39) ~[artemis-selector-2.31.2.jar:2.31.2]
          at org.apache.activemq.artemis.selector.strict.StrictParser.JmsSelector(StrictParser.java:49) ~[artemis-selector-2.31.2.jar:2.31.2]
          at org.apache.activemq.artemis.selector.impl.SelectorParser.parse(SelectorParser.java:72) ~[artemis-selector-2.31.2.jar:2.31.2]
          at org.apache.activemq.artemis.core.filter.impl.FilterImpl.createFilter(FilterImpl.java:86) ~[artemis-server-2.31.2.jar:2.31.2]
          ... 122 more
      

      Attachments

        Issue Links

          Activity

            People

              erwindon Erwin Dondorp
              erwindon Erwin Dondorp
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h