• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI marshalling arguments error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic