Home > Archive > PostgreSQL JDBC > April 2005 > Is a way avoiding the driver crash with unicode data?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Is a way avoiding the driver crash with unicode data?
Vernon

2005-04-29, 3:25 am


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. UncategorizedSQLExce
ption:
(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(QueryExecuto
rImpl.java:198)
at
org.postgresql.jdbc2. AbstractJdbc2Stateme
nt. execute(AbstractJdbc
2Statement.java:387)
at
org.postgresql.jdbc2. AbstractJdbc2Stateme
nt. executeWithFlags(Abs
tractJdbc2Statement.java:328)
at
org.postgresql.jdbc2. AbstractJdbc2Stateme
nt. executeQuery(Abstrac
tJdbc2Statement.java:238)
at
org.apache.commons.dbcp. DelegatingPreparedSt
atement. executeQuery(Delegat
ingPreparedStatement
.java:92)
at
net.sf.hibernate.impl.BatcherImpl. getResultSet(Batcher
Impl.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. doQueryAndInitialize
NonLazyCollections(L
oader.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(Hibern
ateTemplate.java:588)
at
org.springframework.orm.hibernate.HibernateTemplate. execute(HibernateTem
plate.java:243)
at
org.springframework.orm.hibernate.HibernateTemplate. executeFind(Hibernat
eTemplate.java:263)
at
org.springframework.orm.hibernate.HibernateTemplate. findByNamedParam(Hib
ernateTemplate.java:582)
at org.springframework.orm.hibernate.HibernateTemplate. findByNamedParam(Hib
ernateTemplate.java:570)

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

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Oliver Jowett

2005-04-29, 3:25 am

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

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com