This content has been marked as final.
Show 3 replies
-
1. Re: java.lang.NullPointerException with database generated k
aloubyansky Feb 9, 2004 12:58 PM (in response to sesques)Confirm that:
- there is no primkey-field in ejb-jar.xml
- there are no abstract getter and setter for reqxmlId
- reqxmlId is not declared as cmp-field in ejb-jar.xml -
2. Re: java.lang.NullPointerException with database generated k
sesques Feb 9, 2004 1:08 PM (in response to sesques)Hi,
Thanks for response.
I confirm that
- there is no primkey-field in ejb-jar.xml for PhML_Reqxml entity bean
- there are no abstract getter and setter for reqxmlId
- reqxmlId is not declared as cmp-field in ejb-jar.xml
An idea ? -
3. Re: java.lang.NullPointerException with database generated k
sesques Feb 9, 2004 1:36 PM (in response to sesques)OK I found the solution
1) The primary key class must be java.lang.Object:
@ejb.pk class = "java.lang.Object"
2) The return type of the Create method must of type primary key class
3) The unknown primary key cannot be read-only if I wnt to create items.