JDBC problem

imcharlie

New Member
One day night, database had an error when restart.
The error message told me "port 2542 has been used".
The port, 2542, was used by unknown process.

I wrote a java program checks database health through JDBC every day.
It will sent SMS if it finds problem in database.
In that day, database didn't start and my checking program neither.
So it didn't sent SMS to me in time.

I checked the program in the morning.
I find out the "checking program" hang in "DriverManager.getConnection".
It can not continue checking and can not sent SMS.

My issue:
1. Why JDBC will be hang when getConnection to a port that listens by other process(not progress db).
2. How to solve it.

DB: progress 91d
OS: windows 2003
Java: JDK 1.5

Thanks in advance.
 
Back
Top