用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
求解决方法
------解决方法--------------------------------------------------------
上传文件名有中文字符?转码