-
1. Re: Entity Proxy NullPointerException
legerdemain Aug 6, 2002 7:46 AM (in response to legerdemain)
Discovered the cause of this problem...
public abstract int getOrgId();
public abstract int setOrgId(int orgId);
public abstract int getSiteId();
public abstract int setSiteId(int siteId);
public abstract int getId();
public abstract int setId(int id);
... a return type of int in the setters. This causes the entity proxy to throw a NullPointerException.
Now this was a really dumb thing to do but given that finding the problem was so difficult it might be good to have the validation check the return type of the setter methods.
Sheepishly,
Michael. -
2. Re: Entity Proxy NullPointerException
dsundstrom Aug 6, 2002 2:59 PM (in response to legerdemain)Can you post a bug report in the JBossServer category? The guy who writes the verifier will see it then.
-
3. Re: Entity Proxy NullPointerException
lqd Aug 9, 2002 4:50 AM (in response to legerdemain)this is fixed in CVS (the verifier part). the more I think about it, we should make the verifier a mandatory step in the deployment process and simply disallow deployments which do not pass the verifier ...
i will have a look at the NPE being thrown (this should not happen in the container), could take some time though as i'm not really familiar with the code.