Error Writing Data. Org.mortbay.jetty.eofexception
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up org.mortbay.jetty.EofException gets thrown when writing to response up vote 4 down vote favorite I am using jetty 6.1.23 within eclipse RAP (Rich Ajax Platform 1.3.2) and Java version 1.5. I am sending a PNG image to the browser. These are pieces of code that are causing trouble: server side: response.setContentType(application.getMimeType(".png")); response.setContentLength(outputSize); response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("Expires", 0); response.setHeader("Pragma", "no-cache"); response.setDateHeader("Max-Age", 0); ServletOutputStream servletoutputstream = response.getOutputStream(); servletoutputstream.write(imageBytes); // this throws EofException servletoutputstream.flush(); client side: The thing that's weird is that this problem does not happen all the time. It happens intermittently after we moved to production. There were no problems in our test environment. The only difference between production and our test environment is that in production environment, users are far away from our servers, while in the test environment, they are very close. When the exception gets thrown, image does not get displayed at all at the client's browser end! What is going on? What can I do to fix it or at least have a workaround? This is the full exception trace (I highlighted key exceptions): 08 Feb 2012 11:49:08,955 ERROR [1584291438@qtp-2135195460-260] plugin.sda - org.mortbay.jetty.EofException at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:789) at org.mortbay.jetty.AbstractGenerator$Output.flush(AbstractGenerator.java:568) at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:1006) at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:650) at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:590) at com.scotiabank.ebss.common.viewer.util.ViewerUtil.sendBytes(ViewerUtil.java:533) at com.scotiabank.ebss.common.viewer.servlets.ViewerServlet.doGet(ViewerServlet.java:242) at javax.servlet.http.HttpServlet.service(HttpServlet
2013-06-27 05:40:09,195 ERROR [btpool0-6515 ] fisheye TotalityFilter-logExceptionDetails - Exception "null" (org.mortbay.jetty.EofException) while processing "/avatar/
while uploading a deployment from https://www.jfrog.com/jira/browse/RTFACT-400 maven.Log In ExportXMLWordPrintable Details Type: Bug Status: Resolved Priority: Blocker Resolution: Incomplete Affects Version/s: 1.2.5 Fix Version/s: None Component/s: Deployer Labels: None Environment: MS Windows Server 2003 R2 Java 1.6.0_01 b06 Description Hi, I error writing do a deployment using "mvn deploy -DrepositoryId=the-repo-id.". The project contains one super-pom and many sub-poms for the different sub-projects. All of them create jars, some of them end up with zips (through an assembly error writing data. to have a deploy-able zip file). The ones only creating jars are uploaded to Artifactory without any problems. The first one with a zip (uploading the zip) will cause the following exception (excerpt from the "artifactory.log"): 2008-05-28 17:23:59,703 [ERROR] (RepoFilter.java:151 {10}) - Upload request failed org.mortbay.jetty.EofException at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:290) at org.mortbay.jetty.HttpParser$Input.blockForContent(HttpParser.java:1050) at org.mortbay.jetty.HttpParser$Input.read(HttpParser.java:999) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.artifactory.checksum.ChecksumInputStream.read(ChecksumInputStream.java:53) at org.artifactory.checksum.ChecksumInputStream.read(ChecksumInputStream.java:44) at org.apache.jackrabbit.core.value.BLOBFileValue.