org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException

the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null


Solutions on the web32

Solution icon of coderanch
via Coderanch by rajeshkannan sella, 8 months ago
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null

Solution icon of oraclecommunity
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null

Solution icon of github
via GitHub by yuesf
, 8 months ago
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null

Solution icon of stackoverflow
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null

Solution icon of web
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null

Solution icon of oraclecommunity
via Oracle Community by 843836, 3 weeks ago
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null

Solution icon of stackoverflow
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null

Solution icon of web
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null

Stack trace

  • org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:908) at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331) at org.apache.commons.fileupload.servlet.ServletFileUpload.getItemIterator(ServletFileUpload.java:148) at eBooks.controller.ReportServlet.processRequest(ReportServlet.java:45) at eBooks.controller.ReportServlet.doPost(ReportServlet.java:161) at eBooks.controller.ReportServlet.doGet(ReportServlet.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago