jQuery in Action, 3rd edition
The moose likes JSP and the fly likes jsp hangs because [java.io.IOException: Broken pipe] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp hangs because [java.io.IOException: Broken pipe]" Watch "jsp hangs because [java.io.IOException: Broken pipe]" New topic

jsp hangs because [java.io.IOException: Broken pipe]

yo nara
Ranch Hand

Joined: Apr 03, 2002
Posts: 35
The application throws th above exception and Netscape browser hangs.
what is cause of this exception?Is there any solution for that?

thanks in advance
Saurabh Agrawal
Ranch Hand

Joined: Oct 07, 2003
Posts: 244
Hello yogi,

The expetion which you are getting i.e. java.io.IOException: Broken pipe, occurs when you are accessing a remore server which is down.
That is your client is trying to access the services of the server bur server is down.
I think this would help you.

Success is not doing extraordinary things but doing ordinary things extraordinarily well.
yo nara
Ranch Hand

Joined: Apr 03, 2002
Posts: 35
the server is not down .I can access other pages .
so might be other reason(just guess).
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Can't guess like that. Post the code of page from where you are getting this exception.
Boon Subra
Ranch Hand

Joined: Jul 18, 2001
Posts: 69
Hi Yogi,

There could be 2 reasons:

1. chances that some of your connections are left open w/o closing.Which after number of access, the database would have reached the extent.

2. Your connection is getting cut when you leave your server idle for few hours. Try to write a thread servlet that access any table every few interval.This can avoid broken pipe error.

yo nara
Ranch Hand

Joined: Apr 03, 2002
Posts: 35
Actually the person who has written code has not used printStackTrace() method.and the system is japanese so it gives error messages in japanese.
also it takes time to generate errors.
so I need to change the code and find the place where error occurs.
so first I will try with the suggestion given just now.because it seems that both the criteria are matching.
thank you very much for help
I agree. Here's the link: http://aspose.com/file-tools
subject: jsp hangs because [java.io.IOException: Broken pipe]
It's not a secret anymore!