-
1. Re: NullPointerException from jboss while loading a CMR
triathlon98 Apr 1, 2004 8:03 AM (in response to ittay)This can typically occur when you are trying to access a field of primitive type (int, double) when there are null values in the database. As this can't be represented at the CMP level, you run into problems.
A possible solution is to define your fields as Integer or Double.
Joachim -
2. Re: NullPointerException from jboss while loading a CMR
rag Jun 4, 2004 2:39 AM (in response to ittay)Dear friend,
whenever you are deploying an entity bean that has referntial integrity at database level (primary key-foreignkey relationship) see that you have defined both Home, Localhome & Remote, Local Component interfaces in both the entity bean.
and make sure that they are mentioned in the ejb-jar.xml
like this:
<ejb-class>taxentitybean.TaxEJB</ejb-class>
taxentitybean.TaxHome
taxentitybean.Tax
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
with regards
Akhil -
3. Re: NullPointerException from jboss while loading a CMR
ittay Jun 17, 2004 1:12 AM (in response to ittay)can you explain why i should put the home and interface in the <ejb-class> section?
do you know how i can do it with xdoclet?
thanx,
ittay