aspose file tools*
The moose likes Servlets and the fly likes unable to decipher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "unable to decipher" Watch "unable to decipher" New topic
Author

unable to decipher

Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
hi all
unable to understand why my site is showing the following error sometimes, it gets solved if i upload the same servlet again...
plz tell me...
error is :
"Communication link failure : java.io.IOException"
tia
malhar
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
Where do you see that error message?
Does the servlet do anything besides serve plain HTML? Especially - does it talk to a database?
Bill
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

It really helps to see more than just the top line of the stack trace.

But I googled it, and William is probably on the right track by asking about databases. Read the following exchange.. keep clicking the "Next Message" link.
http://www.kpi.com.au/jbossarchive/0010/0007.html

There conversation was fairly low-level, and you'd be at the mercy of your db pool provider for a fix, as this is where the problem was (in the link I provided for you).
Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
Originally posted by William Brogden:
Where do you see that error message?
Does the servlet do anything besides serve plain HTML?
Especially - does it talk to a database?
Bill

Exactly..it does talk to a database while providing plain HTML...some sort of db pooling error..?? One more thing..i m using Apache Web Server & mySQL...
malhar
[ April 12, 2002: Message edited by: malhar barai ]
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

While I was googling, I found a different discussion about the mmmysql driver (the most popular one, I think).

The poster seemed to think that driver doesn't always check to make sure the connection hasn't timed out, before it attempts to use it.

So that's an error in the driver, not your code. So try the latest version of your driver, and the latest version of any connection pooling software you might be using.

p.s. I googled "Communication link failure : java.io.IOException", and here's an example of a hit that talks about the mysql driver...
http://lists.mysql.com/cgi-ez/ezmlm-cgi?6:mss:3575:200204:bbbfkbceahhgkckikomn

This is why I said that it's handy to see the whole stack trace... as you'll see on that page, it's clear the error comes from the mm driver.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to decipher