commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Tanzer (JIRA)" <j...@apache.org>
Subject [jira] Created: (FILEUPLOAD-123) NullPointerException in FileUploadBase.createItem(FileUploadBase.java:500) when no factory was set in FileUpload
Date Tue, 09 Jan 2007 10:13:27 GMT
NullPointerException in FileUploadBase.createItem(FileUploadBase.java:500) when no factory
was set in FileUpload
----------------------------------------------------------------------------------------------------------------

                 Key: FILEUPLOAD-123
                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-123
             Project: Commons FileUpload
          Issue Type: Bug
    Affects Versions: 1.1.1
            Reporter: David Tanzer
            Priority: Minor


The following code produces a NPE, a more descriptive exception (and exception message) would
be helpful.

ServletFileUpload upload = new ServletFileUpload();
try {
    List<FileItem> items = upload.parseRequest(request);
    /* ... */
} catch (Exception e) {
    e.printStackTrace();
}

The exception is:
java.lang.NullPointerException
	at org.apache.commons.fileupload.FileUploadBase.createItem(FileUploadBase.java:500)
	at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367)
	at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:116)
	...


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message