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 1B7418B9E3B for ; Tue, 1 Feb 2005 07:15:34 +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 20179-07 for ; Tue, 1 Feb 2005 07:15:31 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 919878B9E35 for ; Tue, 1 Feb 2005 07:15:31 +0000 (GMT) Received: (qmail 5716 invoked by uid 1112); 1 Feb 2005 07:15:30 -0000 Date: Tue, 1 Feb 2005 02:15:30 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: "Kolli, Kishore" Cc: "'pgsql-jdbc@postgresql.org'" Subject: Re: Postgresql 8.0, Tomcat 5.5 postgresql-8.0.309.jdbc3.jar In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/2 X-Sequence-Number: 12182 On Mon, 31 Jan 2005, Kolli, Kishore wrote: > I am trying to upgrade a web app running postgres7.3, tomcat 4.1 to the > above environment. I have installed the new postgres 8.0 port and the > postgresql as a service under user postgres. I can deploy the application to > tomcat and everything seems to be running ok until I try to open a database > session. The program gets kicked out with no exceptions. ( I have the open > session method sandwiched in a try-catch clause and there is also finally > segment). As soon as I try to open a db session, the program goes to finally > clause with no exception thrown and when looked into the postgres log, I see > the following error message > > "2005-02-01 00:23:55 LOG: could not receive data from client: No connection > could be made because the target machine actively refused it. > 2005-02-01 00:23:55 LOG: unexpected EOF on client connection" > The server code in question (src/backend/libpq/pqcomm.c) explains why no error is sent to the client. Why the error happens in the first place is beyond me though. Kris Jurka r = secure_read(MyProcPort, PqRecvBuffer + PqRecvLength, PQ_BUFFER_SIZE - PqRecvLength); if (r < 0) { if (errno == EINTR) continue; /* Ok if interrupted */ /* * Careful: an ereport() that tries to write to the client * would cause recursion to here, leading to stack overflow * and core dump! This message must go *only* to the * postmaster log. */ ereport(COMMERROR, (errcode_for_socket_access(), errmsg("could not receive data from client: %m"))); return EOF; }