Mule 如何忽略 GRIZZLY0013: FilterChain 执行期间异常

Mule how to ignore GRIZZLY0013: Exception during FilterChain execution

在 CloudHub 中不断收到如下警告。 CloudHub 日志限制为 30 天和 100mb。这是一个问题,因为它会使日志混乱并且重要的日志丢失。我知道有一种方法可以在 LOG4J2 配置中 restrict/suppress 此 GRIZZLY0013 警告,但我忘记了它并且无法在任何地方找到它。有没有办法禁用它?

Mule 版本 - 3.9.2

Worker-0     [app-name].HTTP_Default_Listener_Configuration.worker.01     WARN
GRIZZLY0013: Exception during FilterChain execution
java.lang.IllegalArgumentException: path parameter must start with /
    at org.mule.util.Preconditions.checkArgument(Preconditions.java:26)
    at org.mule.module.http.internal.listener.HttpListenerRegistry$ServerAddressRequestHandlerRegistry.findRequestHandler(HttpListenerRegistry.java:222)
    at org.mule.module.http.internal.listener.HttpListenerRegistry.getRequestHandler(HttpListenerRegistry.java:83)
    at org.mule.module.http.internal.listener.grizzly.GrizzlyRequestDispatcherFilter.handleRead(GrizzlyRequestDispatcherFilter.java:109)
    at org.glassfish.grizzly.filterchain.ExecutorResolver.execute(ExecutorResolver.java:119)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
    at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
    at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:540)
    at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
    at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.run0(ExecutorPerServerAddressIOStrategy.java:126)
    at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.access0(ExecutorPerServerAddressIOStrategy.java:32)
    at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy$WorkerThreadRunnable.run(ExecutorPerServerAddressIOStrategy.java:149)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

您可以将包 org.glassfish.grizzly.filterchain 设置为 ERROR 级别以便忽略警告。但是首先你应该检查 HTTP 侦听器配置是否真的不是以路径开头并修复它。