• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI marshalling arguments error

 
Colin Poel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all. Java/RMI noob here
I'm having a problem using RMI from my web server to call RMI methods from another web server. The server I'm connecting to is running on BEA Weblogic, and my server runs on Apache Tomcat(4.0.6), both using the same jdk(1.31).
I can get a session from the server(not httpsession, but their own special session) and connect to it no problem, but when I try to use it to get data from the server, I get the following error:
java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.net.SocketException: Connection aborted by peer: socket write error

I've write a client app and used the same method calls they work no problem. I can get data, manipulate it, etc... , but when I try to use these same calls from with in my web server, I get error above. I've tried with the web server I'm trying to connect to to make RMI calls on, locally, and on another machine on the network. Is there something special I have to set up in my web server/java code to be able to do this???
Any help, ideas, suggestions would be appreicated.
Thx,
Colin
 
Vinod Chandana
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I had a similar problem. I made sure that the rmic and java versions are the same on both client and server. I've had problems making cross-platform-rmi calls.
Regards,
Vinod.
 
jay jain
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
We faced this problem and the solution lies in ensuring that there is no space in the Tomcat install directory. Like "Tomcat 4.0" won't work. Ensure no spaces. Use "Tomcat" preferably. ... !!!
Check these out...
http://archives.real-time.com/pipermail/tomcat-users/2001-December/051778.html
http://www.mail-archive.com/tomcat-dev%40jakarta.apache.org/msg17201.html
Cheers,
Jay.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!