Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8318

NullPointerException in PrettyLoggingFilter

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      We get a NullPointerException in the PrettyLoggingFilter.

      It's seems in the PrettyLoggingFilter#shouldPrettyPrint(LogEvent) function the "event.getPayload()" is null.

      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)
      

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            zsoltii Zsolt Fatér
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: