日期:2014-05-18  浏览次数:20962 次

java.io.IOException: Corrupt form data: premature ending
用Servlet上传文件时出现如题异常,异常详细内容如下
HTTP Status 500 - 

--------------------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

java.io.IOException: Corrupt form data: premature ending
com.oreilly.servlet.multipart.MultipartParser.<init>(MultipartParser.java:166)
javazoom.upload.parsing.CosMultipartParser.handleRequest(Unknown Source)
javazoom.upload.MultipartFormDataRequest.<init>(Unknown Source)
javazoom.upload.MultipartFormDataRequest.<init>(Unknown Source)
javazoom.upload.MultipartFormDataRequest.<init>(Unknown Source)
javazoom.upload.MultipartFormDataRequest.<init>(Unknown Source)
javazoom.upload.MultipartFormDataRequest.<init>(Unknown Source)
uploadServlet.doPost(uploadServlet.java:38)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.


--------------------------------------------

Apache Tomcat/6.0.14

求解决方法

------解决方案--------------------
上传文件名有中文字符?转码
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html