• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI - simultaneous requests prob

 
Ryan Acc
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an RMI server which runs a printing service, and it accepts print requests from many clients.

However, whenever the requests involve large files i.e. 20Mb word documents, and there are say 4 clients making these large requests simultanouesly, i get the following exception from some clients that are trying to call the remote server:

Error occurred while accessing remote service
java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.net.SocketException: Software caused connection abort: socket write error

Can anyone tell me why this is happening and how to over come it??

Many thanks
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know for sure, but I have a few guesses. How are you transferring the files that you are printing? If you're transferring the file all in one piece, it could be that transferring a 20MB file takes so long that any requests after it time out.

How do you handle multiple requests? Is there any kind of callback to the client, or does the client just dump everything over to the server in one method call?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!