Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004051 [Resin] major always 05-26-10 07:17 05-01-10 12:37
Reporter subwiz View Status public  
Assigned To
Priority normal Resolution fixed  
Status closed   Product Version 4.0.7
Summary 0004051: Servlet 3.0 Upload API throws NPE
Description When using Servlet 3.0 API for file upload, I get the following NPE:

    at com.caucho.server.http.HttpServletRequestImpl$PartImpl.write(
    at org.wiztools.fileupload.ServletIndex.doPost(
    at javax.servlet.http.HttpServlet.service(
    at javax.servlet.http.HttpServlet.service(
    at com.caucho.server.dispatch.ServletFilterChain.doFilter(
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(
    at com.caucho.server.webapp.AccessLogFilterChain.doFilter(
    at com.caucho.server.dispatch.ServletInvocation.service(
    at com.caucho.server.http.HttpRequest.handleRequest(
    at com.caucho.util.ThreadPool$PoolThread.runTasks(
    at com.caucho.util.ThreadPool$

This happens only when my Servlet has both doGet() and doPost() method. When I write a Multipart Servlet having only doPost() method, this exception is not thrown.

I have created a sample project to test this issue: [^]

(Maven based JavaEE 6 Web Project)

Only the third upload feature (*With Additional Parameters to Exclusive Servlet*) in this sample application works.
Additional Information
Attached Files

- Relationships

- Notes
05-01-10 12:37


- Issue History
Date Modified Username Field Change
05-26-10 07:17 subwiz New Issue
05-26-10 09:14 subwiz Issue Monitored: subwiz
05-01-10 12:37 alex Status new => closed
05-01-10 12:37 alex Note Added: 0004623
05-01-10 12:37 alex Resolution open => fixed
05-01-10 12:37 alex Fixed in Version  => 4.0.8

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker