cxf-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CXF-7270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15929537#comment-15929537
] 

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
com.sun.org.apache.xerces.internal.dom.ElementNSImpl, instead it store it as a field and add
a method
{code}
    public Element getDomElement() {
        return element;
    }
{code}
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
{code}
Failed tests: 
  PolicyBasedWss4JInOutTest.testEncryptedPartsPolicyWithCompleteCoverage:302->AbstractPolicySecurityTest.runInInterceptorAndValidate:152->AbstractPolicySecurityTest.runInInterceptorAndValidate:171->AbstractPolicySecurityTest.runInInterceptorAndValidate:197->AbstractPolicySecurityTest.checkAssertion:242->Assert.assertTrue:41->Assert.fail:88
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}EncryptedParts policy erroneously
failed.
  PolicyBasedWss4JInOutTest.testEncryptedSignedPartsWithCompleteCoverage:416->AbstractPolicySecurityTest.runInInterceptorAndValidate:171->AbstractPolicySecurityTest.runInInterceptorAndValidate:197->AbstractPolicySecurityTest.checkAssertion:242->Assert.assertTrue:41->Assert.fail:88
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}EncryptedParts policy erroneously
failed.
  PolicyBasedWss4JInOutTest.testSignedEncryptedPartsWithCompleteCoverage:383->AbstractPolicySecurityTest.runInInterceptorAndValidate:171->AbstractPolicySecurityTest.runInInterceptorAndValidate:197->AbstractPolicySecurityTest.checkAssertion:242->Assert.assertTrue:41->Assert.fail:88
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}EncryptedParts policy erroneously
failed.
  PolicyBasedWss4JInOutTest.testSignedPartsPolicyWithCompleteCoverage:112->AbstractPolicySecurityTest.runInInterceptorAndValidate:152->AbstractPolicySecurityTest.runInInterceptorAndValidate:171->AbstractPolicySecurityTest.runInInterceptorAndValidate:197->AbstractPolicySecurityTest.checkAssertion:242->Assert.assertTrue:41->Assert.fail:88
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SignedParts policy erroneously
failed.
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...
{code}

Still on it.

> CXF on java 9 build 159 fails
> -----------------------------
>
>                 Key: CXF-7270
>                 URL: https://issues.apache.org/jira/browse/CXF-7270
>             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(ProviderClientServerTest.java:104)
> {code}
> Do we have a CI build for java 9 that runs all the tests? Thanks!



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message