glassfish
  1. glassfish
  2. GLASSFISH-11695

possible NPE during web-container startup

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: v3.0.1
    • Component/s: web_container
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      11,695

      Description

      WebContainer during startup looks at all of the network-listeners in each
      <config> element in domain.xml

      QL - AMX tests seems to create the following configuration :

      <config name="AMXConfigProxyTests.TEST" dynamic-reconfiguration-enabled="false">
      <property description="desc.for.prop0" name="prop0" value="prop0-value" />
      <property description="desc.for.prop1" name="prop1" value="prop1-value" />
      <property description="desc.for.prop2" name="prop2" value="prop2-value" />
      <property description="desc.for.prop3" name="prop3" value="prop3-value" />
      <property description="desc.for.prop4" name="prop4" value="prop4-value" />
      </config>

      As a result of this configuration (no network-listeners in this configuration),
      web-container startup, while configuring network-listeners fails with the
      following NPE :

      [#|2010-03-18T00:31:15.164+0530|SEVERE|glassfishv3.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=25;_ThreadName=Thread-1;|Cannot
      start container web
      java.lang.NullPointerException
      at com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:532)
      at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
      at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
      at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
      at
      com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
      at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
      at
      com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
      at org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:91)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.startContainers(ApplicationLifecycle.java:719)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:464)
      at
      org.glassfish.javaee.full.deployment.EarDeployer.prepareBundle(EarDeployer.java:265)
      at
      org.glassfish.javaee.full.deployment.EarDeployer.access$200(EarDeployer.java:80)
      at
      org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:132)
      at
      org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:130)
      at
      org.glassfish.javaee.full.deployment.EarDeployer.doOnBundles(EarDeployer.java:198)
      at
      org.glassfish.javaee.full.deployment.EarDeployer.doOnAllTypedBundles(EarDeployer.java:207)
      at
      org.glassfish.javaee.full.deployment.EarDeployer.doOnAllBundles(EarDeployer.java:236)
      at
      org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:130)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:647)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:299)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:186)
      at
      org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:276)
      at
      com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:313)
      at
      com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:328)
      at
      com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1190)
      at
      com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:84)
      at
      com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1249)
      at
      com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1238)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
      at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
      at
      com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
      at
      com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:113)
      at
      com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:811)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:708)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1017)
      at
      com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:171)
      at
      com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      at
      com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      at
      com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      at
      com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      at
      com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      at
      com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:526)
      at
      com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:507)
      at java.lang.Thread.run(Thread.java:619)

      #]

        Activity

        Hide
        jluehe added a comment -

        Shing Wai, can you take a look?

        Show
        jluehe added a comment - Shing Wai, can you take a look?
        Hide
        Shing Wai Chan added a comment -

        Sending src/main/java/com/sun/enterprise/web/WebContainer.java
        Transmitting file data .
        Committed revision 36046.

        Port the fix to 3.0.1 branch:
        ending src/main/java/com/sun/enterprise/web/WebContainer.java
        Transmitting file data .
        Committed revision 36047.

        Show
        Shing Wai Chan added a comment - Sending src/main/java/com/sun/enterprise/web/WebContainer.java Transmitting file data . Committed revision 36046. Port the fix to 3.0.1 branch: ending src/main/java/com/sun/enterprise/web/WebContainer.java Transmitting file data . Committed revision 36047.

          People

          • Assignee:
            Shing Wai Chan
            Reporter:
            Jagadish
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: