Exception with callback methods "org.omg.CORBA.BAD_OPERATION: The delegate has not been set!"

"Manuel Fünfrocken" <[email protected]> Thu, 18 Aug 2005 15:43:23 +0200
Newsgroups gmane.comp.corba.orbacus
Message-ID <[email protected]>
Hi again!

I`ve some trouble while implementing callback methods.

Situation:
It`s possible for an client (written in Java, uses ORBacus 4.3.0) to register on an 
server (written in C++, ORBacus 4.1.1). After registering the client will get periodicaly
updates (String Array). The server therefor calls the 

boolean callback(String[] data); 

method of the client.

(simple) Signatures of the Classes:

public class Client extends ClientStub
{
	public void callback(String[] data)
	{
		System.out.println(data[0]);
	};
	
	public void reg()
	{
		server.register(dat, this);/*(1)*/
	};

    ...
}

public class ClientStub extends org.omg.CORBA.portable.ObjectImpl implements CClient
{

}

public interface CClient
{
  public void callback(String[] data);
}


===

The client could connect to the server, he also can calls server functions without problems.
But with this code there are problems:
on (1) there is an 
org.omg.CORBA.BAD_OPERATION: The delegate has not been set!

Exception thrown.
I don`t know what to do..or how to go on..

Has anybody an advice?

Kind Regards

Manuel Fünfrocken

University of Applied Science
Saarland/Germany
 
                 

_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html