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

Grzegorz Grzybek commented on CXF-7054:
---------------------------------------

I know what's happening (sort of). With {{\--patch-module java.corba=xxx}}, we 
actually use jacorb's ORB class. which uses jacorb's class for default ORB 
class name.
after this diff:
{noformat}
diff --git a/systests/uncategorized/pom.xml b/systests/uncategorized/pom.xml
index e5a8380..fdff3de 100644
--- a/systests/uncategorized/pom.xml
+++ b/systests/uncategorized/pom.xml
@@ -457,6 +457,9 @@
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-surefire-plugin</artifactId>
                         <configuration>
+                            <systemPropertyVariables>
+                                
<org.omg.CORBA.ORBClass>com.sun.corba.se.impl.orb.ORBImpl</org.omg.CORBA.ORBClass>
+                            </systemPropertyVariables>
                             <argLine>
                                 ${cxf.surefire.fork.vmargs}
                                 --patch-module java.corba=target/java9-jacorb
{noformat}
I brought back SUN's ORB implementation and got back to these failures:
{noformat}
Results :

Failed tests: 
  
CORBADocLitClientTypeTest>AbstractTypeTestClient.testUnsignedShort:244->Assert.assertEquals:118->Assert.failNotEquals:834->Assert.fail:88
 testUnsignedShort(): Incorrect value for out param expected:<65535> but 
was:<-1>

Tests in error: 
  CORBADocLitClientTypeTest>AbstractTypeTestClient2.testAnonymousStruct:260 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient.testBase64Binary:1349 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient2.testBoundedArray:397 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient3.testChoiceWithBinary:1444 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient.testColourEnum:1429 » 
WebService
  CORBADocLitClientTypeTest>AbstractTypeTestClient2.testCompoundArray:490 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient.testDecimal:1139 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient.testDecimalEnum:1524 » 
WebService
  
CORBADocLitClientTypeTest>AbstractTypeTestClient3.testDerivedEmptyBaseEmptyAll:538
 » CorbaBinding
  
CORBADocLitClientTypeTest>AbstractTypeTestClient3.testDerivedEmptyBaseEmptyChoice:567
 » CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient2.testEmptyAll:792 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient2.testEmptyChoice:722 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient2.testFixedArray:364 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient.testHexBinary:1324 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient5.testMixedArray:453 » 
CorbaBinding
  
CORBADocLitClientTypeTest>AbstractTypeTestClient3.testMultipleOccursSequenceInSequence:1361
 » CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient.testNMTokenEnum:1557 » 
WebService
  CORBADocLitClientTypeTest>AbstractTypeTestClient2.testNestedArray:533 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient.testNumberEnum:1461 » 
WebService
  CORBADocLitClientTypeTest>AbstractTypeTestClient2.testSimpleChoice:765 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient3.testStructWithBinary:1401 » 
CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient2.testStructWithNillables:219 
» CorbaBinding
  CORBADocLitClientTypeTest>AbstractTypeTestClient2.testUnboundedArray:452 » 
CorbaBinding
{noformat}

I wonder if jacorb revealed some problems with SUN's implementation?
Looks like failures like "Caused by: org.omg.CORBA.BAD_PARAM: Illegal enum 
member name: a b c" with Jacorb are _better_ than:
{noformat}
Caused by: java.lang.ClassCastException: 
org.apache.cxf.binding.corba.runtime.CorbaStreamableImpl (in module: Unnamed 
Module) cannot be cast to java.math.BigDecimal (in module: java.base)
        at 
com.sun.corba.se.impl.corba.TCUtility.marshalIn(java.corba@9-internal/TCUtility.java:158)
        at 
com.sun.corba.se.impl.corba.AnyImpl.write_value(java.corba@9-internal/AnyImpl.java:613)
        at 
com.sun.corba.se.impl.corba.RequestImpl.doInvocation(java.corba@9-internal/RequestImpl.java:312)
        at 
com.sun.corba.se.impl.corba.RequestImpl.invoke(java.corba@9-internal/RequestImpl.java:246)
        at 
org.apache.cxf.binding.corba.CorbaConduit.buildRequest(CorbaConduit.java:194)
...
{noformat}
or
{noformat}
Caused by: org.omg.CORBA.MARSHAL: 
        at 
com.sun.corba.se.impl.logging.ORBUtilSystemException.endOfStream(java.corba@9-internal/ORBUtilSystemException.java:6890)
        at 
com.sun.corba.se.impl.logging.ORBUtilSystemException.endOfStream(java.corba@9-internal/ORBUtilSystemException.java:6912)
        at 
com.sun.corba.se.impl.encoding.BufferManagerReadStream.underflow(java.corba@9-internal/BufferManagerReadStream.java:112)
        at 
com.sun.corba.se.impl.encoding.CDRInputStream_1_1.grow(java.corba@9-internal/CDRInputStream_1_1.java:93)
        at 
com.sun.corba.se.impl.encoding.CDRInputStream_1_2.alignAndCheck(java.corba@9-internal/CDRInputStream_1_2.java:98)
        at 
com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_long(java.corba@9-internal/CDRInputStream_1_0.java:494)
        at 
com.sun.corba.se.impl.encoding.CDRInputStream.read_long(java.corba@9-internal/CDRInputStream.java:151)
        at 
com.sun.corba.se.impl.corba.TCUtility.unmarshalIn(java.corba@9-internal/TCUtility.java:214)
        at 
com.sun.corba.se.impl.corba.AnyImpl.read_value(java.corba@9-internal/AnyImpl.java:590)
        at 
com.sun.corba.se.impl.corba.RequestImpl.unmarshalReply(java.corba@9-internal/RequestImpl.java:365)
        at 
com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleDIIReply(java.corba@9-internal/CorbaMessageMediatorImpl.java:476)
        at 
com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(java.corba@9-internal/CorbaClientRequestDispatcherImpl.java:668)
        at 
com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(java.corba@9-internal/CorbaClientRequestDispatcherImpl.java:373)
        at 
com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(java.corba@9-internal/CorbaClientDelegateImpl.java:148)
        at 
com.sun.corba.se.impl.corba.RequestImpl.doInvocation(java.corba@9-internal/RequestImpl.java:325)
        at 
com.sun.corba.se.impl.corba.RequestImpl.invoke(java.corba@9-internal/RequestImpl.java:246)
        at 
org.apache.cxf.binding.corba.CorbaConduit.buildRequest(CorbaConduit.java:194)
...
{noformat}
or
{noformat}
Caused by: java.lang.NullPointerException: null
        at 
com.sun.corba.se.impl.corba.AnyImpl.write_value(java.corba@9-internal/AnyImpl.java:610)
        at 
com.sun.corba.se.impl.corba.RequestImpl.doInvocation(java.corba@9-internal/RequestImpl.java:312)
        at 
com.sun.corba.se.impl.corba.RequestImpl.invoke(java.corba@9-internal/RequestImpl.java:246)
        at 
org.apache.cxf.binding.corba.CorbaConduit.buildRequest(CorbaConduit.java:194)
...
{noformat}

with Sun implementation...

> CORBADocLitClientTypeTest failed with java9
> -------------------------------------------
>
>                 Key: CXF-7054
>                 URL: https://issues.apache.org/jira/browse/CXF-7054
>             Project: CXF
>          Issue Type: Sub-task
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to