[omniORB] Problem with omniNames and Java client

Michael J. Donahue mdonahue@McLeodUSA.com
Wed, 9 Aug 2000 13:03:58 -0500




Lenny -

For what it is worth we saw a similar problem on AIX.  It
turned out that the IBM port of the Java SDK was
incorrectly giving omniNames a higher GIOP version
number than omniNames (omniORB 2.8.0) allow for.
IBM ended up putting a fix in the their port of the Java
SDK to it have properly start with a base GIOP version
number.  You could do an IP trace an see if the GIOP
version that your Java SDK is providing is compliant.

Hope this helps,

- Mike Donahue






Lenny Palozzi <domain@twister.ica.net> on 08/09/2000 12:23:33 PM

Please respond to domain@ica.net

To:   "omniorb-list@uk.research.att.com" <omniorb-list@uk.research.att.com>
cc:    (bcc: Michael J. Donahue/MCLEOD)
Subject:  [omniORB] Problem with omniNames and Java client




Hi there,

I'm having the following problem using omniNames with the eg3_impl and a
Java client similar to eg3_clt(Java 2 v1.3.0). I found that my Java
client _works_ when I use the Java naming service(tnameserv) instead of
omniNames.

+[E:\omnitest]> java HelloClient -ORBInitialPort 2809
ERROR : java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
        at com.sun.corba.se.internal.util.Utility.bytesToInt(Unknown
Source)
        at
com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(Unknown
Source)
        at
com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(Unknown
Source)
        at
com.sun.corba.se.internal.corba.InitialNamingClient.resolve(Unknown
Source)
        at
com.sun.corba.se.internal.corba.InitialNamingClient.cachedInitialReferences(Unknown

Source)
        at
com.sun.corba.se.internal.corba.InitialNamingClient.resolve_initial_references(Unknown

Source)
        at
com.sun.corba.se.internal.corba.ORB.resolve_initial_references(Unknown
Source)
        at HelloClient.main(helloclient.java:13)

My desired setup is to run the Name Service and my server with
omniORB(not in Java with tnameserv), and my clients in Java. This
problem either lies in omniNames or Java's ORB, or my code. Anyone else
got something like this working? Any idea where the problem could be?

Thanks,
-Lenny.