You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Jochen Wiedmann (JIRA)" <ji...@apache.org> on 2007/01/09 22:55:27 UTC

[jira] Resolved: (FILEUPLOAD-123) NullPointerException in FileUploadBase.createItem(FileUploadBase.java:500) when no factory was set in FileUpload

     [ https://issues.apache.org/jira/browse/FILEUPLOAD-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jochen Wiedmann resolved FILEUPLOAD-123.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2

Done.


> 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
>             Fix For: 1.2
>
>
> 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