Hi there,
I am trying to transfer an object from a client to a server, do some simple computations, and return the object back to the client. But something is wrong, i cannot figure out why this doesn't work.
Code for the client class:
Server class:
And finally, the Loan class:
The problem i get when running this is that the client crash every time. After some
testing i've noticed that if i comment out line 81 in the client class (ObjectInputStream), this will prevent the crash. So i would assume the problem lies there. But i get the same code to work when i change it to stream primitive values instead of objects. Any idea what's wrong?