Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
yo nara
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
yo nara
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the server is not down .I can access other pages .
so might be other reason(just guess).
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't guess like that. Post the code of page from where you are getting this exception.
 
Boon Subra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic