Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: tiles-core
    • Labels:
      None
    • Environment:

      JRun 4, Win2k, Sun JDK 1.5.0

    • Flags:
      Patch

      Description

      I have integrate standalone tiles in my project (for my company).
      When JRun 4 stop (or I trigger the hot-deploy to reload the webapp), it will throw a NullPointerException.

      After some study, the NPE should be cause by the absence of super.init(config) call in TilesServlet.java

      I'll attach my one-line patch. Hope useful...

      (BTW, what's the current status on standalone-tiles?)

        Activity

        Show
        Zarick Lau added a comment - See the Javadoc for more detail: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/GenericServlet.html#init(javax.servlet.ServletConfig )
        Hide
        Antonio Petrelli added a comment -

        Could you post the stack trace of the exception? It will be useful especially for comparison with other servlet containers

        Show
        Antonio Petrelli added a comment - Could you post the stack trace of the exception? It will be useful especially for comparison with other servlet containers
        Hide
        Zarick Lau added a comment -

        The following is the stack trace. Using JRun4 with JDK1.5

        06/01 18:21:11 error
        java.lang.NullPointerException
        at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205)
        at javax.servlet.GenericServlet.log(GenericServlet.java:300)
        at javax.servlet.GenericServlet.destroy(GenericServlet.java:122)
        at jrun.servlet.WebApplicationService.stop(WebApplicationService.java:326)
        at jrun.deployment.DeployerService.undeploy(DeployerService.java:1477)
        at jrun.deployment.DeployerService.undeploy(DeployerService.java:1436)
        at jrun.deployment.DeployerService.redeploy(DeployerService.java:1383)
        at jrun.deployment.DeployerService.redeployChanged(DeployerService.java:872)
        at jrun.deployment.DeployerService.run(DeployerService.java:890)
        at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

        Show
        Zarick Lau added a comment - The following is the stack trace. Using JRun4 with JDK1.5 06/01 18:21:11 error java.lang.NullPointerException at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205) at javax.servlet.GenericServlet.log(GenericServlet.java:300) at javax.servlet.GenericServlet.destroy(GenericServlet.java:122) at jrun.servlet.WebApplicationService.stop(WebApplicationService.java:326) at jrun.deployment.DeployerService.undeploy(DeployerService.java:1477) at jrun.deployment.DeployerService.undeploy(DeployerService.java:1436) at jrun.deployment.DeployerService.redeploy(DeployerService.java:1383) at jrun.deployment.DeployerService.redeployChanged(DeployerService.java:872) at jrun.deployment.DeployerService.run(DeployerService.java:890) at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
        Hide
        Antonio Petrelli added a comment -

        Corrected File org.apache.tiles.servlets.TilesServlet as indicated by the reporter

        Show
        Antonio Petrelli added a comment - Corrected File org.apache.tiles.servlets.TilesServlet as indicated by the reporter

          People

          • Assignee:
            Antonio Petrelli
            Reporter:
            Zarick Lau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development