• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.rmi.MarshalException  RSS feed

 
Vinod Chandana
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I am having problem with RMI. I am aware that marshalexception may rise when an unsynchronized object is sent. But I have no clue abt this. Becos I was able to send the object, and pretty sure that the objects I have used are serializable. Ne suggestions?? (I was able to write the object sent to a file.)
Thanks,
Vinod.
 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it looks like you are losing your socket connection. That doesn't sound so much like a marshalling/serializing problem as a networking thing. Any other info on when this occurs in your program (as soon as it starts, during the registry lookup, when you try to invoke a remote method?)
gonna need more info
Chris
 
Vinod Chandana
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chris,
I know this sounds funny, but it works when the server n client both r on unix or on windows platforms.
Thanks,
Vinod.
 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm Im not sure what to make of that bit of info... I use cross platform RMI all the time with no problems... Well i use linux server with windows client... haven't had to go the other way. are they individual unix/windows boxes? By that I mean have you tried different combinations of computers with slightly different setups or are they all clones of each other?
I'm not much help here I know... any other info you can give me?
Chris
 
Vinod Chandana
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for the reply. I have got this to work on two different windows xp systems. I was also able to get to work on two different unix machines. But the server is on windows machine and client is on unix machine or vice versa, it doesnt work. Currently using it on homogeneous systems.
Thanks,
Vinod.
 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the current windows server that won't work with the unix box the same one that you tested with a windows box and had it work or is it a different one?
My only suggestion be that you try each of these 2 machines that aren't operating together with different machines with the same OS. OK, thats confusing... essentially I would try to rule out either the server or the client as having a problem. You may have done that already, if you were using these same machines in the same OS tests you ran before.
Does this error you first listed show up immediately like its never making the connection, or is it dropping out after already having a connection? From the error code, it looks like its nevr getting a connection. here is my connection code just so you can see what I do that works accessing a linux server from a win client:

Not sure what else I can suggest... It almost sounds like OS issues rather than java. Post here with any other info you can come up with.
Can you do a test on your server connection in your client before you actually try to use it? Might be interesting to know whether java thinks it has set up the connection to the server before this error occurs or whether its just not getting setup right. That might give you a solution path to follow up on.
Chris
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!