I have a similar problem with Ingres. I use byte[] without a @LOB annotation.

public setMasterMac(byte[] masterMac) {
this.masterMac = masterMac;
} 

When I try to insert a value into the databese (the column is of type "long 
binary") I got error

Caused by: java.lang.ClassCastException: [B
        at org.hibernate.type.ByteType.set(ByteType.java:38)
        at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:62)
        at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:39)

The error message "... Ecxeption: [B" is strange. What means "[B". Why can't I 
insert a byte[] value into database? A pure JDBC test case with 
PreparedStatement.setBytes() works fine.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3884088#3884088

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3884088


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to