X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B490153412 for ; Fri, 29 Apr 2005 02:28:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 30417-05 for ; Fri, 29 Apr 2005 05:28:46 +0000 (GMT) Received: from web40508.mail.yahoo.com (web40508.mail.yahoo.com [66.218.78.125]) by svr1.postgresql.org (Postfix) with SMTP id DEC1253381 for ; Fri, 29 Apr 2005 02:28:45 -0300 (ADT) Received: (qmail 89123 invoked by uid 60001); 29 Apr 2005 05:28:41 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=xCg+MUxz5FCqVjLqBA9u3Mnz0tJYZuDSUPLh1Ug5SmJia7iu6ZPgAILRuENUUCa/KRjhsKR6HIv9aRngSYGl6GDi8kOxIQ1Pe6tV98KemoT+6jkjQh+Ao7HcMVXFfwoLH9fdlUple7ZyU5t4eTuhXW2Ohob6/YsOm5xR4slSqXA= ; Message-ID: <20050429052841.89121.qmail@web40508.mail.yahoo.com> Received: from [24.87.63.31] by web40508.mail.yahoo.com via HTTP; Thu, 28 Apr 2005 22:28:41 PDT Date: Thu, 28 Apr 2005 22:28:41 -0700 (PDT) From: Vernon Subject: Is a way avoiding the driver crash with unicode data? To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.804 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, FROM_ENDS_IN_NUMS X-Spam-Level: X-Archive-Number: 200504/206 X-Sequence-Number: 12813 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: 擦亮眼睛 哈达 拉帮结派 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