sendToServer() - help

Can someone please layout the steps required to get the ClientConnectionManager.sendToServer() method to activate the SimUserDataListener.userDataReceived(UserID arg0, ByteBuffer arg1) callback function?

You can assume that my client is already connected to the server, and that an instance of the class that implements SimUserDataListener has already been created and registered. It has also joined a channel.

I would really appreciate the help, no matter what I do I can’t get the server to respond to messages sent from my client.

Update - Fixed

But I’m not sure exactly why the problem was fixed. Basically, it worked as soon as I deleted the persistent_store folder and rebooted the server. Can anyone help shed some light on this. Could it be because I update the functionality of the Player class so I had to remove all previous versions of them? Could it have something to do with the userID?

-Alkix

is it related to

( 1 ) Everytime I change the definition of a GLO I have to clear the object store

This is because we use Serialization for the object store. By default, Java Serialization
generates a dynamic serialVersionUID for the object from its signiture. When you make chnages to an
Object’s Class, you often chnage the signiture. The solution is to put the following in your class:

Code:

private static final long serialVersionUID = 1L;

If you use Eclipse, it will generate this for you with one click.