ICEfaces
  1. ICEfaces
  2. ICE-5878

NullPointer exceptions seen when regression testcases are undeployed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-Beta1
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Tomcat6.0
    • Affects:
      Compatibility/Configuration
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      The workaround is to include a context file in the .war file:

      META-INF/context.xml

      The contents of the file should look like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <Context antiJarLocking="true" antiResourceLocking="true">
      </Context>
      Show
      The workaround is to include a context file in the .war file: META-INF/context.xml The contents of the file should look like this: <?xml version="1.0" encoding="UTF-8"?> <Context antiJarLocking="true" antiResourceLocking="true"> </Context>

      Description

      Following exception is seen on the server during nightly regression test, when the applications are undeployed. This exception is seen randomly and does not appear for any specific test-case:
      .

      Jul 7, 2010 12:32:53 AM org.icefaces.render.DOMRenderKit <clinit>
      INFO:
      ICEsoft Technologies Inc.
      ICEfaces 2.0 0.0.3 Development
      Build number: 002
      Revision: 21564

      Jul 7, 2010 12:32:53 AM org.icefaces.util.EnvConfig decodeBoolean
      INFO: ICEfaces init parameter org.icefaces.render.auto defaulting to true
      Jul 7, 2010 12:32:53 AM org.icefaces.util.EnvConfig decodeBoolean
      INFO: ICEfaces init parameter org.icefaces.autoid defaulting to true
      Jul 7, 2010 12:32:53 AM org.icefaces.util.EnvConfig decodeBoolean
      INFO: ICEfaces init parameter org.icefaces.aria.enabled defaulting to true
      Jul 7, 2010 12:32:53 AM org.icefaces.util.EnvConfig decodeBoolean
      INFO: ICEfaces init parameter org.icefaces.compressDOM defaulting to false
      Jul 7, 2010 12:33:04 AM org.apache.catalina.startup.HostConfig checkResources
      INFO: Undeploying context [/ICE-4565]
      Jul 7, 2010 12:33:04 AM org.apache.catalina.startup.HostConfig checkResources
      INFO: Undeploying context [/ICE-4565]
      Jul 7, 2010 12:33:04 AM org.apache.catalina.startup.HostConfig checkResources
      WARNING: Error while removing context [/ICE-4565]
      java.lang.NullPointerException
          at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:915)
          at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1174)
          at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)
          at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
          at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
          at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
          at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
          at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
          at java.lang.Thread.run(Thread.java:619)
      Jul 7, 2010 12:33:04 AM org.apache.catalina.startup.HostConfig checkResources
      WARNING: Error during context [/ICE-4565] destroy
      java.lang.NullPointerException
          at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1180)
          at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)
          at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
          at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
          at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
          at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
          at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
          at java.lang.Thread.run(Thread.java:619)

        Activity

        Hide
        Deryk Sinotte added a comment -

        I wasn't able to recreate the issue noted above but since it's transient, perhaps there is some variable I'm missing. There is a known issue with hot/re-deploying compat versions of ICEfaces applications to Tomcat on Windows: ICE-5222

        The workaround is to include a context file in the .war file:

        META-INF/context.xml

        The contents of the file should look like this:

        <?xml version="1.0" encoding="UTF-8"?>
        <Context antiJarLocking="true" antiResourceLocking="true">
        </Context>

        We should add this to all the tests we run on Tomcat when the compatibility jars are included and retest.

        Show
        Deryk Sinotte added a comment - I wasn't able to recreate the issue noted above but since it's transient, perhaps there is some variable I'm missing. There is a known issue with hot/re-deploying compat versions of ICEfaces applications to Tomcat on Windows: ICE-5222 The workaround is to include a context file in the .war file: META-INF/context.xml The contents of the file should look like this: <?xml version="1.0" encoding="UTF-8"?> <Context antiJarLocking="true" antiResourceLocking="true"> </Context> We should add this to all the tests we run on Tomcat when the compatibility jars are included and retest.
        Hide
        Deryk Sinotte added a comment -

        Assigning to Mandeep to verify if this is still a problem or not.

        Show
        Deryk Sinotte added a comment - Assigning to Mandeep to verify if this is still a problem or not.
        Hide
        Mandeep Hayher added a comment -

        Icefaces2 revision#22166
        The Null pointer exception was seen in 14 test-cases in the last nightly regression test run(without using there workaround).

        Show
        Mandeep Hayher added a comment - Icefaces2 revision#22166 The Null pointer exception was seen in 14 test-cases in the last nightly regression test run(without using there workaround).
        Hide
        Ken Fyten added a comment -

        Actually, this is the expected behavior. So long as things work correctly when using the workaround configuration, we are okay with this as it is a Tomcat/Windows issue.

        Show
        Ken Fyten added a comment - Actually, this is the expected behavior. So long as things work correctly when using the workaround configuration, we are okay with this as it is a Tomcat/Windows issue.

          People

          • Assignee:
            Ken Fyten
            Reporter:
            Mandeep Hayher
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: