pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: RoopaHC <roopa.chandrasekharaiah@hp.com>
To: pgsql-jdbc@postgresql.org
Subject: org.postgresql.util.PSQLException: An I/O error occured while sending to the backend.
Date: Wed, 20 Jun 2012 12:04:43 -0700 (PDT)
Message-ID: <1340219083220-5713647.post@n5.nabble.com> (raw)


Hi all I am getting  an error as following in my client application

org.postgresql.util.PSQLException: An I/O error occured while sending to the
backend.
	at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:283)
	at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
	at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353)
	at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:345)
	at
com.hp.bto.bsmr.common.util.HibernateUtil.getManagementDBSession(HibernateUtil.java:152)
com.hp.bto.bsmr.collection.utils.PostCollectionJobListener.jobWasExecuted(PostCollectionJobListener.java:84)
	at
org.quartz.core.QuartzScheduler.notifyJobListenersWasExecuted(QuartzScheduler.java:1881)
	at
org.quartz.core.JobRunShell.notifyJobListenersComplete(JobRunShell.java:355)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:226)
	at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.net.SocketException: Connection reset by peer: socket write
error
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
	at org.postgresql.core.PGStream.flush(PGStream.java:508)
	at
org.postgresql.core.v3.QueryExecutorImpl.sendSync(QueryExecutorImpl.java:1107)
	at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:256)
	... 14 more
	
	I have the following C3P0 settings:
	
	cpds = new ComboPooledDataSource();
				cpds.setDriverClass(BSMRCommonConstant.POSTGRES_DRIVER);
				cpds.setAcquireIncrement(5);
				cpds.setBreakAfterAcquireFailure(true);
				cpds.setAcquireRetryAttempts(20);
				cpds.setMaxPoolSize(20);
				cpds.setMaxIdleTime(60 * 10);			
				cpds.setTestConnectionOnCheckout(true);
				cpds.setAcquireRetryDelay(3000);			
	            cpds.setIdleConnectionTestPeriod(300);	
	            cpds.setTestConnectionOnCheckout(true);
	
	And in my postgres.conf file I havent modified any tcp  parameters. . It is
all 0 ther. 
	
	Please let me know whats going wrong here. I am not able to see any errors
in postgress.log as well
	
 


--
View this message in context: http://postgresql.1045698.n5.nabble.com/org-postgresql-util-PSQLException-An-I-O-error-occured-while...
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.



view thread (19+ messages)  latest in thread

Message-ID: <1340219083220-5713647.post@n5.nabble.com>
Permalink:  ../1340219083220-5713647.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1340219083220-5713647.post@n5.nabble.com

 · 

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: roopa.chandrasekharaiah@hp.com
  Subject: Re: org.postgresql.util.PSQLException: An I/O error occured while sending to the backend.
  In-Reply-To: <1340219083220-5713647.post@n5.nabble.com>
  References: <1340219083220-5713647.post@n5.nabble.com>

* 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