I have rewritten the application so every client thread is opening a new database connection, and yesterday it happened again.This sort of thing has been seen to occur when multiple client-side threads try to use the same database connection without proper locking to ensure only one thread uses it at a time. See for example http://archives.postgresql.org/pgsql-hackers/2004-09/msg00104.php --- 2005-04-11 12:27:54 ERROR:Â invalid string enlargement request size 1358954492Â 2005-04-11 12:27:54 WARNING:Â AbortTransaction and not in in-progress stateÂÂÂÂ 2005-04-11 12:27:54 FATAL:Â invalid frontend message type 78ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ --- The application is opening a socket listener, and every client connection opens a new connection to the database. The clients sends a status message every 2nd minute that are written to the database. I'm using Postgresql version 7.4.7 and jdbc driver version pg74.215.jdbc3.jar. I have tried the pg80.310.jdbc3.jar but the datatype inet can't be used with setString ?? Do you have a clue on what's going on ? Poul I found this: http://jdbc.postgresql.org/documentation/80/thread.html As you are saying the jdbc driver should be thread safe, and has been since the first version. The |
- Re: [GENERAL] Loosing connection with the database Poul Møller Hansen
- Re: [GENERAL] Loosing connection with the dat... Kris Jurka
- Re: [GENERAL] Loosing connection with the... Poul Møller Hansen
