Invalid Object Reference Error



Hi.  I'm trying to get a java CORBA client (using Sun's java orb) to talk
to an orbit server written in C.  I got it to work on another machine, but
now that I've transferred to the machine I'm currently developing on, it
has stopped working.  The server seems to start correctly, but when I pass
the IOR to the java client, it chokes.  I currently have both the client
and the server running on the same machine for testing.

My client is crashing with the following exception:

Error: org.omg.CORBA.INV_OBJREF:   minor code: 1398079489  completed: No
org.omg.CORBA.INV_OBJREF:   minor code: 1398079489  completed: No
        at com.sun.corba.se.internal.core.IOR.getProfile(IOR.java:285)
        at com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(CDRInputStream.java:586)
        at com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(CDRInputStream.java:572)
        at com.sun.corba.se.internal.corba.ORB.string_to_object(ORB.java:1017)
        at SLLightsServant.<init>(SLLightsServer.java:26)
        at SLLightsServer.main(SLLightsServer.java:45)

The IOR that my server is spitting out is:
IOR:010000001100000049444c3a5046526f757465723a312e30000e050801000000caaedfba5000000001010000290000002f746d702f6f726269742d62696c6c2f6f72622d31353639393633353235313530363734323836330000000018000000000000009810ac8446c489b8010000002576b3ceaab60208

The output of ior-decode for this IOR is:

Tags known:
TAG_INTERNET_IOP: 0x0
TAG_MULTIPLE_COMPONENTS: 0x1
TAG_ORBIT_SPECIFIC: 0xbadfaeca

Object ID: IDL:PFRouter:1.0
Profile count: 1

Profile type: TAG_ORBIT_SPECIFIC
Object endian: Little
IIOP version: 1.0
Socket path: /tmp/orbit-bill/orb-15699635251506742863
IPv6 port: 0

Object key: "........F.......%v......"

And finally, my .orbitrc file contains the following:

-ORBIIOPUSock=1
-ORBIIOPIPv4=1
-ORBIIOPIPv6=0


I'd appreciate any help I can get, because this has succeeded in getting me
very frustrated.  Thanks.

BTW, I don't know what version was running on the other machine, since I
don't currently have access to it, but I'm running java 1.3.0_02 and
ORBit-0.5.7 (I've also tried ORBit-0.5.3) on my current machine.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]