Discussion:
InvalidContentTypeException in a jsp form action
(too old to reply)
jus
2006-05-02 13:46:43 UTC
Permalink
I tired to access upload a file using the enctype="multipart/form-data"
and I get this exception:


org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException:
the re
quest doesn't contain a multipart/form-data or multipart/mixed stream,
content t
ype header is null
at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
ase.java:299)
at jsp_servlet.__invoke._jspService(invoke.jsp:105)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1072)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:465)
at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at
com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
er.java:250)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6987)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3892)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2766)
at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)


please help me to resolve this problem
Scherbina Vladimir
2006-05-04 17:56:04 UTC
Permalink
This is definitly NOT a wininet question.

How do you handle request in your jsp/servlet code? Seems like you're trying
to read file content from a default request time, instead use
MultipartRequest java class and its getFile method....

Putting some code will shed light on the problem
--
Vladimir
manage content: http://www.infostoria.com/
blog: http://thespoke.net/blogs/vladimir_scherbina/
Post by jus
I tired to access upload a file using the enctype="multipart/form-data"
the re
quest doesn't contain a multipart/form-data or multipart/mixed stream,
content t
ype header is null
at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
ase.java:299)
at jsp_servlet.__invoke._jspService(invoke.jsp:105)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1072)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:465)
at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at
com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
er.java:250)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6987)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at
121)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3892)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2766)
at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
please help me to resolve this problem
Scherbina Vladimir
2006-05-04 19:18:39 UTC
Permalink
Sorry, I ment "Seems like you're trying to read file content from a default
request TYPE,..."
--
Vladimir
manage content: http://www.infostoria.com/
blog: http://thespoke.net/blogs/vladimir_scherbina/
Post by Scherbina Vladimir
This is definitly NOT a wininet question.
How do you handle request in your jsp/servlet code? Seems like you're
trying to read file content from a default request time, instead use
MultipartRequest java class and its getFile method....
Putting some code will shed light on the problem
--
Vladimir
manage content: http://www.infostoria.com/
blog: http://thespoke.net/blogs/vladimir_scherbina/
Post by jus
I tired to access upload a file using the enctype="multipart/form-data"
the re
quest doesn't contain a multipart/form-data or multipart/mixed stream,
content t
ype header is null
at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
ase.java:299)
at jsp_servlet.__invoke._jspService(invoke.jsp:105)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1072)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:465)
at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at
com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
er.java:250)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6987)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at
121)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3892)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2766)
at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
please help me to resolve this problem
Loading...