X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9B5A955112 for ; Thu, 17 Mar 2005 16:30:01 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92229-07 for ; Thu, 17 Mar 2005 16:29:54 +0000 (GMT) Received: from mail.weycogroup.com (mail.weycogroup.com [66.162.233.194]) by svr1.postgresql.org (Postfix) with ESMTP id 8FA9E56599 for ; Thu, 17 Mar 2005 16:29:53 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mail.weycogroup.com (Postfix) with ESMTP id 66F784DE11 for ; Thu, 17 Mar 2005 10:22:54 -0600 (CST) Message-ID: <4239B075.7020305@weycogroup.com> Date: Thu, 17 Mar 2005 10:29:41 -0600 From: Glenn Holmer User-Agent: Mozilla Thunderbird 1.0 (X11/20041207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: invalid string enlargement request References: <42389DFC.5090408@weycogroup.com> <4238A223.4030003@opencloud.com> In-Reply-To: <4238A223.4030003@opencloud.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200503/163 X-Sequence-Number: 12555 Sorry Oliver, this was supposed to go to the list... Oliver Jowett wrote: > Glenn Holmer wrote: >> Not sure if this is a JDBC or general Postgres question, but we're >> losing a web app's connection to Postgres with these errors: >> >> invalid string enlargement request size 1358954494 >> AbortTransaction and not in in-progress state > > This is the backend trying to allocate a very large string for some > reason, perhaps because of a silly-sized protocol message being received > or sent. Are you working with large bytea data at all? Not that I know of, this is an e-commerce package that we customized. >> invalid frontend message type 41 > > And this is the protocol stream getting out of sync, possibly because of > the above error. > >> This is with Postgres 7.4.7 and driver pg74.213.jdbc3.jar. > > Can you try with the latest (build 310) driver and see if the problem > persists? > > If so, can you send a testcase that demonstrates the problem? Or at > least the query code that fails plus the complete exception you get. We can't upgrade the driver because we get this: 2005-03-17 10:10:22,961 WARN net.sf.hibernate.util.JDBCExceptionReporter - Meth od: logExceptions - Line: 38 Message: SQL Error: 0, SQLState: 42883 2005-03-17 10:10:22,962 ERROR net.sf.hibernate.util.JDBCExceptionReporter - Meth od: logExceptions - Line: 46 Message: ERROR: operator does not exist: smallint = boolean Here is more of the log with pg74.213.jdbc3.jar: 2005-03-16 14:30:43,239 WARN net.sf.hibernate.util.JDBCExceptionReporter - Meth od: logExceptions - Line: 38 Message: SQL Error: 0, SQLState: 08S01 2005-03-16 14:30:44,273 ERROR net.sf.hibernate.util.JDBCExceptionReporter - Meth od: logExceptions - Line: 46 Message: The backend has broken the connection. Possibly the action you have att empted has caused it to close. 2005-03-16 14:30:44,278 WARN net.sf.hibernate.util.JDBCExceptionReporter - Meth od: logExceptions - Line: 38 Message: SQL Error: 0, SQLState: 08S01 2005-03-16 14:30:58,561 WARN net.sf.hibernate.util.JDBCExceptionReporter - Meth od: logExceptions - Line: 38 Message: SQL Error: 0, SQLState: XX000 2005-03-16 14:30:58,607 ERROR net.sf.hibernate.util.JDBCExceptionReporter - Meth od: logExceptions - Line: 46 Message: ERROR: invalid string enlargement request size 1358954494 a little later on, we see: 2005-03-16 14:30:59,140 ERROR net.sf.hibernate.util.JDBCExceptionReporter - Meth od: - Line: 38 Message: Could not execute query org.postgresql.util.PSQLException: ERROR: invalid string enlargement request siz e 1358954494 at org.postgresql.util.PSQLException.parseServerError(PSQLException.java :139) at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:152) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:100) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43) at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Stat ement.java:517) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stat ement.java:50) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc 1Statement.java:233) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Dele gatingPreparedStatement.java:92) at net.sf.hibernate.impl.BatcherImpl.getResultSet(BatcherImpl.java:87) at net.sf.hibernate.loader.Loader.getResultSet(Loader.java:800) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:189) The other possible culprit is that one of our developers just started using the Windows version of pgAdmin III, is that known to cause any problems? -- ____________________________________________________________ Glenn Holmer gholmer@weycogroup.com Software Engineer phone: 414-908-1809 Weyco Group, Inc. fax: 414-908-1601