This content has been marked as final.
Show 1 reply
-
1. Re: NullPointer exception in ejbselect
r_clegg1 Jul 15, 2003 5:50 AM (in response to r_clegg1)Found the answer in case its useful:-
The return type was set to local:
<ejb-ql>select distinct object(t) from Transaction as t where t.year = ?1 </ejb-ql>
<result-type-mapping>Local</result-type-mapping>
However, even though I had created local and localhome interface classes, I had forgotten to set them up in the ejb-jar.xml for the
transaction ejb, ie -
<local-home>com.pcl.TransactionLocalHome</local-home>
com.pcl.TransactionLocal
so obvoiusly the local interfaces were not bound, causing the nullpointer problem during selection!