pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Broken pipe error
5+ messages / 3 participants
[nested] [flat]

* Broken pipe error
@ 2010-09-17 20:41 admin <admin0423@homepage.kgbinternet.com>
  2010-09-17 20:49 ` Re: Broken pipe error Maciek Sakrejda <msakrejda@truviso.com>
  0 siblings, 1 reply; 5+ messages in thread

From: admin @ 2010-09-17 20:41 UTC (permalink / raw)
  To: pgsql-jdbc

With the PostgresSQL 8.0, I have experienced a broken pipe error for some
times. One new Java web application experiences this problem in every ten
day or so. This problem becomes a big problem right now for the enterprise
application. Is the jdbc driver problem or something else?

Thanks.




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

* Re: Broken pipe error
  2010-09-17 20:41 Broken pipe error admin <admin0423@homepage.kgbinternet.com>
@ 2010-09-17 20:49 ` Maciek Sakrejda <msakrejda@truviso.com>
  2010-09-17 22:11   ` Re: Broken pipe error admin <admin0423@homepage.kgbinternet.com>
  2010-09-18 02:55   ` Re: Broken pipe error Craig Ringer <craig@postnewspapers.com.au>
  0 siblings, 2 replies; 5+ messages in thread

From: Maciek Sakrejda @ 2010-09-17 20:49 UTC (permalink / raw)
  To: admin <admin0423@homepage.kgbinternet.com>; +Cc: pgsql-jdbc

On Fri, Sep 17, 2010 at 1:41 PM, admin
<admin0423@homepage.kgbinternet.com> wrote:
> With the PostgresSQL 8.0, I have experienced a broken pipe error for some
> times. One new Java web application experiences this problem in every ten
> day or so. This problem becomes a big problem right now for the enterprise
> application. Is the jdbc driver problem or something else?

I think the only possible answer to a question this vague is "maybe".

Less flippantly, we can probably help you better if you provide more
information on the types of errors you're seeing (e.g., a full stack
trace), whether your application was doing anything unusual at the
time of the error (e.g., in terms of query workload, PostgreSQL notify
messages, etc.), and anything else that might be relevant. From
watching the list, I'm not aware of any open issues leading the driver
to break a connection.

---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com



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

* Re: Broken pipe error
  2010-09-17 20:41 Broken pipe error admin <admin0423@homepage.kgbinternet.com>
  2010-09-17 20:49 ` Re: Broken pipe error Maciek Sakrejda <msakrejda@truviso.com>
@ 2010-09-17 22:11   ` admin <admin0423@homepage.kgbinternet.com>
  1 sibling, 0 replies; 5+ messages in thread

From: admin @ 2010-09-17 22:11 UTC (permalink / raw)
  To: Maciek Sakrejda <msakrejda@truviso.com>; +Cc: admin <admin0423@homepage.kgbinternet.com>; pgsql-jdbc

Hi Maciek,

Thanks for your quick reply.

Here is log messages from one application:

2010-09-17 12:31:32,202 ERROR JDBCTransaction:67: - JDBC begin failed
org.postgresql.util.PSQLException: An I/O error has occured while flushing
the output - Exception: java.net.SocketException: Broken pipe
Stack Trace:

java.net.SocketException: Broken pipe
	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:411)
	at org.postgresql.core.QueryExecutor.sendQueryV3(QueryExecutor.java:337)
	at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:121)
	at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:100)
	at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)
	at
org.postgresql.jdbc1.AbstractJdbc1Connection.execSQL(AbstractJdbc1Connection.java:875)
	at
org.postgresql.jdbc1.AbstractJdbc1Connection.setAutoCommit(AbstractJdbc1Connection.java:1266)
	at
org.apache.commons.dbcp.DelegatingConnection.setAutoCommit(DelegatingConnection.java:268)
	at
org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.setAutoCommit(PoolingDataSource.java:293)
	at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:63)
	at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326)
	at
org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:494)
	at
org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:315)
	at
org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:257)
	at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:102)
	at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
	at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:209)
...

End of Stack Trace

	at org.postgresql.core.PGStream.flush(PGStream.java:415)
	at org.postgresql.core.QueryExecutor.sendQueryV3(QueryExecutor.java:337)
	at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:121)
	at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:100)
	at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)
	at
org.postgresql.jdbc1.AbstractJdbc1Connection.execSQL(AbstractJdbc1Connection.java:875)
	at
org.postgresql.jdbc1.AbstractJdbc1Connection.setAutoCommit(AbstractJdbc1Connection.java:1266)
	at
org.apache.commons.dbcp.DelegatingConnection.setAutoCommit(DelegatingConnection.java:268)
	at
org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.setAutoCommit(PoolingDataSource.java:293)
	at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:63)
	at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326)
	at
org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:494)
	at
org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:315)
	at
org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:257)
	at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:102)
	at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
	at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:209)
...

The driver version is pg74.213.jdbc3.jar. The PostgreSQL is 8.x.x.

Thanks a lot.

