jersey
  1. jersey
  2. JERSEY-1372

NPE from org.glassfish.jersey.servlet.ServletContainer.destroy in embedded jax-rs test

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-m09, 2.0
    • Component/s: containers
    • Labels:
      None

      Description

      Embedded JAX-RS test reports this NPE on undeploy (plain 'ejbinwar' test is fine). To reproduce, do 'ant all' from v2/appserver-tests/devtests/ejb/ejb31/embedded/jaxrs

      [java] SEVERE: WebModule[/ejb-ejb31-embedded-jaxrs-web]PWC1410: Servlet javax.ws.rs.core.Application threw unload() exception
      [java] javax.servlet.ServletException: PWC1386: Servlet.destroy() for servlet javax.ws.rs.core.Application threw exception
      [java] at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1826)
      [java] at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:2110)
      [java] at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5679)
      [java] at com.sun.enterprise.web.WebModule.stop(WebModule.java:538)
      [java] at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1064)
      [java] at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2170)
      [java] at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2125)
      [java] at com.sun.enterprise.web.WebApplication.stop(WebApplication.java:158)
      [java] at org.glassfish.internal.data.EngineRef.stop(EngineRef.java:161)
      [java] at org.glassfish.internal.data.ModuleInfo.stop(ModuleInfo.java:302)
      [java] at org.glassfish.internal.data.ApplicationInfo.stop(ApplicationInfo.java:329)
      [java] at com.sun.enterprise.v3.server.ApplicationLifecycle.unload(ApplicationLifecycle.java:1042)
      [java] at com.sun.enterprise.v3.server.ApplicationLifecycle.undeploy(ApplicationLifecycle.java:1082)
      [java] at org.glassfish.deployment.admin.UndeployCommand.execute(UndeployCommand.java:363)
      [java] at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:498)
      [java] at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:519)
      [java] at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1399)
      [java] at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:112)
      [java] at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1669)
      [java] at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1632)
      [java] at com.sun.enterprise.admin.cli.embeddable.CommandExecutorImpl.executeCommand(CommandExecutorImpl.java:147)
      [java] at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.undeploy(DeployerImpl.java:157)
      [java] at org.glassfish.ejb.embedded.EJBContainerImpl.undeploy(EJBContainerImpl.java:265)
      [java] at org.glassfish.ejb.embedded.EJBContainerImpl.forceClose(EJBContainerImpl.java:197)
      [java] at org.glassfish.ejb.embedded.EJBContainerImpl.close(EJBContainerImpl.java:184)
      [java] at com.acme.Client.testEJB(Client.java:107)
      [java] at com.acme.Client.main(Client.java:66)
      [java] Caused by: java.lang.NullPointerException
      [java] at org.glassfish.jersey.servlet.ServletContainer.destroy(ServletContainer.java:316)
      [java] at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1813)
      [java] ... 26 more
      [java] ----- Root Cause -----
      [java] java.lang.NullPointerException
      [java] at org.glassfish.jersey.servlet.ServletContainer.destroy(ServletContainer.java:316)
      [java] at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1813)
      [java] at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:2110)
      [java] at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5679)
      [java] at com.sun.enterprise.web.WebModule.stop(WebModule.java:538)
      [java] at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1064)
      [java] at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2170)
      [java] at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2125)
      [java] at com.sun.enterprise.web.WebApplication.stop(WebApplication.java:158)
      [java] at org.glassfish.internal.data.EngineRef.stop(EngineRef.java:161)
      [java] at org.glassfish.internal.data.ModuleInfo.stop(ModuleInfo.java:302)
      [java] at org.glassfish.internal.data.ApplicationInfo.stop(ApplicationInfo.java:329)
      [java] at com.sun.enterprise.v3.server.ApplicationLifecycle.unload(ApplicationLifecycle.java:1042)
      [java] at com.sun.enterprise.v3.server.ApplicationLifecycle.undeploy(ApplicationLifecycle.java:1082)
      [java] at org.glassfish.deployment.admin.UndeployCommand.execute(UndeployCommand.java:363)
      [java] at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:498)
      [java] at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:519)
      [java] at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1399)
      [java] at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:112)
      [java] at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1669)
      [java] at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1632)
      [java] at com.sun.enterprise.admin.cli.embeddable.CommandExecutorImpl.executeCommand(CommandExecutorImpl.java:147)
      [java] at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.undeploy(DeployerImpl.java:157)
      [java] at org.glassfish.ejb.embedded.EJBContainerImpl.undeploy(EJBContainerImpl.java:265)
      [java] at org.glassfish.ejb.embedded.EJBContainerImpl.forceClose(EJBContainerImpl.java:197)
      [java] at org.glassfish.ejb.embedded.EJBContainerImpl.close(EJBContainerImpl.java:184)
      [java] at com.acme.Client.testEJB(Client.java:107)
      [java] at com.acme.Client.main(Client.java:66)
      [java]

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Marek Potociar
              Reporter:
              marina vatkina
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 hours
                3h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h