pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Travis Bauer <trbauer@indiana.edu>
To: Peter T Mount <peter@retep.org.uk>
Cc: pgsql-general@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC error in 7.0.3
Date: Tue, 17 Apr 2001 11:10:52 -0500
Message-ID: <20010417111052.A19904@ghost.cs.indiana.edu> (raw)
In-Reply-To: <987515832.3adc4bb84bafc@webmail.retep.org.uk>
References: <20010411134407.A12412@ghost.cs.indiana.edu>
	<987515832.3adc4bb84bafc@webmail.retep.org.uk>

Thanks for the reply.  I figured it out.  The previous insert 
statement before this one was including unusual character codes 
as part of a string.  This was confusing the postmaster, which would 
stop interpreting that sql statement at that character and then
for some reason confuse the next statements as part of the
previous one.  I'm not sure why this is.  I fixed the problem by
having my program "wash" all strings so no unusual characters
get through.  If you'd like to puruse this issue further I can
send you the offending string, but I have fixed this particular
problem for my purposes.

-- 
----------------------------------------------------------------
Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer
----------------------------------------------------------------

Peter T Mount (peter@retep.org.uk) wrote:

> Quoting Travis Bauer <trbauer@indiana.edu>:
> 
> > During the run of a java program connected to 7.0.3, the following
> > errors occurred:
> > 
> > insert into current_resources values (459, 0, 
> > 'http://a1829.g.akamaitech.net/6/1829/792/000/search.britannica.com/
> > images/storethumbs/T_CMB_HG_FDALRTP.jpg', '', '', 'not foundnot found 
> > the requested object does not exist on this server the link you followed
> > 
> > is either outdated inaccurate or the server has been instructed not to
> > let 
> > you have it please inform the site administrator of the referring page
> > r', 
> > 'Not Found')
> > ERROR: Unterminated quotes string
> > 
> > Error updating: insert into current_usages values (115, 459, 'trbauer',
> > 
> > CURRENT_TIMESTAMP, 0) -- java.sql.SQLException: 
> > FATAL 1:  Socket command type r unknown
> > 
> > Any subsequent attent to access the database yields:
> > 
> > An I/O error has occured while flushing the output -
> > java.io.IOException: 
> > Broken pipe
> > 
> > The problem is that the first insert statement is correct.  Other
> > statements
> > had proceeded it.  Could one of them have been the problem?  
> 
> No, the SQL looks ok. The broken pipe exceptions seem to indicate that the 
> backend is dying for some reason.
> 
> If you use psql, does the connection die if you enter the same queries?
> 
> Peter
> 
> -- 
> Peter Mount peter@retep.org.uk
> PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
> RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster






view thread (3+ messages)

Message-ID: <20010417111052.A19904@ghost.cs.indiana.edu>
Permalink:  ../20010417111052.A19904@ghost.cs.indiana.edu/
Also on:    postgresql.org/message-id/20010417111052.A19904@ghost.cs.indiana.edu

 · 

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-general@postgresql.org
  Cc: trbauer@indiana.edu, peter@retep.org.uk, pgsql-jdbc@postgresql.org
  Subject: Re: JDBC error in 7.0.3
  In-Reply-To: <20010417111052.A19904@ghost.cs.indiana.edu>
  References: <20010411134407.A12412@ghost.cs.indiana.edu> <987515832.3adc4bb84bafc@webmail.retep.org.uk> <20010417111052.A19904@ghost.cs.indiana.edu>

* 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