Re: DataSource suddenly drops all connections?

From: Holger Klawitter <lists(at)klawitter(dot)de>
To: Barry Lind <blind(at)xythos(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: DataSource suddenly drops all connections?
Date: 2003-02-20 11:48:30
Message-ID: 200302201242.28019.lists@klawitter.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi Barry,

> Have you tried the latest jdbc build for 7.3 from the website? There
> was a recent bug fix that looks similar to what you are reporting here.

I tried the newest version, it also created the same problem. But I discovered
something new:

The "killer" statement had a (char)0 as part of one argument. The statement
seemed to be broken up into two "packets" being sent to postgres seperately.
I am not sure whether the character originated from a parameter being sent to
the webapp or from tomcat dropping one in or even jdbc doing so (unlikely).

After the sql exception (unterminated ' constant) I got another error only in
postgres (bad socket command ') which was probably from the beginning of the
"second" packet.

This results in the jdbc driver to be utterly confused and closing all
connection sockets.

Right now I've added an input filter against char 0's ...

With kind regards / mit freundlichem Gruß
Holger Klawitter
--
Holger Klawitter http://www.klawitter.de
lists(at)klawitter(dot)de

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oleg Samoylov 2003-02-20 13:33:57 Re: SSL for JDBC
Previous Message Tomisław Kityński 2003-02-20 07:31:21 UtfToLocal: could not convert UTF-8