[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1420) Add a null check in Initialization class

Norman Richards (JIRA) jira-events at lists.jboss.org
Fri Jun 8 00:16:11 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-1420?page=comments#action_12364632 ] 
            
Norman Richards commented on JBSEAM-1420:
-----------------------------------------

The problem isn't in File, it's that we don't deal with the possibility that getRealPath() may return null.  

I've changed initialization so that if we cannot locate the hot deploy directory, then we will default to the NoHotRedeployable strategy and log a debug message.



> Add a null check in Initialization class
> ----------------------------------------
>
>                 Key: JBSEAM-1420
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1420
>             Project: JBoss Seam
>          Issue Type: Task
>          Components: Core
>            Reporter: Michael Yuan
>         Assigned To: Gavin King
>             Fix For: 1.3.0.ALPHA
>
>
> The JPA example failed to deploy on WebLogic with an NPE error on the "new File" line:
> <code>
> public class Initialization
> {
>    private RedeployableStrategy getRedeployableInitialization() 
>     {
>        File hotDeployDir = new File( servletContext.getRealPath("/WEB-
> INF/dev") );
> org.jboss.seam.servlet.SeamListener failed:
> java.lang.NullPointerException
>    at java.io.File <init> ( File.java: 194)
>    at org.jboss.seam.init.Initialization.getRedeployableInitialization
> (Initialization.java: 536)
>    ... ...
> </code>
> I think this is an issue with the File class in jRockit. 

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

        



More information about the seam-issues mailing list