Don't think that has anything to do with your sendmail thing. The stacktrace just says that Cocoon couldn't flush the send buffer at the end of the request. That happens if the browser or an upstream proxy closes the connection prematurely.
It's a long-standing nuisance that this common condition produces such a scaring error message. Anyone there to turn it into a warning with a simple message without stacktrace? HTH, ALfred. > -----Original Message----- > From: Luke Penca [mailto:[EMAIL PROTECTED] > Sent: Mittwoch, 30. Juli 2003 01:44 > To: [EMAIL PROTECTED] > Subject: Error in Sendmail logicsheet regarding cocoon:// attachments > > > Sorry for the verbosity! > > The 411: > > I have a form that has 192 fields on it. (I know, I know, I > know.) I loop through them, writing out a tab-separated file > with the FileWriter object. > > I then include that file as an attachment, a la: > > <sendmail:attachment url="cocoon:/misc/rfa.txt" > mime-type="text/plain" name="rfa.txt"/> > > The funny thing is that the email is successfully sent with > the attachment. And the logicsheet goes into its success > routine when apparently the output truncates after a few bites. > > My environment is: Win2K server, Tomcat 4.1, Java 1.4.1 and > Cocoon 2.1m3. > > > Here's the stacktrace: > > ERROR (2003-07-29) 18:32.43:144 [access] (Unknown-URI) > Unknown-thread/CocoonServlet: Cocoon got an Exception while > trying to close stream. > java.net.SocketException: Connection reset by peer: socket write error > at java.net.SocketOutputStream.socketWrite0(Native Method) > at > java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) > at > java.net.SocketOutputStream.write(SocketOutputStream.java:136) > at > org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutp > utBuffer.doWrite(InternalOutputBuffer.java:668) > at > org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(C > hunkedOutputFilter.java:166) > at > org.apache.coyote.http11.InternalOutputBuffer.doWrite(Internal > OutputBuffer.java:523) > at org.apache.coyote.Response.doWrite(Response.java:524) > at > org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBu > ffer.java:384) > at > org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439) > at > org.apache.coyote.tomcat4.OutputBuffer.flush(OutputBuffer.java:348) > at > org.apache.coyote.tomcat4.CoyoteOutputStream.flush(CoyoteOutpu > tStream.java:119) > at > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet. > java:1161) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt > er(ApplicationFilterChain.java:247) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli > cationFilterChain.java:193) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW > rapperValve.java:256) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > eContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > ine.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardC > ontextValve.java:191) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > eContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv > e.java:509) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > eContext.invokeNext(StandardPipeline.java:641) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > ine.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContext.invoke(StandardContex > t.java:2415) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHost > Valve.java:180) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > eContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi > spatcherValve.java:171) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > eContext.invokeNext(StandardPipeline.java:641) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport > Valve.java:172) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > eContext.invokeNext(StandardPipeline.java:641) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > ine.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn > gineValve.java:174) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > eContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > ine.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. > java:223) > at > org.apache.coyote.http11.Http11Processor.process(Http11Process > or.java:594) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle > r.processConnection(Http11Protocol.java:392) > at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi > nt.java:565) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > ThreadPool.java:619) > at java.lang.Thread.run(Thread.java:536) > This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender’s company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender’s company. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
