[omniORB] Interoperability with Java 1.5 broken?

Christofer Edvardsen jcedata at gmail.com
Tue Feb 14 16:56:29 GMT 2006


Hi!
I am using omniOrb 4.0.7 to communicate with a client which uses Java 1.5.
I have two problems:
* idlj 3.2 (in Java 1.5) generated stubs does not work with omniorb at all
* idlj 3.1 (in Java 1.4) generated stubs in Java 1.5 sometimes generates a
COMM_FAILURE exception.

The first problem seem to be that Java idlj 3.2 generates different id:s for
some objects.

An idl like this:
module Mod {
        struct Str {
                boolean bool;
        };
};

generates "IDL:Mod/Str:1.0" or "IDL:Mod/Str/Str:1.0" depending on the idlj
version:

--- j2sdk1.4.2_10/StrHelper.java        2006-02-14 15:00:20.356804800 +0100
+++ jdk1.5.0_06/StrHelper.java  2006-02-14 15:00:19.926185600 +0100
@@ -3,14 +3,14 @@

 /**
 * Mod/StrHelper.java .
-* Generated by the IDL-to-Java compiler (portable), version "3.1"
+* Generated by the IDL-to-Java compiler (portable), version " 3.2"
 * from test.idl
 * den 14 februari 2006 kl 15:00 CET
 */

 abstract public class StrHelper
 {
-  private static String  _id = "IDL:Mod/Str:1.0";
+  private static String  _id = "IDL:Mod/Str/Str: 1.0";

   public static void insert (org.omg.CORBA.Any a, Mod.Str that)
   {


With the other problem I would appreciate some ideas on what might be
causing this or some hints on how to do more debugging to get more info...

OmniOrb writes:
omniORB: To endpoint: giop:tcp:127.0.0.1:1840. Send GIOP 1.2 MessageError
because a protocol error has been detected. Connection is closed.

Java writes:
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 208 completed: Maybe
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectionAbort(Unknown
Source)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectionAbort(Unknown
Source)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.readBits(Unknown
Source)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.handleEvent(Unknown
Source)
at com.sun.corba.se.impl.transport.SelectorImpl.run (Unknown Source) Caused
by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 211 completed: No
at
com.sun.corba.se.impl.logging.ORBUtilSystemException.ioexceptionWhenReadingConnection(Unknown
Source)
at
com.sun.corba.se.impl.logging.ORBUtilSystemException.ioexceptionWhenReadingConnection(Unknown
Source)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.readGIOPHeader(Unknown
Source)
at
com.sun.corba.se.impl.transport.CorbaContactInfoBase.createMessageMediator(Unknown
Source) ... 3 more Caused by: java.io.IOException: End-of-stream
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.readFully(Unknown
Source)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.read(Unknown
Source) ... 5 more

Any ideas on how to proceed with these problems are greatly appreciated...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20060214/074de373/attachment.htm


More information about the omniORB-list mailing list