commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Cooper" <mart...@apache.org>
Subject Re: error with "boolean isMultipart = ServletFileUpload.isMultipartContent(req);"
Date Sat, 13 Dec 2008 02:26:23 GMT
On Fri, Dec 12, 2008 at 6:21 PM, Robert Christian <
robertjchristian@gmail.com> wrote:

> The stack output is from the Tomcat layer:


I see nothing in that stack trace that suggests any connection to
FileUpload. What makes you think there's a connection?

--
Martin Cooper



> SEVERE: Servlet.service() for servlet hello threw exception
> javax.servlet.ServletException: Servlet execution threw an exception
>    at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)
>    at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>    at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>    at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>    at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>    at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>    at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>    at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
>    at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>    at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
>    at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>    at java.lang.Thread.run(Thread.java:619)
>
> The root exception is a java.security.AccessControlException.  I am using
> the out-of-the-box catalina.policy.
>
> On Thu, Dec 11, 2008 at 10:44 PM, Robert Christian <
> robertjchristian@gmail.com> wrote:
>
> > exception occurs at
> ApplicationFilterChain.internalDoFilter(ServletRequest,
> > ServletResponse) line: 310
> >
> > using tomcat 6
> > commons-fileupload-1.2.1
> > commons-io-1.3.2
> >
> > code looks like:
> >
> > public void doPost(HttpServletRequest req, HttpServletResponse res)
> >             throws ServletException, IOException {
> >
> >         try {
> >             // Check that we have a file upload request
> >             boolean isMultipart =
> > ServletFileUpload.isMultipartContent(req);
> >
> >             // Create a new file upload handler
> >             ServletFileUpload upload = new ServletFileUpload();
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message