java.lang.NullPointerException org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter)

时间:2016-05-16 12:41:04

标签: red5 red5pro

当我使用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)**

1 个答案:

答案 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>

我认为你只是错过了听众。