Why do I get "Unknown SQL Type" when I try to store an object with the JAVA_OBJECT type?

Joe Sam Shirah

While the JDBC spec supports the JAVA_OBJECT type and has had getObject() and setObject() for quite a while, the underlying DBMS engine must also specifically understand and support Java objects ( not many do at this point ) or you will get this type of exception.