I’m using Oracle as a database and tried to retrieve data with SQLContainer.
It was easy when I queried tables that have NUMBER column as their primary key.
But when I queried table that has RAW column as a primary key column…
WARNING: Class not found
java.lang.ClassNotFoundException: byte[]
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.vaadin.data.util.sqlcontainer.SQLContainer.getPropertyIds(SQLContainer.java:1221)
at com.vaadin.data.util.sqlcontainer.SQLContainer.<init>(SQLContainer.java:134)
I’m kinda surprised…
byte binary array is a standard JDBC return type, why it’s not supported?
From SQLContainer.class:
type = Class.forName(rsmd.getColumnClassName(i));
Byte is a binary array and not an object, so it fails.