当我使用LoggerContextFilter
时,我在RED5中收到以下错误使用RED5 1.0.7版本
知道我可能做错了什么过滤器:
<filter>
<filter-name>LoggerContextFilter</filter-name>
<filter-class>org.red5.logging.LoggerContextFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>LoggerContextFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
错误:
**java.lang.NullPointerException
org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:63)**
答案 0 :(得分:0)
我的所有webapp都在web.xml中有这个
<listener>
<listener-class>org.red5.logging.ContextLoggingListener</listener-class>
</listener>
<filter>
<filter-name>LoggerContextFilter</filter-name>
<filter-class>org.red5.logging.LoggerContextFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>LoggerContextFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
我认为你只是错过了听众。