jsp hangs because [java.io.IOException: Broken pipe]
yo nara
Ranch Hand
Joined: Apr 03, 2002
Posts: 35
posted
0
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: 238
posted
0
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. Thanks, Saurabh
Success is not doing extraordinary things but doing ordinary things extraordinarily well.
yo nara
Ranch Hand
Joined: Apr 03, 2002
Posts: 35
posted
0
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
posted
0
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
posted
0
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.
Bhuvana
yo nara
Ranch Hand
Joined: Apr 03, 2002
Posts: 35
posted
0
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