[jboss-jira] [JBoss JIRA] (WFLY-13056) Unexpected Error instead of SOAPFaultException when using IBM JDK and SecurityManager

Darran Lofthouse (Jira) issues at jboss.org
Tue Feb 4 09:14:15 EST 2020


     [ https://issues.redhat.com/browse/WFLY-13056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse reassigned WFLY-13056:
---------------------------------------

    Assignee:     (was: Stefan Guilhen)


> Unexpected Error instead of SOAPFaultException when using IBM JDK and SecurityManager
> -------------------------------------------------------------------------------------
>
>                 Key: WFLY-13056
>                 URL: https://issues.redhat.com/browse/WFLY-13056
>             Project: WildFly
>          Issue Type: Bug
>          Components: Security Manager, Test Suite
>    Affects Versions: 19.0.0.Beta1
>            Reporter: Francesco Marchioni
>            Priority: Major
>
> When using IBM JDK with SecurityManager option, a programmatic Fault returns a different Exception than a SOAPFaultException
> {code:java}
>  @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());
>            //....
>         }
>     }
> {code}
> Exception:
> {code:java}
> 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)
> {code}
> Affected Test in the AS Testsuite:
> org.jboss.as.test.integration.ws.basic.BasicTests.testHelloError



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list