commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <>
Subject [jira] [Commented] (FILEUPLOAD-256) FileCleanerCleanup throws NPE on shut-down
Date Tue, 11 Nov 2014 17:29:34 GMT


Thomas Neidhart commented on FILEUPLOAD-256:

I can not reproduce this problem.
The FileCleaningTracker should be setup by the same context listener once the context has
been initialized. If the respective attribute is null afterwards, somebody must have reset
it to null. A possible explanation would be that your container has serialized the ServletContext
(there are reports on the web about Weblogic doing this kind of thing). As the FileCleaningTracker
is not serializable, it would not survive such a save/restore process.

Can you give more details about your system configuration?

> FileCleanerCleanup throws NPE on shut-down
> ------------------------------------------
>                 Key: FILEUPLOAD-256
>                 URL:
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Til Schneider
>            Priority: Minor
> FileCleanerCleanup throws NPE on shut-down if there was no file uploaded.
> Here's the stack trace:
> {code}
> java.lang.NullPointerException
> 	at org.apache.commons.fileupload.servlet.FileCleanerCleanup.contextDestroyed(
> 	at org.mortbay.jetty.handler.ContextHandler.doStop(
> 	...
> {code}
> A simple check, whether there is a FileCleaningTracker for that ServletContext should
fix this.

This message was sent by Atlassian JIRA

View raw message