character « Exception « JPA Q&A





1. Unknown character set index error    forum.hibernate.org

I have a large application using Hibernate and one particular record throws the following MySQL error when hibernate tries to retrieve it: Code: Unknown character set index for field '25432' received from server. at com.mysql.jdbc.Connection.getCharsetNameForIndex(Connection.java:1664) at com.mysql.jdbc.Field.(Field.java:144) at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:506) at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:280) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1319) at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1218) at com.mysql.jdbc.Connection.execSQL(Connection.java:2233) at com.mysql.jdbc.Connection.execSQL(Connection.java:2193) at com.mysql.jdbc.Connection.execSQL(Connection.java:2174) at com.mysql.jdbc.Connection.setAutoCommit(Connection.java:536) I turned on SQL debugging and the SQL ...

2. Character to numeric conversion error on java.lang.Double    forum.hibernate.org

Hi, I have a quite simple configuration (and problem): In the POJO object (InputTransactionLNC.java) there are java.lang.Double types. I'm using Informix database, where the attributes in table aro of FLOAT types. When I try to save an instance, where these Double are filled, I got an Char to numeric SQLException (see below). I tried to map the double attribute to java.lang.Double/didn't ...

3. net.sf.hibernate.util.JDBCExceptionReporter- character 0xefb    forum.hibernate.org

NHibernate: insert into tipo_grupo (ds_tipo_grupo, nm_trabalho_conclusao, id_tipo_grupo) values (?, ?, ?) 2006-10-17 13:22:09,555 WARN [net.sf.hibernate.util.JDBCExceptionReporter] - 2006-10-17 13:22:09,555 ERROR [net.sf.hibernate.util.JDBCExceptionReporter] - 2006-10-17 13:22:09,555 WARN [net.sf.hibernate.util.JDBCExceptionReporter] - 2006-10-17 13:22:09,555 ERROR ...

4. Unicode character parsing error    forum.hibernate.org

Hi , For the unicode characters we generally fire following query in the sql server:- Select * from tableName where colName = N'JapaneseCharacter' But this query is not working in the Hibernate, it returns the following exception when we run the above query. 2007-01-08 12:43:15.468 - [ERROR : 1001 ] unexpected token: '66817b50c45c4ab98a69920f9d6aaafc' near line 1, column 86 [from com.nec.infocage.hibernate.Icpassword as ...

5. PersistenceException - Illegal Character in path    forum.hibernate.org

Hi, we use Apache Maven 2.04 http://maven.apache.org for our java build environment. Maven handles dependency management by downloading jar's your project needs and storing them in a local directory that is added to your classpath. By default, on Windows, this is C:\Documents and Settings\(username)\.m2\repository One of the jar's we develop has a META-INF\persistence.xml -- when we try to execute some code ...