If it don't cause trouble in the business logic, I prefer to set the int
explicit '0' in ejbCreate, instead leaving it 'null'. 

> -----Original Message-----
> From: Jim Cheesman [SMTP:[EMAIL PROTECTED]]
> Sent: 30 April 2001 10:32
> To:   [EMAIL PROTECTED]
> Subject:      [JBoss-user] Null pointer/Server exception when int column
> null in db
> 
> I'm getting a NullPointerException (wrapped up in a 
> TransactionRolledbackException, in turn wrapped up in a
> ServerException...) 
> when I try to read a column with null data in an int field. Is there any 
> work around for this with a CMP entity bean, or is BMP the only way
> forward?
> 
> 
> 
> The db is DB2 over JDBC:ODBC, which I've finally managed to get working. 
> The data is legacy and cannot be changed...
> 
> 
> 
> Jim
> 
> --
> 
>                            *   Jim Cheesman   *
>              Trabajo: 
> [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
>                Personal: 
> [EMAIL PROTECTED] (34) 606 770 244
>             Prepositions are not words 
> to end sentences with.
> 
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to