Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VisiBroker problem

0 views
Skip to first unread message

Gareth Carroll

unread,
Jun 29, 2000, 3:00:00 AM6/29/00
to
Hi all,

I am working on a project that is seriously considering using VisiBroker as our
ORB. To this end I downloaded a demonstration copy a week or so ago and can run
the sample programs without problems.

However, I have encountered a problem. The problem involves some of the
functions generated by the idl2java compiler supplied with VisiBroker. I have a
method, with an in parameter and an out parameter, the IDL for which is clearly
defined and has already been used by a different project within my organisation
with a different ORB with no problems. However, when I compile the idl using
idl2java, and attempt to implement one of the objects, I get an Object Adaptor
Exception!

I hope someone out there can help with this problem. Here is the scenario. I
have a method, createCall, which takes an ImAppCall as a parameter. Here is the
code:

try {
appCallImpl = new ImAppCallImpl();
}
catch( Exception e ) {
e.printStackTrace();
}

System.out.println( "appCallImpl.this = " + appCallImpl._this() );

gccs.TmCallIdentifierHolder callIdentifier =
new gccs.TmCallIdentifierHolder( );

// Create the call
ccm.createCall( appCallImpl._this(), callIdentifier );

The appCallImpl is declared to be of type ImAppCallImpl. As I have implemented
the ImAppCall interface using the ImAppCallImpl (which inherits from
ImAppCallPOA, which is generated by the idl2java program), then I pass into the
createCall method "appCallImpl._this()".

When running this I get the following stack trace:

org.omg.CORBA.OBJ_ADAPTER: The Servant's Delegate has not been set minor code:
0 completed: No
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(RuntimeException.java:47)
at org.omg.CORBA.SystemException.<init>(SystemException.java:49)
at org.omg.CORBA.OBJ_ADAPTER.<init>(OBJ_ADAPTER.java:70)
at org.omg.CORBA.OBJ_ADAPTER.<init>(OBJ_ADAPTER.java:49)
at org.omg.PortableServer.Servant._get_delegate(Servant.java:13)
at org.omg.PortableServer.Servant._this_object(Servant.java:23)
at gccs.ImAppCallPOA._this(ImAppCallPOA.java:20)
at client.main(client.java:50)
** - The Servant's Delegate has not been set

Here is the IDL for the createCall method:

void createCall(
in ImAppCall appCall,
out TmCallIdentifier callIdentifier)

I would be extremely grateful for any ideas you might have to help me solve this
problem. It is extremely frustrating, because another project within my
organisation used exactly the same IDL, but used JACORB, and didn't appear to
come across this problem!


Thanks,

Gareth

0 new messages