Hello! The issue that troubles me, is that I have RMI connection between windows PCs, and everything is working. But when I want to connect linux with windows I get the message of the topic.
***** pastebin.com/nYCuzf2n *****
you can see the RMI code
The line that seems to throw that exception is the 3nd one.
I turned the functions into something like that, without knowing if it really could work, as I have never ever played with streams allthough this is it :
******* pastebin.com/tfj1ayhB *******
Because I read that this can happen because we have bytes going over the network, so we should have then encoded in base64.
Following is the agent MACHINE that calls the previous RMI methods ( in both cases ):
****** pastebin.com/i5szUttm *******
And the PC, that starts the call to the agent machine is the "business-wise" server with this simple line :
AgentInterface agentInterface = agentClient.getAgent();
the interface has only one method execute, when this execute() is fired, everything is done on the remote machine......
That's it! Few!
Based on the fact, that I am not aware a lot about RMI connection on java, and the fact that this mechanism was built bypassing the usual rmiregistry I find in tutorials....can you suggest anything? First, is the change to 64 encoding , right one?
Also, I have to mention, placing a 32bit linux, didn't produce any errors on this!!!!!!!!
Thank you!
***** pastebin.com/nYCuzf2n *****
you can see the RMI code
The line that seems to throw that exception is the 3nd one.
I turned the functions into something like that, without knowing if it really could work, as I have never ever played with streams allthough this is it :
******* pastebin.com/tfj1ayhB *******
Because I read that this can happen because we have bytes going over the network, so we should have then encoded in base64.
Following is the agent MACHINE that calls the previous RMI methods ( in both cases ):
****** pastebin.com/i5szUttm *******
And the PC, that starts the call to the agent machine is the "business-wise" server with this simple line :
AgentInterface agentInterface = agentClient.getAgent();
the interface has only one method execute, when this execute() is fired, everything is done on the remote machine......
That's it! Few!
Based on the fact, that I am not aware a lot about RMI connection on java, and the fact that this mechanism was built bypassing the usual rmiregistry I find in tutorials....can you suggest anything? First, is the change to 64 encoding , right one?
Also, I have to mention, placing a 32bit linux, didn't produce any errors on this!!!!!!!!
Thank you!