Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4367783

Interoperability failure with arrays of Java char

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.2
    • other-libs
    • x86
    • windows_nt



      Name: md23716 Date: 09/01/2000

      The failures below are seen when interoperating between rmi-iiop and idl-java
      clients and servers.
      Also, elements get missed from passed wchar arrays.

      The rmi-iiop implementation (in ValueHandler) is incorrectly
      marshalling/unmarshalling arrays of Java char as single octet chars.

      Fixing this problem renders the ORB incompatible with previous versions.


      rmi client running with idl server---------------------------------------------

      >java -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory ClientImpl
      java.rmi.MarshalException: CORBA MARSHAL 1398079496 Maybe; nested exception is:
              org.omg.CORBA.MARSHAL: minor code: 1398079496 completed: Maybe

      org.omg.CORBA.MARSHAL: minor code: 1398079496 completed: Maybe
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:237)
        at com.sun.corba.se.internal.iiop.ReplyMessage.getSystemException(ReplyMessage
      .java:93)
        at com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(Client
      ResponseImpl.java:82)
        at com.sun.corba.se.internal.corba.ClientDelegate.invoke(ClientDelegate.java:1
      91)
        at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:294)
        at _Server_Stub.char_in(Unknown Source)
        at ClientImpl.main(ClientImpl.java:16)

      idl client running with rmi server---------------------------------------------

      >java -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory ClientImpl
      org.omg.CORBA.MARSHAL: minor code: 1398079496 completed: Maybe
        at com.sun.corba.se.internal.iiop.IIOPInputStream.grow(IIOPInputStream.java:11
      6)
        at com.sun.corba.se.internal.iiop.CDRInputStream.alignAndCheck(CDRInputStream.
      java:205)
        at com.sun.corba.se.internal.iiop.CDRInputStream.read_wchar(CDRInputStream.jav
      a:260)
        at com.sun.corba.se.internal.iiop.CDRInputStream.read_wchar_array(CDRInputStre
      am.java:1448)
        at org.omg.boxedRMI.seq1_wcharHelper.read_value(seq1_wcharHelper.java:77)
        at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.jav
      a:1079)
        at org.omg.boxedRMI.seq1_wcharHelper.read(seq1_wcharHelper.java:69)
        at _ServerStub.char_return(_ServerStub.java:50)
        at ClientImpl.main(ClientImpl.java:19)


      Testcases are available, but consist of 30+ files. Contact me for a zip file if required.

      ======================================================================

            eandersosunw Everett Anderson (Inactive)
            mdevereuorcl Michelle Devereux (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: