Archived

This topic is now archived and is closed to further replies.

TreizeSG

[java] Strings and RMI?

Recommended Posts

*Looks at Java Forum people who are currently thinking "shit, not him again. will he just go away?"* No. Anyway, I''m having trouble sending Strings over an RMI connection, they''re serializable, right? If I send over "Hi, how are you?" the server translates it as "". Any ideas what is going wrong? Not much else is screwed up...

Share this post


Link to post
Share on other sites
Yes, Strings are serializable. If you''re ever in doubt on a class look at its javadoc, it will list if it implements Serializable.

Other than that, code example? Have you tried putting together a tiny program that merely sends Strings via RMI? That often shows you what''s going wrong in your real program.

Share this post


Link to post
Share on other sites
Lol, I fixed it. I was dumb, it had nothing to do with RMI. It just involved a Vector and the concat() method.

Yeah, I got the idea to look at the Javadoc AFTER i posted, i wish we could delete posts...

[edited by - TreizeSG on August 15, 2003 10:30:25 AM]

Share this post


Link to post
Share on other sites