Hi,
I have try what you told me ,but the exception still exits.
With RMI what is actually returned is the Stub, therefore you need to cast to the DataAccess interface when you get the object in your client.
Maybe the error came from what you said.
I've tried like:
DataInterface remote;
...
remote= (DataInterface)factory.getConnection();
But it still showed that exception.
Why?What's wrong?