You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Benjamin McCann (JIRA)" <ji...@apache.org> on 2007/10/20 23:40:39 UTC

[jira] Updated: (WW-2240) FileUploadInterceptor causes null pointer exception

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

Benjamin McCann updated WW-2240:
--------------------------------

    Attachment: null context.jpg

The context is null because setContext(null) is called before getting to the FileUploadInterceptor cleanup.  The attached screenshot should give a much better idea of what's going on.  I'm not sure why the action context is being cleaned up, but I'm assuming it shouldn't be.  The line in there regarding the RSAClearTrustAuthFilter is our company's single sign on authentication filter.  I have confirmed that this happens without the filter, so this should be reproducible.  

> FileUploadInterceptor causes null pointer exception
> ---------------------------------------------------
>
>                 Key: WW-2240
>                 URL: https://issues.apache.org/struts/browse/WW-2240
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Interceptors
>    Affects Versions: 2.1.0
>            Reporter: Benjamin McCann
>         Attachments: null context.jpg
>
>
> Using struts2-core-2.1.0-SNAPSHOT-20071003.jar, I received the following:
> java.lang.NullPointerException
> 	at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:277)
> 	at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
> 	at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:228)
> 	at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
> 	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:226)
> My action was able to access the File, so it must have been something in the cleanup.  My action was very similar to the one found in this tutorial http://www.roseindia.net/struts/struts2/struts-2-file-upload.shtml

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.