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 E7CF153562 for ; Fri, 29 Apr 2005 09:47:36 -0300 (ADT) 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 87698-01 for ; Fri, 29 Apr 2005 12:47:35 +0000 (GMT) Received: from ns48.super-hosts.com (ns48.super-hosts.com [216.169.106.18]) by svr1.postgresql.org (Postfix) with ESMTP id 107F553561 for ; Fri, 29 Apr 2005 09:47:34 -0300 (ADT) Received: from [79.78.37.150] (210.213.216.182.pldt.net [210.213.216.182] (may be forged)) (authenticated bits=0) by ns48.super-hosts.com (8.12.10/8.12.10) with ESMTP id j3TBhltX012764 for ; Fri, 29 Apr 2005 07:43:48 -0400 Message-ID: <42722CD2.7090401@systeq.com.ph> Date: Fri, 29 Apr 2005 20:47:14 +0800 From: Kal Chung Reply-To: kal.chung@systeq.com.ph User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Q> Regarding incomplete startup packet & I/O back-end error Content-Type: multipart/alternative; boundary="------------060809010500020501000200" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.132 tagged_above=0 required=5 tests=HTML_40_50, HTML_MESSAGE, HTML_TITLE_EMPTY X-Spam-Level: X-Archive-Number: 200504/216 X-Sequence-Number: 12823 This is a multi-part message in MIME format. --------------060809010500020501000200 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I've run into a problem which I'm having a hard time fixing... quite recently I've switched from a jsp reporting scheme to one using datavision. I've field tested it for a few weeks and it was ok. However, quite recently when writing a very complex script it started creating errors on the client side which came up something like: Could not create Connection: Cannot create PoolableConnectionFactory ( An I/O error occured while reading from backend - Exception: java.net.SocketException: Connection reset Stack Trace: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:166) at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(AbstractJdbc1Connection.java:291) at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:213) at org.postgresql.Driver.connect(Driver.java:139) at ..... At first, I thought maybe it was my script... so I tried running the script from PgAdmin (at this point I haven't done anything with the connection) and the script ran fine... so I tried restarting postmaster.. which didn't work. After which I tried restarting the server, this seemed to have remedied the problem. This was a couple of days ago... now I get this message almost every time and restarting doesn't seem to help, PgAdmin likewise cannot access the database as well. I've been looking around and initially thought it may be just a jdbc problem... however when I took a look at the postmaster logs I got... 2005-04-29 20:18:56 LOG: database system was shut down at 2005-04-29 20:18:34 China Standard Time 2005-04-29 20:18:56 LOG: checkpoint record is at 0/201A178 2005-04-29 20:18:56 LOG: redo record is at 0/201A178; undo record is at 0/0; shutdown TRUE 2005-04-29 20:18:56 LOG: next transaction ID: 6344; next OID: 18598 2005-04-29 20:18:56 LOG: database system is ready 2005-04-29 20:23:47 LOG: could not receive data from client: An operation was attempted on something that is not a socket. 2005-04-29 20:23:47 LOG: incomplete startup packet 2005-04-29 20:23:48 LOG: could not receive data from client: An operation was attempted on something that is not a socket. 2005-04-29 20:23:48 LOG: incomplete startup packet I am unsure if my complex scripts had anything to do with this, however, I don't believe this that was the root of the problem. Has anyone encountered similar scenarios? -- Regards, Kal Chung // --------------060809010500020501000200 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I've run into a problem which I'm having a hard time fixing... quite recently I've switched from a jsp reporting scheme to one using datavision.  I've field tested it for a few weeks and it was ok.  However, quite recently when writing a very complex script it started creating errors on the client side which came up something like:

    Could not create Connection: Cannot create PoolableConnectionFactory (
            An I/O error occured while reading from backend - Exception: java.net.SocketException:
            Connection reset Stack Trace: java.net.SocketException:
            Connection reset at java.net.SocketInputStream.read(Unknown Source) at
            java.io.BufferedInputStream.fill(Unknown Source) at
            java.io.BufferedInputStream.read(Unknown Source) at
            org.postgresql.core.PGStream.ReceiveChar(PGStream.java:166) at
            org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(AbstractJdbc1Connection.java:291) at
            org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:213) at
            org.postgresql.Driver.connect(Driver.java:139) at
            .....

At first, I thought maybe it was my script... so I tried running the script from PgAdmin (at this point I haven't done anything with the connection) and the script ran fine... so I tried restarting postmaster.. which didn't work.  After which I tried restarting the server, this seemed to have remedied the problem.  This was a couple of days ago... now I get this message almost every time and restarting doesn't seem to help, PgAdmin likewise cannot access the database as well.  I've been looking around and initially thought it may be just a jdbc problem... however when I took a look at the postmaster logs I got...

            2005-04-29 20:18:56 LOG:  database system was shut down at 2005-04-29 20:18:34 China Standard Time
            2005-04-29 20:18:56 LOG:  checkpoint record is at 0/201A178
            2005-04-29 20:18:56 LOG:  redo record is at 0/201A178; undo record is at 0/0; shutdown TRUE
            2005-04-29 20:18:56 LOG:  next transaction ID: 6344; next OID: 18598
            2005-04-29 20:18:56 LOG:  database system is ready
            2005-04-29 20:23:47 LOG:  could not receive data from client: An operation was attempted on something that is not a socket.
            2005-04-29 20:23:47 LOG:  incomplete startup packet
            2005-04-29 20:23:48 LOG:  could not receive data from client: An operation was attempted on something that is not a socket.
            2005-04-29 20:23:48 LOG:  incomplete startup packet

I am unsure if my complex scripts had anything to do with this, however, I don't believe this that was the root of the problem.  Has anyone encountered similar scenarios? 

--
MySignature

Regards,

Kal Chung

--------------060809010500020501000200--