users@glassfish.java.net

Re: Toplink - Invalid value for getLong() - 'String' in column 5

From: <glassfish_at_javadesktop.org>
Date: Mon, 12 Mar 2007 08:26:20 PST

Hello,

The error points out that the value found is ASDFASDF - which doesn't seem to correspond to the row you mention or any of the DiscriminatorColumn values. You might want to turn on sql logging (finest) and check the sql for the query returning these results to be sure which attribute is causing the problem.

I suspect though that the problem is you have attribute value mapped as a long in AttributeValueLong but a String in AttributeValueString. This field is in the AttributeValue table, and can't be mapped as both long and String. Chances are you are getting this error when reading in a AttributeValueLong as it would expect the 'value' attribute to be along but it might be defined in the db as a string.

Best Regards,
Chris
[Message sent by forum member 'chris_delahunt' (chris_delahunt)]

http://forums.java.net/jive/thread.jspa?messageID=207451