cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <>
Subject [jira] [Commented] (CXF-7270) CXF on java 9 build 159 fails
Date Fri, 17 Mar 2017 07:37:41 GMT


Freeman Fang commented on CXF-7270:

Those failure security related tests are caused similar reason,  in latest JDK9 EA kit, the
SAAJ api changed, for example, the
com.sun.xml.internal.messaging.saaj.soap.impl.ElementImpl now not extends its dom counterpart, instead it store it as a field and add
a method
    public Element getDomElement() {
        return element;
to get it. so the extends become aggregate.

This change cause lots of ClassCastException and wrong DocOwner exception.

After several hack in both WSS4J and CXF code base(use java reflect to get the proper dom
element from soap element if required), I got most test failure fixed, now I have few left
Failed tests: 
{}EncryptedParts policy erroneously
{}EncryptedParts policy erroneously
{}EncryptedParts policy erroneously
{}SignedParts policy erroneously
Tests in error: 
  StaxToDOMSamlTest.testSaml1TokenHOK:432 » SOAPFault A security error was encou...
  StaxToDOMSamlTest.testSaml1TokenHOKConfig:485 » SOAPFault A security error was...
  StaxToDOMSamlTest.testSaml2TokenHOK:553 » SOAPFault A security error was encou...
  StaxToDOMSamlTest.testSaml2TokenHOKConfig:614 » SOAPFault A security error was...

Still on it.

> CXF on java 9 build 159 fails
> -----------------------------
>                 Key: CXF-7270
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>            Reporter: John Poth
>            Assignee: Freeman Fang
> Tested with latest Java 9 build 159. To reproduce run in systests/jaxws
> {code}
> mvn clean install -Dtest=org.apache.cxf.systest.provider.ProviderClientServerTest#testSOAPMessageModeDocLit
> {code}
> {code}
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.899 sec <<<
FAILURE! - in org.apache.cxf.systest.provider.ProviderClientServerTest
> testSOAPMessageModeDocLit(org.apache.cxf.systest.provider.ProviderClientServerTest) 
Time elapsed: 0.633 sec  <<< FAILURE!
> java.lang.AssertionError
>         at org.apache.cxf.systest.provider.ProviderClientServerTest.testSOAPMessageModeDocLit(
> {code}
> Do we have a CI build for java 9 that runs all the tests? Thanks!

This message was sent by Atlassian JIRA

View raw message