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

        Zarick Lau created issue -
        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 )
        Zarick Lau made changes -
        Field Original Value New Value
        Attachment tiles-core-HEAD-jrun4-stop-npe.patch [ 13064 ]
        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)
        Antonio Petrelli made changes -
        Assignee Antonio Petrelli [ brenmcguire ]
        Antonio Petrelli made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Antonio Petrelli made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        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
        Antonio Petrelli made changes -
        Fix Version/s 2.0 [ 21730 ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Antonio Petrelli made changes -
        Fix Version/s 2.0.0 [ 21781 ]
        Fix Version/s 2.0 [ 21730 ]
        Workflow jira [ 38413 ] Struts [ 40841 ]
        Affects Version/s 2.0.0 [ 21781 ]
        Key SB-25 TILES-42
        Project Sandbox [ 10122 ] Tiles [ 10160 ]
        Component/s core [ 21321 ]
        Component/s Tiles [ 21260 ]
        Antonio Petrelli made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Jeff Turner made changes -
        Workflow Struts [ 40841 ] Struts - editable closed status [ 42858 ]
        Antonio Petrelli made changes -
        Workflow Struts - editable closed status [ 42858 ] Struts - editable closed status (temporary) [ 45760 ]
        Antonio Petrelli made changes -
        Workflow Struts - editable closed status (temporary) [ 45760 ] Struts - editable closed status [ 49628 ]
        Antonio Petrelli made changes -
        Workflow Struts - editable closed status [ 49628 ] Simplified [ 53384 ]
        Jeff Turner made changes -
        Project Import Mon Feb 01 01:30:28 UTC 2010 [ 1264987828110 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development