Thread: Is a way avoiding the driver crash with unicode data?
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
Vernon wrote: > 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? This looks like a backend crash, not a driver issue. What do the server logs say? -O