cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aji John" <aji.j...@gmail.com>
Subject Re: Removing the logging for outbound messages and could not serialize exception
Date Fri, 21 Nov 2008 18:59:49 GMT
I'm using 2.1,would I see it on svn ?

On Thu, Nov 20, 2008 at 3:29 PM, Benson Margulies <bimargulies@gmail.com>wrote:

> THe trunk has an improvement to the patch that might let you do this
> with a subclass depending on your needs.
>
> On Thu, Nov 20, 2008 at 3:44 PM, Daniel Kulp <dkulp@apache.org> wrote:
> > On Wednesday 19 November 2008 10:31:08 pm Aji John wrote:
> >>  Hello ,
> >>
> >> I get the below messages when streaming PDF files, I want to remove the
> >> logging, please suggest.
> >
> > As Benson suggested, I would suggest grabbing a copy of the code for the
> > LogginOutInterceptor and making modifications to it to detect when not to
> > log.   One suggestion would be to update your service to provide a return
> > mime type (application/pdf or something) and check that in your logger
> and
> > not log those.
> >
> > Dan
> >
> >
> >
> >>
> >>
> >>
> >> Nov 19, 2008 7:21:06 PM
> >> org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
> >>
> >> INFO: Outbound Message
> >>
> >> ---------------------------
> >>
> >> Encoding:
> >>
> >> Headers: {}
> >>
> >> Messages:
> >> Payload: %PDF-1.4
> >>
> >> ...pdf junk characters.
> >>
> >>
> >>
> >>
> >>
> >> Also, I wrote a provider(attached) for pdf's where it gets the String as
> a
> >> path, and dumps the contents of the pdf at the path,see below the code,
> do
> >> you see any problem with this provider as
> >> I get below exception
> >>
> >> Error serializing the response, please check the server logs, response
> >> class
> >>
> >> : String.
> >>
> >> --------------------------------------
> >>
> >> Nov 19, 2008 7:28:14 PM org.apache.cxf.phase.PhaseInterceptorChain
> >> doIntercept
> >>
> >> INFO: Interceptor has thrown exception, unwinding now
> >>
> >> org.apache.cxf.interceptor.Fault: Could not send Message.
> >>
> >> at
> >>
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInte
> >>rceptor.handleMessage( *MessageSenderInterceptor.java:64*)
> >>
> >> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(*
> >> PhaseInterceptorChain.java:221*)
> >>
> >> at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(*
> >> OutgoingChainInterceptor.java:74*)
> >>
> >> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(*
> >> PhaseInterceptorChain.java:221*)
> >>
> >> at org.apache.cxf.transport.ChainInitiationObserver.onMessage(*
> >> ChainInitiationObserver.java:78*)
> >>
> >> at org.apache.cxf.transport.servlet.ServletDestination.invoke(*
> >> ServletDestination.java:92*)
> >>
> >> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(*
> >> ServletController.java:279*)
> >>
> >> at org.apache.cxf.transport.servlet.ServletController.invoke(*
> >> ServletController.java:123*)
> >>
> >> at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(*
> >> AbstractCXFServlet.java:174*)
> >>
> >> at org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(*
> >> AbstractCXFServlet.java:156*)
> >>
> >> at javax.servlet.http.HttpServlet.service(*HttpServlet.java:617*)
> >>
> >> at javax.servlet.http.HttpServlet.service(*HttpServlet.java:717*)
> >>
> >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(*
> >> ApplicationFilterChain.java:290*)
> >>
> >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
> >> ApplicationFilterChain.java:206*)
> >>
> >> at org.apache.catalina.core.StandardWrapperValve.invoke(*
> >> StandardWrapperValve.java:233*)
> >>
> >> at org.apache.catalina.core.StandardContextValve.invoke(*
> >> StandardContextValve.java:191*)
> >>
> >> at org.apache.catalina.core.StandardHostValve.invoke(*
> >> StandardHostValve.java:128*)
> >>
> >> at org.apache.catalina.valves.ErrorReportValve.invoke(*
> >> ErrorReportValve.java:102*)
> >>
> >> at org.apache.catalina.core.StandardEngineValve.invoke(*
> >> StandardEngineValve.java:109*)
> >>
> >> at org.apache.catalina.connector.CoyoteAdapter.service(*
> >> CoyoteAdapter.java:286*)
> >>
> >> at org.apache.coyote.http11.Http11Processor.process(*
> >> Http11Processor.java:845*)
> >>
> >> at
> >>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(*
> >> Http11Protocol.java:583*)
> >>
> >> at
> >>
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(*JIoEndpoint.java:447*)
> >>
> >> at java.lang.Thread.run(Unknown Source)
> >>
> >> Caused by: *ClientAbortException*: *java.net.SocketException*:
> Connection
> >> reset by peer: socket write error
> >>
> >> at org.apache.catalina.connector.OutputBuffer.realWriteBytes(*
> >> OutputBuffer.java:358*)
> >>
> >> at
> org.apache.tomcat.util.buf.ByteChunk.flushBuffer(*ByteChunk.java:434*)
> >>
> >> at
> >>
> org.apache.catalina.connector.OutputBuffer.doFlush(*OutputBuffer.java:309
> >> *)
> >>
> >> at
> >>
> org.apache.catalina.connector.OutputBuffer.close(*OutputBuffer.java:273*)
> >>
> >> at org.apache.catalina.connector.CoyoteOutputStream.close(*
> >> CoyoteOutputStream.java:104*)
> >>
> >> at
> >>
> org.apache.cxf.transport.http.AbstractHTTPDestination$WrappedOutputStream.c
> >>lose( *AbstractHTTPDestination.java:517*)
> >>
> >> at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(*
> >> CacheAndWriteOutputStream.java:47*)
> >>
> >> at
> >>
> org.apache.cxf.io.CachedOutputStream.close(*CachedOutputStream.java:159*)
> >>
> >> at
> >>
> org.apache.cxf.transport.AbstractConduit.close(*AbstractConduit.java:66*)
> >>
> >> at
> >>
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInte
> >>rceptor.handleMessage( *MessageSenderInterceptor.java:62*)
> >>
> >> ... 23 more
> >>
> >> Caused by: *java.net.SocketException*: Connection reset by peer: socket
> >> write error
> >>
> >> at java.net.SocketOutputStream.socketWrite0(*Native Method*)
> >>
> >> at java.net.SocketOutputStream.socketWrite(Unknown Source)
> >>
> >> at java.net.SocketOutputStream.write(Unknown Source)
> >>
> >> at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(*
> >> InternalOutputBuffer.java:740*)
> >>
> >> at
> org.apache.tomcat.util.buf.ByteChunk.flushBuffer(*ByteChunk.java:434*)
> >>
> >> at org.apache.tomcat.util.buf.ByteChunk.append(*ByteChunk.java:349*)
> >>
> >> at
> >>
> org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWr
> >>ite( *InternalOutputBuffer.java:764*)
> >>
> >> at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(*
> >> ChunkedOutputFilter.java:124*)
> >>
> >> at org.apache.coyote.http11.InternalOutputBuffer.doWrite(*
> >> InternalOutputBuffer.java:573*)
> >>
> >> at org.apache.coyote.Response.doWrite(*Response.java:560*)
> >>
> >> at org.apache.catalina.connector.OutputBuffer.realWriteBytes(*
> >> OutputBuffer.java:353*)
> >>
> >> ... 32 more
> >>
> >> Nov 19, 2008 7:28:14 PM org.apache.catalina.core.StandardWrapperValve
> >> invoke
> >>
> >> SEVERE: Servlet.service() for servlet CXFServlet threw exception
> >>
> >> java.lang.NoClassDefFoundError
> >>
> >> at org.apache.cxf.interceptor.StaxOutInterceptor.getXMLOutputFactory(*
> >> StaxOutInterceptor.java:143*)
> >>
> >> at org.apache.cxf.interceptor.StaxOutInterceptor.handleMessage(*
> >> StaxOutInterceptor.java:67*)
> >>
> >> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(*
> >> PhaseInterceptorChain.java:221*)
> >>
> >> at
> >>
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(
> >> *AbstractFaultChainInitiatorObserver.java:96*)
> >>
> >> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(*
> >> PhaseInterceptorChain.java:262*)
> >>
> >> at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(*
> >> OutgoingChainInterceptor.java:74*)
> >>
> >> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(*
> >> PhaseInterceptorChain.java:221*)
> >>
> >> at org.apache.cxf.transport.ChainInitiationObserver.onMessage(*
> >> ChainInitiationObserver.java:78*)
> >>
> >> at org.apache.cxf.transport.servlet.ServletDestination.invoke(*
> >> ServletDestination.java:92*)
> >>
> >> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(*
> >> ServletController.java:279*)
> >>
> >> at org.apache.cxf.transport.servlet.ServletController.invoke(*
> >> ServletController.java:123*)
> >>
> >> at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(*
> >> AbstractCXFServlet.java:174*)
> >>
> >> at org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(*
> >> AbstractCXFServlet.java:156*)
> >>
> >> at javax.servlet.http.HttpServlet.service(*HttpServlet.java:617*)
> >>
> >> at javax.servlet.http.HttpServlet.service(*HttpServlet.java:717*)
> >>
> >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(*
> >> ApplicationFilterChain.java:290*)
> >>
> >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
> >> ApplicationFilterChain.java:206*)
> >>
> >> at org.apache.catalina.core.StandardWrapperValve.invoke(*
> >> StandardWrapperValve.java:233*)
> >>
> >> at org.apache.catalina.core.StandardContextValve.invoke(*
> >> StandardContextValve.java:191*)
> >>
> >> at org.apache.catalina.core.StandardHostValve.invoke(*
> >> StandardHostValve.java:128*)
> >>
> >> at org.apache.catalina.valves.ErrorReportValve.invoke(*
> >> ErrorReportValve.java:102*)
> >>
> >> at org.apache.catalina.core.StandardEngineValve.invoke(*
> >> StandardEngineValve.java:109*)
> >>
> >> at org.apache.catalina.connector.CoyoteAdapter.service(*
> >> CoyoteAdapter.java:286*)
> >>
> >> at org.apache.coyote.http11.Http11Processor.process(*
> >> Http11Processor.java:845*)
> >>
> >> at
> >>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(*
> >> Http11Protocol.java:583*)
> >>
> >> at
> >>
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(*JIoEndpoint.java:447*)
> >>
> >> at java.lang.Thread.run(Unknown Source)
> >
> >
> >
> > --
> > Daniel Kulp
> > dkulp@apache.org
> > http://dankulp.com/blog
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message