pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michal Politowski <mpol+pg@meep.pl>
Cc: pgsql-general@postgresql.org
Subject: Re: Mixed up protocol packets in server response?
Date: Fri, 03 Jun 2011 09:53:59 -0400
Message-ID: <25344.1307109239@sss.pgh.pa.us> (raw)
In-Reply-To: <20110603130357.GA7961@meep.pl>
References: <20110601130649.GA21333@meep.pl>
	<4DE6DE56.8030008@postnewspapers.com.au>
	<20110603130357.GA7961@meep.pl>

Michal Politowski <mpol+pg@meep.pl> writes:
> Thinking aloud: If this is, as it is to be suspected, an application-side problem,
> there is at first sight not much space in the application where it could hide. The data is
> mixed up in a driver buffer, two method calls from the standard library
> socket code. There is the VisibleBufferedInputStream there. Could it do
> something like this? Maybe if the connection was erroneously used from two threads
> concurrently? The connections are pooled via commons-dbcp BasicDataSource
> and queries are executed via Spring JdbcTemplate within Spring-configured
> transaction. No passing connections by hand anywhere, everything should be
> nicely thread-bound. Still, if not here, where could it go wrong?

You'd probably be better off asking these questions in pgsql-jdbc ...
a lot of us here don't even speak Java.

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <25344.1307109239@sss.pgh.pa.us>
Permalink:  ../25344.1307109239@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25344.1307109239@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, mpol+pg@meep.pl, pgsql-general@postgresql.org
  Subject: Re: Mixed up protocol packets in server response?
  In-Reply-To: <25344.1307109239@sss.pgh.pa.us>
  References: <20110601130649.GA21333@meep.pl> <4DE6DE56.8030008@postnewspapers.com.au> <20110603130357.GA7961@meep.pl> <25344.1307109239@sss.pgh.pa.us>

* 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