com.oreilly.servlet error - IOException unexpected end of part
843841Apr 30 2003 — edited Apr 30 2003We are using the com.oreilly.servlet package (cos.jar) and we have been experiencing sporadic errors while trying to upload large graphic files using the com.oreilly.servlet.MultiPart.MultipartRequest functionality. We have looked to the oreilly site for resolution and have had no luck to date.
The error thrown is - Caught IOException: unexpected end of part. The error seems to be more likely thrown when I upload large files (>100MB) though not always and after no particular period of time. When we upload a certain file numerous times for testing, it seems random as to when it might fail. We are using iPlanet as the webserver and ATG Dynamo 5.6 as the app server.
The MultiPartRequest library is being called from a servlet controller that extends the HttpServlet class. The relevant code snippet from our Controller is
MultipartRequest multi =
new MultipartRequest(request, dirName, 200*1024*1024); // 200MB
String action = multi.getParameter("action");
if ( action.equals( "upload_graphics" ) )
{
ImageProcessorUploadGraphicsPage pg =
new ImageProcessorUploadGraphicsPage( multi, session, jnjdisplayURLRoot );
request.setAttribute( "ipUploadPage", pg );
request.setAttribute( "GraphicUploadMessage", pg.getMessage() );
redirectURL = "/upload.jsp";
}
RequestDispatcher rd = request.getRequestDispatcher( redirectURL );
rd.forward(request, response);
We are using the latest version of the servlet library from November 2002. We have tried both Netscape and IE and we see the same behavior. We can't swap out iPlanet to see if the problem is web server related because we are running in a firewalled enterprise environment.
Any help with this issue would be greatly appreciated, we have been struggling with this issue for some time now.
thanks much in advance
Peter