首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

java.io.IOException: Corrupt form data: premature ending

2014-01-26 
用Servlet上传文件时出现如题异常,异常详细内容如下 HTTP Status 500 - ---------------------------------

用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

求解决方法

------解决方法--------------------------------------------------------
上传文件名有中文字符?转码

        

热点排行