Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 23, 2012, 04:38:44 PM

Pages: [1]   Go Down
  Print  
Author Topic: Communication link failure with MySQL  (Read 1075 times)
tamer
Newbie
*
Offline Offline

Posts: 4


WWW
« on: August 14, 2002, 11:47:00 PM »

Hi,

I am getting inconsistent results with MySQL when accessing it from
application code.

Sometimes things work fine, at other times I get this error
---
java.sql.SQLException: Communication link failure: java.io.IOException
---

I rigged the following page to display the error if it gets one, if
there are no errors it will have a drop down list with values retrived
from the DB.
http://www.realestatemarket.ca/forward.do?next=prejoin

I am not having probs with MySQL when using the contolpanel's phpAdmin interface, so I am assuming it is a JDBC/resin issue.

I think it would be helpful if I can have a way to get the error log
generated by resin or at least the standerout log...any ideas?

Thanks.

Later,
Tamer
Logged
Kelvin
Jabba the Hutt
*****
Offline Offline

Posts: 737



« Reply #1 on: August 15, 2002, 05:16:00 AM »

Hi Tamer,

  this is probably a code problem, not the driver - This is only a guess, but there are lots of people using the same driver and I believe there hasn't been any other reports of this.  But just in case you might like to email support and report this to them (also maybe ask them to see if there is an update for the driver).

also when testing your link I get a different error, have you removed some of the classes?
 
 [ August 15, 2002, 01:18 PM: Message edited by: EXiL3 ]
Logged

Kelvin

"Failure is not an option. It comes bundled with the software."
tamer
Newbie
*
Offline Offline

Posts: 4


WWW
« Reply #2 on: August 15, 2002, 01:46:00 PM »

I guess you might be right EXiL3.

I used to use  struts as a DB connection pool manager(among other things), and on my dev env this was working fine, now in a shared env this lead to an inconsistant situation.

So I reworked my data access logic to work independent of struts, ie getting the services directly from the VM, and now its stable.

The intresting thing is that struts, in theory should not be giving me those types of probs.

Anyway this workaround seems to be working for the time being. I will have to wait until privateVMs are available here to be able to truly codcute a post-mort on that.

Thanks for your input.. "[Smile]"
Tamer
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: