Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vf5IP-0001dM-0E for pgsql-jdbc@arkaria.postgresql.org; Sat, 09 Nov 2013 09:57:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vf5IO-0003Bw-G1 for pgsql-jdbc@arkaria.postgresql.org; Sat, 09 Nov 2013 09:57:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vf5IM-0003Bn-Io for pgsql-jdbc@postgresql.org; Sat, 09 Nov 2013 09:57:34 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vf5IJ-0006HA-TA for pgsql-jdbc@postgresql.org; Sat, 09 Nov 2013 09:57:34 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id rA99vMl05625 for ; Sat, 9 Nov 2013 01:57:22 -0800 Message-ID: <527E0701.2050807@hogranch.com> Date: Sat, 09 Nov 2013 01:57:21 -0800 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: unexpected close Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org we have a inhouse Java OLTP type application thats getting unexpected errors. PostgreSQL 9.2.5 is logging... 2013-11-09 13:03:10.945 role@db[13101]: ERROR: invalid message format 2013-11-09 13:03:10.945 role@db[13101]: STATEMENT: select * from t1 where t1_id = $1 2013-11-09 13:03:10.945 role@db[13101]: FATAL: invalid frontend message type 0 2013-11-09 13:16:19.257 role@db[19291]: LOG: unexpected EOF on client connection with an open transaction 2013-11-09 13:16:34.152 role@db[19352]: LOG: unexpected EOF on client connection with an open transaction 2013-11-09 13:16:38.203 role@db[13161]: LOG: unexpected EOF on client connection with an open transaction 2013-11-09 13:17:38.995 role@db[19523]: ERROR: invalid message format 2013-11-09 13:17:38.995 role@db[19523]: STATEMENT: select * from t1 where t1_id = $1 2013-11-09 13:17:38.995 role@db[19523]: FATAL: invalid frontend message type 0 2013-11-09 13:17:40.622 role@db[19475]: ERROR: insufficient data left in message 2013-11-09 13:17:40.622 role@db[19475]: STATEMENT: select * from t1 where t1_id = $1 2013-11-09 13:17:40.622 role@db[19475]: FATAL: invalid frontend message type 0 this has been happening every few minutes, on a server thats getting sustained 100s of small transactions/second but is only maybe 10% busy peak. the clients are JDBC programs, and are getting this: java.sql.SQLException: org.postgresql.util.PSQLException: An I/O error occured while sending to the backend. ....stack dump.... Caused by: org.postgresql.util.PSQLException: An I/O error occured while sending to the backend. ....more stack dump.... Caused by: java.net.SocketException: Socket closed ....more stack dump.... the server is 9.2.5... PostgreSQL 9.2.5 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3), 64-bit but it looks like the app was packaged with a rather old JDBC, postgresql-8.3-604.jdbc3.jar our java apps do only the most basic sql APIs, all data is numbers and varchar, this jdbc worked fine with older versions. is this a error likely because of this old JDBC with the newer 9.2 server? -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc