pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Intermittent I/O error?
2+ messages / 2 participants
[nested] [flat]

* Intermittent I/O error?
@ 2005-09-29 20:03  Vsevolod (Simon) Ilyushchenko <simonf@cshl.edu>
  0 siblings, 1 reply; 2+ messages in thread

From: Vsevolod (Simon) Ilyushchenko @ 2005-09-29 20:03 UTC (permalink / raw)
  To: pgsql-jdbc

Hi,

I'm getting intermittent infamous errors:

Class: com.romeblack.release.core.EntityHomeException: An I/O error 
occured while sending to the backend.
Exception: java.net.SocketException: Socket closed
Stack Trace:
java.net.SocketException: Socket closed
     at java.net.SocketInputStream.socketRead0(Native Method)
     at java.net.SocketInputStream.read(SocketInputStream.java:129)
     at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
     at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
     at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:241)
     at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1122)
     at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:175)
     at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:389)

These errors don't always occur - sometimes I'm able to run and test the 
entire application without ever running into them.

I'm using Tomcat 5.5.9 and JDBC 2 driver 8.0-312 connecting to an 8.0.3 
database on Fedora 4.

What can I do to fix this problem?

Thanks,
Simon
-- 

Simon (Vsevolod ILyushchenko)   simonf@cshl.edu
				http://www.simonf.com

Terrorism is a tactic and so to declare war on terrorism
is equivalent to Roosevelt's declaring war on blitzkrieg.

Zbigniew Brzezinski, U.S. national security advisor, 1977-81



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Intermittent I/O error?
@ 2005-09-29 23:27  Oliver Jowett <oliver@opencloud.com>
  parent: Vsevolod (Simon) Ilyushchenko <simonf@cshl.edu>
  0 siblings, 0 replies; 2+ messages in thread

From: Oliver Jowett @ 2005-09-29 23:27 UTC (permalink / raw)
  To: Vsevolod (Simon) Ilyushchenko <simonf@cshl.edu>; +Cc: pgsql-jdbc

Vsevolod (Simon) Ilyushchenko wrote:

> Class: com.romeblack.release.core.EntityHomeException: An I/O error
> occured while sending to the backend.
> Exception: java.net.SocketException: Socket closed

This means you're trying to use a Connection that has had close() called
on it, or that has encountered a fatal I/O error previously (this would
have been reported via throwing an appropriate SQLException) that you
ignored.

> I'm using Tomcat 5.5.9 and JDBC 2 driver 8.0-312 connecting to an 8.0.3
> database on Fedora 4.

I guess you are using connection pooling then; I'd suspect some problem
there.

-O



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-09-29 23:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-09-29 20:03 Intermittent I/O error? Vsevolod (Simon) Ilyushchenko <simonf@cshl.edu>
2005-09-29 23:27 ` Oliver Jowett <oliver@opencloud.com>

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