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

testsuite failure for org.jboss.test.webservice.secure.noenv.TransportOptionsTestCase

    XMLWordPrintable

Details

    Description

      A new test was added to JBoss_4_0_3_SP1 which I am having trouble passing. The changelog can be seen here:
      http://anoncvs.forge.jboss.com:8080/changelog/~tag=JBoss_4_0_3_SP1/JBoss/

      The test error is as follows:

      Suite: org.jboss.test.webservice.secure.noenv.TransportOptionsTestCase
      Test: testWithoutKeystore
      Type: failure
      Exception: junit.framework.AssertionFailedError
      Message: SocketException expected

      The test report gives further information in the stack trace. It?s basically expecting a SocketException but not getting one.

      <failure message="SocketException expected" type="junit.framework.Assertion\
      FailedError">junit.framework.AssertionFailedError: SocketException expected
      at org.jboss.test.webservice.secure.noenv.TransportOptionsTestCase.test\
      WithoutKeystore(TransportOptionsTestCase.java:104)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl\
      .java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce\
      ssorImpl.java:25)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      </failure>

      Test code snippet:

      try

      { String res = port.sayHello("Hello"); assertEquals("'Hello' to you too!", res); }

      catch (UndeclaredThrowableException e)

      { if (e.getCause() instanceof SocketException) exception = true; }

      assertTrue("SocketException expected", exception);

      I?m not seeing anything in the server logs to give me any further clues. I?ve played around with the test adding some assertions, an UndeclaredThrowableException is being thrown

      the UndeclaredThrowableException that is being caught in the test case is not a SocketException. The message associated with the Throwable is java.lang.Exception: Received fatal alert: bad_certificate. The error is reproducible on the QA machines with a 1.4 version JDK.

      Attachments

        Activity

          People

            jgreene@redhat.com Jason Greene
            ruel.loehr Ruel Loehr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: