Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1420

Add a null check in Initialization class

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.3.0.ALPHA
    • Component/s: Core
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gavin.king Gavin King
                Reporter:
                michael.yuan Michael Yuan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: