pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kal Chung <kal.chung@systeq.com.ph>
To: pgsql-jdbc@postgresql.org
Subject: Q> Regarding incomplete startup packet & I/O back-end error
Date: Fri, 29 Apr 2005 20:47:14 +0800
Message-ID: <42722CD2.7090401@systeq.com.ph> (raw)

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
//

Message-ID: <42722CD2.7090401@systeq.com.ph>
Permalink:  ../42722CD2.7090401@systeq.com.ph/
Also on:    postgresql.org/message-id/42722CD2.7090401@systeq.com.ph

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: kal.chung@systeq.com.ph
  Subject: Re: Q> Regarding incomplete startup packet & I/O back-end error
  In-Reply-To: <42722CD2.7090401@systeq.com.ph>
  References: <42722CD2.7090401@systeq.com.ph>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox