Results 1 to 1 of 1
- 04-02-2009, 03:00 PM #1Member
- Join Date
- Apr 2009
- Rep Power
SAXParseException on "ИЙ" sequence, why?
I load some values from database using hibernate and try to send them out in a webservice method result. Although some values go out nice, on others an exception is thrown:
Service invocation threw an exception with message : org.xml.sax.SAXParseException: Invalid byte 2 of 2-byte UTF-8 sequence.
My initial assumption was that the value is somehow incorrect, but the exception also happens after modifying the value in debug via watch. Such strings as "ТЕСТ тест" do not happen to lead to exception, but string "ПЕТЕРБУРГСКИЙ" always leads to it. Actually, even after updating database field, the value of "ИЙ" also leads to exception (the values are in russian).
The value in point contained in an @Entity class, which in turn contained in webservice response wrapper class. The field named 'name' of database type varchar(100) and Java type String. Database uses UTF8 encoding.
Could anyone give some insight on possible roots of the issue?
Software used is NetBeans 6.5, Glassfish v2ur2 and PostgreSQL 8.3.
- By sk8rsam77 in forum New To JavaReplies: 11Last Post: 02-26-2010, 03:03 AM
- By soc86 in forum New To JavaReplies: 2Last Post: 01-24-2009, 06:56 PM
- By Deepa in forum New To JavaReplies: 2Last Post: 12-02-2008, 11:06 AM
- By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM
- By freddieMaize in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 09-27-2008, 01:20 AM