javax.faces.FacesException

javax.servlet.ServletException: The request content-type is not a multipart/form-data

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web777

  • javax.servlet.ServletException: The request content-type is not a multipart/form-data
  • via Java.net JIRA by ericying, 1 year ago
    javax.servlet.ServletException: The request content-type is not a multipart/form-data
  • via Stack Overflow by DarkMisha
    , 1 year ago
    javax.servlet.ServletException: The request content-type is not a multipart/form-data
  • Stack trace

    • javax.faces.FacesException: javax.servlet.ServletException: The request content-type is not a multipart/form-data at com.sun.faces.renderkit.html_basic.FileRenderer.decode(FileRenderer.java:97) at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:842) at javax.faces.component.UIInput.decode(UIInput.java:771) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1234) at javax.faces.component.UIInput.processDecodes(UIInput.java:676) at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:535) at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1680) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1691) at javax.faces.component.UIForm.visitTree(UIForm.java:371) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1691) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1691) at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:395) at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:259) at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:927) at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:181) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:645) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550) 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:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) 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) Caused by: javax.servlet.ServletException: The request content-type is not a multipart/form-data at org.apache.catalina.fileupload.Multipart.getParts(Multipart.java:176) at org.apache.catalina.connector.Request.getParts(Request.java:4085) at org.apache.catalina.connector.RequestFacade.getParts(RequestFacade.java:1116) at com.sun.faces.renderkit.html_basic.FileRenderer.decode(FileRenderer.java:87) ... 42 more

    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

    Unknown user
    Once, 1 year ago