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

Freeman Fang edited comment on CXF-7270 at 3/10/17 7:46 AM:
------------------------------------------------------------

There are also more test failures caused by several java9 recent changes
1. module java.annotations.common is renamed as java.xml.ws.annotation[1] 
(fixed on my branch)
2. The 
com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.getDocumentElement
 not return SOAPElement anymore, it return ElementNSImpl now (fixed, we need 
adjust org/apache/cxf/binding/soap/saaj/SAAJUtils a bit)
3. com.sun.xml.internal.messaging.saaj.soap.impl.TextImpl was removed and a new 
com.sun.xml.internal.messaging.saaj.soap.impl.SOAPTextImpl is used however it 
not extends the com.sun.org.apache.xerces.internal.dom.ChildNode so we will run 
into ClassCastException like

{code}
Caused by: java.lang.ClassCastException: 
java.xml.ws/com.sun.xml.internal.messaging.saaj.soap.impl.SOAPTextImpl cannot 
be cast to java.xml/com.sun.org.apache.xerces.internal.dom.ChildNode
        at 
java.xml/com.sun.org.apache.xerces.internal.dom.ParentNode.internalInsertBefore(ParentNode.java:388)
        at 
java.xml/com.sun.org.apache.xerces.internal.dom.ParentNode.insertBefore(ParentNode.java:287)
        at 
java.xml/com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(NodeImpl.java:237)
        at 
org.apache.cxf.jaxws.interceptors.MessageModeOutInterceptor$MessageModeOutInterceptorInternal.handleMessage(MessageModeOutInterceptor.java:330)
{code} 

4. A lot of security/wss4j test failed which I didn't nail down the root cause 
yet.

Still on it.

[1]https://bugs.openjdk.java.net/browse/JDK-8173604



was (Author: ffang):
There are also more test failures caused by several java9 recent changes
1. module java.annotations.common is renamed as java.xml.ws.annotation[1] 
(fixed on my branch)
2. The 
com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.getDocumentElement
 not return SOAPElement anymore, it return ElementNSImpl now (we need adjust 
org/apache/cxf/binding/soap/saaj/SAAJUtils a bit)
3. com.sun.xml.internal.messaging.saaj.soap.impl.TextImpl was removed and a new 
com.sun.xml.internal.messaging.saaj.soap.impl.SOAPTextImpl is used however it 
not extends the com.sun.org.apache.xerces.internal.dom.ChildNode so we will run 
into ClassCastException like

{code}
Caused by: java.lang.ClassCastException: 
java.xml.ws/com.sun.xml.internal.messaging.saaj.soap.impl.SOAPTextImpl cannot 
be cast to java.xml/com.sun.org.apache.xerces.internal.dom.ChildNode
        at 
java.xml/com.sun.org.apache.xerces.internal.dom.ParentNode.internalInsertBefore(ParentNode.java:388)
        at 
java.xml/com.sun.org.apache.xerces.internal.dom.ParentNode.insertBefore(ParentNode.java:287)
        at 
java.xml/com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(NodeImpl.java:237)
        at 
org.apache.cxf.jaxws.interceptors.MessageModeOutInterceptor$MessageModeOutInterceptorInternal.handleMessage(MessageModeOutInterceptor.java:330)
{code} 

4. A lot of security/wss4j test failed which I didn't nail down the root cause 
yet.

Still on it.

[1]https://bugs.openjdk.java.net/browse/JDK-8173604


> 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
>            Priority: Minor
>
> 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)

Reply via email to