> On Fri, Sep 17, 2010 at 1:41 PM, admin
> <admin0423@homepage.kgbinternet.com> wrote:
>> With the PostgresSQL 8.0, I have experienced a broken pipe error for
>> some
>> times. One new Java web application experiences this problem in every
>> ten
>> day or so. This problem becomes a big problem right now for the
>> enterprise
>> application. Is the jdbc driver problem or something else?
>
> I think the only possible answer to a question this vague is "maybe".
>
> Less flippantly, we can probably help you better if you provide more
> information on the types of errors you're seeing (e.g., a full stack
> trace), whether your application was doing anything unusual at the
> time of the error (e.g., in terms of query workload, PostgreSQL notify
> messages, etc.), and anything else that might be relevant. From
> watching the list, I'm not aware of any open issues leading the driver
> to break a connection.
>
> ---
> Maciek Sakrejda | System Architect | Truviso
>
> 1065 E. Hillsdale Blvd., Suite 215
> Foster City, CA 94404
> (650) 242-3500 Main
> www.truviso.com
>
> --------------------------------
> Spam/Virus scanning by CanIt Pro
>
> For more information see
> http://www.kgbinternet.com/SpamFilter.htm
>
> To control your spam filter, log in at
> http://filter.kgbinternet.com
>





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

* Re: Broken pipe error
  2010-09-17 20:41 Broken pipe error admin <admin0423@homepage.kgbinternet.com>
  2010-09-17 20:49 ` Re: Broken pipe error Maciek Sakrejda <msakrejda@truviso.com>
@ 2010-09-18 02:55   ` Craig Ringer <craig@postnewspapers.com.au>
  2010-09-19 16:42     ` Re: Broken pipe error admin <admin0423@homepage.kgbinternet.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Craig Ringer @ 2010-09-18 02:55 UTC (permalink / raw)
  To: Maciek Sakrejda <msakrejda@truviso.com>; +Cc: admin <admin0423@homepage.kgbinternet.com>; pgsql-jdbc

On 09/18/2010 04:49 AM, Maciek Sakrejda wrote:

> Less flippantly, we can probably help you better if you provide more
> information on the types of errors you're seeing (e.g., a full stack
> trace), whether your application was doing anything unusual at the
> time of the error (e.g., in terms of query workload, PostgreSQL notify
> messages, etc.), and anything else that might be relevant.

In particular, you'll really need to supply the contents of the 
PostgreSQL log files from around the time the error occurred.

--
Craig Ringer



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

* Re: Broken pipe error
  2010-09-17 20:41 Broken pipe error admin <admin0423@homepage.kgbinternet.com>
  2010-09-17 20:49 ` Re: Broken pipe error Maciek Sakrejda <msakrejda@truviso.com>
  2010-09-18 02:55   ` Re: Broken pipe error Craig Ringer <craig@postnewspapers.com.au>
@ 2010-09-19 16:42     ` admin <admin0423@homepage.kgbinternet.com>
  0 siblings, 0 replies; 5+ messages in thread

From: admin @ 2010-09-19 16:42 UTC (permalink / raw)
  To: Craig Ringer <craig@postnewspapers.com.au>; +Cc: Maciek Sakrejda <msakrejda@truviso.com>; admin <admin0423@homepage.kgbinternet.com>; pgsql-jdbc


I don't have a direct access of the PostgreSQL log file. I have to ask
other to get the DB log messages. Here is what I get back:

NOTICE:  ALTER TABLE / ADD PRIMARY KEY will create implicit index
"web_menu2_pkey" for table "web_menu2"
WARNING:  no privileges could be revoked
WARNING:  no privileges could be revoked
WARNING:  no privileges were granted
WARNING:  no privileges were granted
ERROR:  column "mfzjczifqhgki" does not exist
ERROR:  syntax error at end of input at character 48
ERROR:  column "mfzjczifqhgki" does not exist
ERROR:  column "ejwcwxddtiirxgc" does not exist
ERROR:  column "mfzjczifqhgki" does not exist
ERROR:  syntax error at end of input at character 48
ERROR:  column "ykchkotnl" does not exist

There isn't time stamp at all. Is a switch of timestamp in the log file?



> On 09/18/2010 04:49 AM, Maciek Sakrejda wrote:
>
>> Less flippantly, we can probably help you better if you provide more
>> information on the types of errors you're seeing (e.g., a full stack
>> trace), whether your application was doing anything unusual at the
>> time of the error (e.g., in terms of query workload, PostgreSQL notify
>> messages, etc.), and anything else that might be relevant.
>
> In particular, you'll really need to supply the contents of the
> PostgreSQL log files from around the time the error occurred.
>
> --
> Craig Ringer
>
> --------------------------------
> Spam/Virus scanning by CanIt Pro
>
> For more information see
> http://www.kgbinternet.com/SpamFilter.htm
>
> To control your spam filter, log in at
> http://filter.kgbinternet.com
>





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


end of thread, other threads:[~2010-09-19 16:42 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-09-17 20:41 Broken pipe error admin <admin0423@homepage.kgbinternet.com>
2010-09-17 20:49 ` Maciek Sakrejda <msakrejda@truviso.com>
2010-09-17 22:11   ` admin <admin0423@homepage.kgbinternet.com>
2010-09-18 02:55   ` Craig Ringer <craig@postnewspapers.com.au>
2010-09-19 16:42     ` admin <admin0423@homepage.kgbinternet.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