Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6925

Tests in org.jboss.test.cluster failing with IBM JDK 1.5 - servlet jsp not deployed

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JBossAS-5.1.0.CR1
    • Fix Version/s: 6.0.0.M1
    • Component/s: Test Suite
    • Labels:
      None
    • Environment:

      IBM JDK 1.5

      Description

      Some clustered tests are failing with IBM JDK 1.5.

      This is the list:
      org.jboss.test.cluster.defaultcfg.web.field.test.FieldBasedSessionPassivationTestCase
      org.jboss.test.cluster.defaultcfg.web.field.test.ScopedFieldBasedTestCase
      org.jboss.test.cluster.multicfg.web.field.test.FieldBasedTestCase
      org.jboss.test.cluster.multicfg.web.field.test.UndeployFieldTestCase

      In total this cause 105 failures in the AS testsuite (the test cases are run several times with different clustering configuration).

      The failures all look the same. This is an example from org.jboss.test.cluster.defaultcfg.web.field.test.FieldBasedSessionPassivationTestCase.testSessionPassivationWMaxIdle:
      Get OK with url: http://10.16.93.37:8080/http-field-pass/setSession.jsp responseCode: 500
      junit.framework.AssertionFailedError: Get OK with url: http://10.16.93.37:8080/http-field-pass/setSession.jsp responseCode: 500
      at org.jboss.test.cluster.testutil.WebTestBase.makeGet(WebTestBase.java:115)
      at org.jboss.test.cluster.defaultcfg.web.test.SessionPassivationTestCase.testSessionPassivationWMaxIdle(SessionPassivationTestCase.java:155)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)

      In the server log, you can see errors like this:
      17:14:48,650 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
      java.lang.NullPointerException
      at org.jboss.aop.Domain$1.run(Domain.java:124)
      at org.jboss.aop.Domain$1.run(Domain.java:121)
      at java.security.AccessController.doPrivileged(AccessController.java:197)
      at org.jboss.aop.Domain.getDomainName(Domain.java:119)
      at org.jboss.test.cluster.web.aop.Person$PersonAdvisor.initialise(Person$PersonAdvisor.java)
      at org.jboss.test.cluster.web.aop.Person$PersonAdvisor.<init>(Person$PersonAdvisor.java)
      at org.jboss.test.cluster.web.aop.Person.<clinit>(Person.java)
      at java.lang.J9VMInternals.initializeImpl(Native Method)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
      at org.apache.jsp.setSession_jsp._jspService(setSession_jsp.java:65)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
      at org.jboss.web.tomcat.service.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:135)
      at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:94)
      at org.jboss.web.tomcat.service.session.LockingValve.invoke(LockingValve.java:62)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:810)

        Gliffy Diagrams

        1. server.log-JBAS-6925
          89 kB
          Martin Malina
        2. server.log-JBAS-6925-sun
          23 kB
          Martin Malina

          Issue Links

            Activity

            Hide
            mmalina Martin Malina added a comment -

            Linked to a JIRA with a similar cause.

            Show
            mmalina Martin Malina added a comment - Linked to a JIRA with a similar cause.
            Hide
            mmalina Martin Malina added a comment -

            Attached the server log.

            Show
            mmalina Martin Malina added a comment - Attached the server log.
            Hide
            mmalina Martin Malina added a comment -

            For comparison I'm adding the server log when run with Sun JDK 1.5. There are still some exceptions, but far less of them and the tests pass:
            17:53:03,971 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
            java.lang.NullPointerException

            Show
            mmalina Martin Malina added a comment - For comparison I'm adding the server log when run with Sun JDK 1.5. There are still some exceptions, but far less of them and the tests pass: 17:53:03,971 ERROR [ [jsp] ] Servlet.service() for servlet jsp threw exception java.lang.NullPointerException
            Hide
            shelly.mcgowan Shelly McGowan added a comment -

            Resolved with JBoss AOP 2.1.3.GA and MC 2.0.8.GA

            Show
            shelly.mcgowan Shelly McGowan added a comment - Resolved with JBoss AOP 2.1.3.GA and MC 2.0.8.GA

              People

              • Assignee:
                shelly.mcgowan Shelly McGowan
                Reporter:
                mmalina Martin Malina
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development