With the same configuration and servlet, I was able to stream the http request to s3. Then I dropped in commons-fileupload and pasted the example, and it broke on the first line of code. That made the fileupload code suspect, so I thought I would air the issue in case it's common. Sounds like the burden of proof is back on me, so I will dig deeper and let you know what I find out.
Thanks. On Fri, Dec 12, 2008 at 6:26 PM, Martin Cooper <[email protected]> wrote: > On Fri, Dec 12, 2008 at 6:21 PM, Robert Christian < > [email protected]> 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 < > > [email protected]> 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(); > > > > > >
