jboss-3.2.1_tomcat-4.1.24
Postgres 7.3
I can successfully create, find and remove my BMP beans, however if I restart jboss or I add a record to the database directly ejbFindByPrimaryKey fails. It seems the ejbLoad method does not use the correct id value to fine the bean:
00:17:07,748 INFO [BuildingViewServlet] BuildingViewServlet Server In
successfully
00:17:07,748 INFO [BuildingViewServlet] building id=8
00:17:07,789 INFO [BuildingBean] setEntityContext
00:17:07,809 INFO [BuildingBean] ejbFindByPrimaryKey id=8
00:17:07,919 INFO [BuildingBean] setEntityContext
00:17:07,919 INFO [BuildingBean] ejbActivate() id=0
00:17:07,939 INFO [BuildingBean] ejbLoad()
00:17:07,949 ERROR [LogInterceptor] EJBException, causedBy:
java.lang.NullPointerException
at com.xensia.ejb.impl.BuildingBean.ejbLoad(Unknown Source)
at com.xensia.ejb.impl.BuildingBeanBMP.ejbLoad(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
I have tried changing jboss commit options and bean transaction attributes with no luck. Also I have tryied retreaving the primaryKey from the entityContext inm ejbLoad, however it always returns null. I guess this is a caching issue, any help would be most welcome.
Cheers Hoos