Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-5472

Java EE 6 sample: fileupload run incorrectly on tomcat-assembly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • Tomcat
    • Security Level: public (Regular issues)
    • None

    Description

      1. The fileupload sample is under samples/javaee6, first checkout it from samples trunk and build it.
      2. Deploy the war package on tomcat-assembly server after it is started.
      3. After the sample is deployed and started successfully, visit http://localhost:8080/fileupload-javaee6/, you will be asked to select file to upload. Select a text file which is not larger than 10kb, and click submit.
      4. The right response page will show the content of the file you submitted. But on tomcat-assembly,it responses with

      HttpServletRequest.getParts() returns an empty collection!

      HttpServletRequest.getPart(String name) returns null!

      The error stack is:
      java.lang.NullPointerException
      at org.apache.geronimo.samples.javaee6.fileupload.MessageFilter.doFilter
      (MessageFilter.java:48)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:242)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:208)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:243)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:201)
      at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.
      invoke(GeronimoStandardContext.java:675)
      at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(Gero
      nimoBeforeAfterValve.java:47)
      at org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(Protecte
      dTargetValve.java:53)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:146)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:108)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:402)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :254)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ss(Http11Protocol.java:267)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ss(Http11Protocol.java:245)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin
      t.java:260)
      at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
      at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(Th
      readPool.java:344)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
      )
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      Attachments

        Activity

          People

            xuhaihong Haihong Xu
            wgzlllfc Wang Guang Zhe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: