Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI and broken pipe exception  RSS feed

 
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
Sheriff
Posts: 24217
38
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.
 
Do not threaten THIS beaver! Not even with this tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!