0

我想从记录中排除以下错误。我必须在我的 Config.groovy 上设置什么?

2013-08-28 15:10:13,501 [http-nio-8080-exec-85] ERROR websocket.DefaultWebSocketProcessor  - 
java.lang.IllegalStateException: Request object no longer valid. This object has been cancelled
    at org.atmosphere.cpr.AtmosphereResourceImpl.getRequest(AtmosphereResourceImpl.java:447)
    at org.atmosphere.cpr.AtmosphereResourceImpl.getRequest(AtmosphereResourceImpl.java:467)
    at org.atmosphere.websocket.protocol.SimpleHttpProtocol.onMessage(SimpleHttpProtocol.java:95)
    at org.atmosphere.websocket.DefaultWebSocketProcessor.invokeWebSocketProtocol(DefaultWebSocketProcessor.java:293)
    at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatchReader(DefaultWebSocketProcessor.java:627)
    at org.atmosphere.websocket.DefaultWebSocketProcessor.invokeWebSocketProtocol(DefaultWebSocketProcessor.java:402)
    at org.atmosphere.container.TomcatWebSocketHandler.onTextData(TomcatWebSocketHandler.java:100)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)
4

1 回答 1

1

我不认为你可以轻易地抑制一个特定的错误,但你可以通过放置来抑制该特定类的所有错误级别日志消息

fatal 'org.atmosphere.websocket.DefaultWebSocketProcessor'

在您的 log4j 闭包内。

于 2013-08-28T22:39:24.210 回答