[
https://issues.apache.org/jira/browse/GERONIMO-5472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan reassigned GERONIMO-5472:
------------------------------
Assignee: Ivan
> Java EE 6 sample: fileupload run incorrectly on tomcat-assembly.
> ----------------------------------------------------------------
>
> Key: GERONIMO-5472
> URL: https://issues.apache.org/jira/browse/GERONIMO-5472
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Tomcat
> Affects Versions: 3.0
> Reporter: Wang Guang Zhe
> Assignee: Ivan
> Fix For: 3.0
>
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.