Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI and broken pipe exception

 
Gayathri Gopal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get this message java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.net.SocketException: Broken pipe
What could be the reason
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

Two programs were talking to each other, and one unexpectedly quit. You might be able to figure out more from the stack trace.
 
Leandro Coutinho
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ernest Friedman-Hill wrote:Hi,

Welcome to JavaRanch!

Two programs were talking to each other, and one unexpectedly quit. You might be able to figure out more from the stack trace.

Hi!

I'm also having this problem.
This code is in a servlet, inside the doPost method:

The error is occurring in the last line of the above code.
Question: Can I use a server through RMI using a servlet?

How can I fix this problem? Thanks very much!
 
Leandro Coutinho
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solved this problem changing the parameter type to String.
I think that the object that I was passing was too big.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic