Tag Archives: oracle

SQL Error: 17006, SQLState: null Invalid column name in Hibernate

Recently I've got the following error during SQL named query execution: SQL Error: 17006, SQLState: null Invalid column name In order to track the problem down I enabled SQL logging and collected SQL query issued, then run it under SQL … Continue reading

Posted in en | Tagged , , | 5 Comments

ORA-00600: internal error code

Interesting error found on Oracle XE installed for one of projects. After a run of test case that uses JDBC to perform some operations on database all tests started to fail with this exception: Caused by: java.sql.SQLException: ORA-00600: internal error … Continue reading

Posted in en | Tagged | 1 Comment

ORA-01722: invalid number

"ORA-01722: invalid number" is raised when a number was passed a query parameter, but another type (string) was expected. The error message isn't very helpful, is it?

Posted in en | Tagged | Leave a comment

org.hibernate.PropertyAccessException: exception setting property value with CGLIB

The error org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of XYZ.setStatus(). Cause Using primitive types (long) where NULL is possible or using wrong type (i.e. String if "char" is declared in HBM file). Resolution … Continue reading

Posted in en | Tagged , , , | Leave a comment

ORA-00932: inconsistent datatypes: expected NUMBER got BINARY

I got the following error: ORA-00932: inconsistent datatypes: expected NUMBER got BINARY on line: <property name="customer" column="CustomerId" /> the fix for above error was to use many-to-many tag instead of plain <property>: <many-to-one name="customer" column="CustomerId" /> Note that class is … Continue reading

Posted in en | Tagged , , , | 5 Comments