Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2009, 04:00 PM
Member
 
Join Date: Apr 2009
Posts: 1
Rep Power: 0
nightnic is on a distinguished road
Default 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.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java, Military Format using "/" and "%" Operator!! sk8rsam77 New To Java 11 02-26-2010 04:03 AM
MoneyOut.println("It took you (whats wrong?>",year,"<WW?) years to repay the loan") soc86 New To Java 2 01-24-2009 07:56 PM
Error Message:org.xml.sax.SAXParseException: Value "bottom" is not one of the enumera Deepa New To Java 2 12-02-2008 12:06 PM
the dollar sign "$", prints like any other normal char in java like "a" or "*" ? lse123 New To Java 1 10-20-2008 08:35 AM
<core:forEach var="" begin="+<%=j%>+">??? freddieMaize JavaServer Pages (JSP) and JSTL 1 09-27-2008 02:20 AM


All times are GMT +2. The time now is 03:01 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org