problem with findByPrimaryKey - Is this normal?
0 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Tuesday, April 24, 2001 02:59 PM

I'm trying to get a field from a database using the findByPrimaryKey method. The pk field is an integer and the other field is varchar. I've put a for statement to loop through the records. However, when I try to get the pk=1 record I get an "java.rmi.ServerException: Cannot assign a SQL null to a continer-managed field of type int"
If I try to get the pk=2 or another everything runs ok and it retrieves the varchar field.
There are no null field values in any of these records. Is this normal??


Carlos Ferrão

About | Sitemap | Contact