-
Bug
-
Resolution: Done
-
Major
-
JBossAS-3.2.6 Final
-
None
SourceForge Submitter: jdefelice .
Using JBoss 3.2.6, I had set up my CMP bean's
configuration wrong, but I got a NullPointerException
from the container instead of something more useful.
Culprit is line 75 of QueryFinder:
throw new DeploymentException("Local home
interface " + home.getClass().getName() +
" does not contain findByPrimaryKey(" +
entity.getPrimaryKeyClass().getName() + ")");
should read:
throw new DeploymentException("Local home
interface " + local.getClass().getName() +
" does not contain findByPrimaryKey(" +
entity.getPrimaryKeyClass().getName() + ")");
since, at that point in the code, the local class is being
queried, not the remote home class.