[jira] [Resolved] (CXF-8318) NullPointerException in PrettyLoggingFilter

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (CXF-8318) NullPointerException in PrettyLoggingFilter

Andrei Shakirin (Jira)

     [ https://issues.apache.org/jira/browse/CXF-8318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Yue Fang resolved CXF-8318.
-----------------------------------
    Fix Version/s: 3.3.8
                   3.4.0
       Resolution: Fixed

> NullPointerException in PrettyLoggingFilter
> -------------------------------------------
>
>                 Key: CXF-8318
>                 URL: https://issues.apache.org/jira/browse/CXF-8318
>             Project: CXF
>          Issue Type: Bug
>          Components: logging
>    Affects Versions: 3.3.6, 3.3.7
>            Reporter: Zsolt Fatér
>            Assignee: Freeman Yue Fang
>            Priority: Major
>              Labels: logging, prettyprint
>             Fix For: 3.4.0, 3.3.8
>
>
> We get a NullPointerException in the PrettyLoggingFilter.
> It's seems in the PrettyLoggingFilter#shouldPrettyPrint(LogEvent) function the "event.getPayload()" is null.
> {code:java}
> java.lang.NullPointerException: null
> at org.apache.cxf.ext.logging.event.PrettyLoggingFilter.shouldPrettyPrint(PrettyLoggingFilter.java:61)
> at org.apache.cxf.ext.logging.event.PrettyLoggingFilter.send(PrettyLoggingFilter.java:49)
> at org.apache.cxf.ext.logging.LoggingOutInterceptor$LoggingCallback.onClose(LoggingOutInterceptor.java:199)
> at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:219)
> at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
> at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:671)
> at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
> at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:441)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:356)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314)
> at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
> at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:140)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)