Re: [JBoss-user] Follow up: Collections and finders

2001-04-02 Thread Chris Winters

* Carles Pi-Sunyer ([EMAIL PROTECTED]) [010402 15:22]:
> I've tracked my problem down to a field in the database that is sometimes
> NULL. The entity bean variable is declared as an int. My failure occurs when
> the ejbLoad attempts to load the NULL value into the int field. I'm then
> getting a NullPointerException. Is this the expected behavior? Is there a
> way I can code or configure about this problem?

Yeah, use the wrapper classes rather than the primitive
types. (java.lang.Integer vs. int) I had this problem too and
everything cleared up after I made this change.

Chris

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



[JBoss-user] Follow up: Collections and finders

2001-04-02 Thread Carles Pi-Sunyer
Title: Follow up: Collections and finders





I've tracked my problem down to a field in the database that is sometimes NULL. The entity bean variable is declared as an int. My failure occurs when the ejbLoad attempts to load the NULL value into the int field. I'm then getting a NullPointerException. Is this the expected behavior? Is there a way I can code or configure about this problem?

Thanks,
Carles