Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Problem with Corba Callback

Problem with Corba Callback

Problem with Corba Callback

    I am encountering a problem with Callbacks.
The server side implementation is in VB and the
client side Callback object is implemented in JDK1.3

The interface is like this.
interface Network {
void addListener(in Notifications listener)

interface Notifications {
void CreationEvent(in ObjectInfo objectInfo)

Notifications interface is implemented on the client
totally in JDK1.3

The client calls the method addListener passing the listener
object which I can see on the server side. But the server
can not identify the client Notification object whenever it has to
call CreationEvent method on it. It always throws some null pointer

The client implementation is something like this.
    NMSEventHandler extends NotificationsImplBase autogenerated by idlj

    NMSEventHandler nms_event_handler = new NMSEventHandler(network_id);

    // Bind the object reference in naming
    byte[] event_handler_name = network_id.networkName[0].id.getBytes();
    some_name = new NameComponent[] {new NameComponent(new String(event_handler_name), "")};
    name_context.rebind(some_name, nms_event_handler);
    notifications = NotificationsHelper.narrow(nms_event_handler);


and on the server side when this call is made
public class NetworkImpl extends NetworkPOA

   void addListener(Notifications listener)

Here I get java.lang.nullPointerException
I can see this object created by the client in the naming service.
The server side uses the Visibroker name service and osagent.
I hope events sent by Visibroker ORB can be received by other ORBs
like IONA orbix and SUNs.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close