Has anyone had luck communicating between a java client and an ORBit
server?
I was playing around with the Service.idl example found at
http://java.sun.com/j2se/1.5.0/docs/guide/idl/INStutorial.html --

interface Service {
    void ping();
};


Current status:
Server  Client  Works?
JAVA            JAVA            Y
JAVA            ORBIT           Y
ORBIT           ORBIT           Y
ORBIT           JAVA            *** NO ***


The servers fire up and writes out an IOR.
The clients use the IOR and a string_to_object() method / call.
The complaint from the bad case appears below:

Nov 2, 2007 3:47:50 PM com.sun.corba.se.impl.ior.IORImpl getProfile
WARNING: "IOP00511201: (INV_OBJREF) IOR must have at least one IIOP
profile"
org.omg.CORBA.INV_OBJREF:   vmcid: SUN  minor code: 1201  completed: No
        at
com.sun.corba.se.impl.logging.IORSystemException.iorMustHaveIiopProfile(
Unknown Source)
        at
com.sun.corba.se.impl.logging.IORSystemException.iorMustHaveIiopProfile(
Unknown Source)
        at com.sun.corba.se.impl.ior.IORImpl.getProfile(Unknown Source)
        at
com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_Object(Unknown
Source)
        at
com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_Object(Unknown
Source)
        at
com.sun.corba.se.impl.encoding.CDRInputStream.read_Object(Unknown
Source)
        at
com.sun.corba.se.impl.resolver.INSURLOperationImpl.getIORFromString(Unkn
own Source)
        at
com.sun.corba.se.impl.resolver.INSURLOperationImpl.operate(Unknown
Source)
        at com.sun.corba.se.impl.orb.ORBImpl.string_to_object(Unknown
Source)
        at Service.INSClient.main(INSClient.java:25)
Exception in INSClient org.omg.CORBA.INV_OBJREF:   vmcid: SUN  minor
code: 1201  completed: No


The line in the java code was:
            org.omg.CORBA.Object object = orb.string_to_object(args[0]);


THANKS!

Kevin


This transmission is confidential and intended only for the use of the 
addressee(s) named above. It has been prepared solely for informational 
purposes and is not a solicitation, commitment or offer. All information is 
indicative and subject to change without notice. If the reader of this message 
is not the intended recipient you are hereby notified that any dissemination, 
distribution, copying, or other use of this transmission is strictly prohibited.
_______________________________________________
orbit-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/orbit-list

Reply via email to