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

Michael Yuan (JIRA) jira-events at lists.jboss.org
Fri Jun 8 01:46:29 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-1420?page=comments#action_12364643 ] 
            
Michael Yuan commented on JBSEAM-1420:
--------------------------------------

Just did an experiment as Norman requested: the debug statement ("cannot find WEB-INF/dev") is only printed when the directory is missing. If I add that directory to the WAR, the message is NOT printed. So, I guess this could be a "INFO" or "WARN" level 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