Closed Fr33dan closed 9 years ago
After couple of days fighting with it I finally discovered that RMI does not work until the classes ObjectSpace.InvokeMethod and ObjectSpace.InvokeMethodResult have been registered with the Kryo instance of the connection on both ends:
ObjectSpace.InvokeMethod
ObjectSpace.InvokeMethodResult
Kryo kryo = serverClient.getKryo(); kryo.register(com.esotericsoftware.kryonet.rmi.ObjectSpace.InvokeMethod.class); kryo.register(com.esotericsoftware.kryonet.rmi.ObjectSpace.InvokeMethodResult.class);
I do not know if this is intentional or if it is a bug, if it is intentional it should be listed in the documentation somewhere.
Added text. https://github.com/EsotericSoftware/kryonet/blob/master/README.md#remote-method-invocation
After couple of days fighting with it I finally discovered that RMI does not work until the classes
ObjectSpace.InvokeMethod
andObjectSpace.InvokeMethodResult
have been registered with the Kryo instance of the connection on both ends:I do not know if this is intentional or if it is a bug, if it is intentional it should be listed in the documentation somewhere.