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.
Can you post a bug report in the JBossServer category? The guy who writes the verifier will see it then.
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.