2

I am trying to submit a form using an Alcatel OT900A but I am getting this error

ava.io.IOException: Corrupt form data: premature ending at com.oreilly.servlet.multipart.MultipartParser.(MultipartParser.java:205) at com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:222) at com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:173) at net.sourceforge.stripes.controller.multipart.CosMultipartWrapper.build(CosMultipartWrapper.java:63) at net.sourceforge.stripes.controller.multipart.DefaultMultipartWrapperFactory.wrap(DefaultMultipartWrapperFactory.java:125) at net.sourceforge.stripes.controller.StripesRequestWrapper.constructMultipartWrapper(StripesRequestWrapper.java:109) at net.sourceforge.stripes.controller.StripesRequestWrapper.(StripesRequestWrapper.java:95) at net.sourceforge.stripes.controller.StripesFilter.wrapRequest(StripesFilter.java:202) at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:171) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.colibria.imps.clients.xhtml.filter.LoggerFilter.doFilter(LoggerFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:113) at java.lang.Thread.run(Thread.java:619)

Do you have any idea what is this error? Something wrong in the server or is it the device? I've tried testing this on other devices and it is working. It's only in Alcatel OT900A that I get this error.

My form looks like this (ofcourse I omitted some of the codes):

<stripes:form action="Some_Action_Bean" method="post">
   <stripes:text name="somemessage" class="someclass"/>
   <stripes:file name="someFile" class="someClass"/>
</stripes:form>

there were some text entered in "somemessage" field but no file was chosen so basically "someFile" is null. I just have a checking in the backend if the value of the file is null.

I was thinking if the error occurred because no enctype="multipart/form-data" in the form, or maybe the stripes framework has an error itself or maybe the device doesn't support file sending.

4

1 回答 1

0

上传的文件不正确,errror parsing multipart data... 这不仅仅是表单,而是与请求一起上传的文件已损坏或不完整。

于 2013-02-08T05:08:22.680 回答