Hi!<br>I am using omniOrb 4.0.7 to communicate with a client which uses Java 1.5. <br>I have two problems:<br>* idlj 3.2 (in Java 1.5) generated stubs does not work with omniorb at all<br>* idlj 3.1 (in Java 1.4) generated stubs in Java
1.5 sometimes generates a COMM_FAILURE exception.<br><br>The first problem seem to be that Java idlj 3.2 generates different id:s for some objects.<br><br>An idl like this:<br>module Mod {<br> struct Str {<br> boolean bool;
<br> };<br>};<br><br>generates "IDL:Mod/Str:1.0" or "IDL:Mod/Str/Str:1.0" depending on the idlj version:<br><br>--- j2sdk1.4.2_10/StrHelper.java 2006-02-14 15:00:20.356804800 +0100<br>+++
jdk1.5.0_06/StrHelper.java 2006-02-14 15:00:19.926185600 +0100<br>@@ -3,14 +3,14 @@<br><br> /**<br> * Mod/StrHelper.java .<br>-* Generated by the IDL-to-Java compiler (portable), version "3.1"<br>+* Generated by the IDL-to-Java compiler (portable), version "
3.2"<br> * from test.idl<br> * den 14 februari 2006 kl 15:00 CET<br> */<br><br> abstract public class StrHelper<br> {<br>- private static String _id = "IDL:Mod/Str:1.0";<br>+ private static String _id = "IDL:Mod/Str/Str:
1.0";<br><br> public static void insert (org.omg.CORBA.Any a, Mod.Str that)<br> {<br><br><br>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...
<br><br>OmniOrb writes:<br>omniORB: To endpoint: giop:tcp:<a href="http://127.0.0.1:1840/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1:1840</a>. Send GIOP 1.2 MessageError because a protocol error has been detected. Connection is closed.
<br><br>Java writes:
<br>org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 208 completed: Maybe <br>at com.sun.corba.se.impl.logging<div id="mb_0">.ORBUtilSystemException.connectionAbort(Unknown Source) <br>at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectionAbort
(Unknown Source) <br>at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.readBits(Unknown Source) <br>at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.handleEvent(Unknown Source) <br>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 <br>at com.sun.corba.se.impl.logging.ORBUtilSystemException.ioexceptionWhenReadingConnection(Unknown Source) <br>at com.sun.corba.se.impl.logging.ORBUtilSystemException.ioexceptionWhenReadingConnection
(Unknown Source) <br>at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.readGIOPHeader(Unknown Source) <br>at com.sun.corba.se.impl.transport.CorbaContactInfoBase.createMessageMediator(Unknown Source) ... 3 more Caused by:
java.io.IOException: End-of-stream <br>at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.readFully(Unknown Source) <br>at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.read(Unknown Source) ... 5 more
<br><br><p>Any ideas on how to proceed with these problems are greatly appreciated...</p><br><p><br></p><p><br></p>
</div>