pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vernon <vwu725@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: Is a way avoiding the driver crash with unicode data?
Date: Thu, 28 Apr 2005 22:28:41 -0700 (PDT)
Message-ID: <20050429052841.89121.qmail@web40508.mail.yahoo.com> (raw)


The following exception occures when the select
statement is issued through the Hibernate. The table
contains some unicode data. After I remove one entry
with the data:

&#25830;&#20142;&#30524;&#30555; 
&#21704;&#36798;
&#25289;&#24110;&#32467;&#27966;

No exception occurs. No error message is in the PG log
file. How can I avoid such exception happend again? 



org.springframework.jdbc.UncategorizedSQLException:
(Hibernate operation): encountered SQLException [An
I/O error occured while sending to the backend.];
nested exception is org.postgresql.util.PSQLException:
An I/O error occured while sending to the backend.
org.postgresql.util.PSQLException: An I/O error
occured while sending to the backend.
	at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:198)
	at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:387)
	at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:328)
	at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:238)
	at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
	at
net.sf.hibernate.impl.BatcherImpl.getResultSet(BatcherImpl.java:88)
	at
net.sf.hibernate.loader.Loader.getResultSet(Loader.java:875)
	at
net.sf.hibernate.loader.Loader.doQuery(Loader.java:269)
	at
net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
	at
net.sf.hibernate.loader.Loader.doList(Loader.java:1033)
	at
net.sf.hibernate.loader.Loader.list(Loader.java:1024)
	at
net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854)
	at
net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1553)
	at
net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39)
	at
org.springframework.orm.hibernate.HibernateTemplate$27.doInHibernate(HibernateTemplate.java:588)
	at
org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:243)
	at
org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:263)
	at
org.springframework.orm.hibernate.HibernateTemplate.findByNamedParam(HibernateTemplate.java:582)
	at org.springframework.orm.hibernate.HibernateTemplate.findByNamedParam(HibernateTemplate.java:570)

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



view thread (2+ messages)  latest in thread

Message-ID: <20050429052841.89121.qmail@web40508.mail.yahoo.com>
Permalink:  ../20050429052841.89121.qmail@web40508.mail.yahoo.com/
Also on:    postgresql.org/message-id/20050429052841.89121.qmail@web40508.mail.yahoo.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: vwu725@yahoo.com
  Subject: Re: Is a way avoiding the driver crash with unicode data?
  In-Reply-To: <20050429052841.89121.qmail@web40508.mail.yahoo.com>
  References: <20050429052841.89121.qmail@web40508.mail.yahoo.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