Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13056

Unexpected Error instead of SOAPFaultException when using IBM JDK and SecurityManager

XMLWordPrintable

    • Hide
      export JAVA_HOME=/path/ibm-java-x86_64-80
      
      ./integration-tests.sh install -Dtest=org/jboss/as/test/integration/ws/basic/EJBEndpointTestCase.java -Dintegration.module -Dts.basic -Dsecurity.manager -Djboss.dist=$JBOSS_HOME
      
      Show
      export JAVA_HOME=/path/ibm-java-x86_64-80 ./integration-tests.sh install -Dtest=org/jboss/as/test/integration/ws/basic/EJBEndpointTestCase.java -Dintegration.module -Dts.basic -Dsecurity.manager -Djboss.dist=$JBOSS_HOME

      When using IBM JDK with SecurityManager option, a programmatic Fault returns a different Exception than a SOAPFaultException

       @Test
          public void testHelloError() {
              try {
                  proxy.helloError("Fault for test purpose");
                  Assert.fail("This should throw a SOAPFaultException");
              } catch (SOAPFaultException ex) {
                  SOAPFault fault = ex.getFault();
                  Assert.assertEquals("Fault for test purpose", fault.getFaultString());
                 //....
              }
          }
      

      Exception:

      org.junit.ComparisonFailure: expected:<[Fault for test purpose]> but was:<[WFLYEJB0442: Unexpected Error]>
      	at org.junit.Assert.assertEquals(Assert.java:115)
      	at org.junit.Assert.assertEquals(Assert.java:144)
      	at org.jboss.as.test.integration.ws.basic.BasicTests.testHelloError(BasicTests.java:69)
      

      Affected Test in the AS Testsuite:
      org/jboss/as/test/integration/ws/basic/EJBEndpointTestCase

            chaowan@redhat.com Chao Wang
            fmarchio@redhat.com Francesco Marchioni (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: