NullPointerException in InvalidableEntityInstanceCache
chrisxsb Sep 21, 2004 12:40 PMWhile attempting to deploy an application in 4.0 that worked fine on 3.2.5, I received a NullPointerException during the deployment of some of the components of this app.
I have searched the forums, and googled around and haven't found any hints....Here is the relevant portion of my system log:
... 2004-09-21 11:24:17,101 DEBUG [org.jboss.ejb.EjbModule] startService, starting container: XPDLPackage 2004-09-21 11:24:17,101 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:jndiName=org/obe/PackageLocal,service=EJB 2004-09-21 11:24:17,101 DEBUG [org.jboss.ejb.EntityContainer] Starting jboss.j2ee:jndiName=org/obe/PackageLocal,service=EJB 2004-09-21 11:24:17,101 DEBUG [org.jboss.ejb.EntityContainer] Begin java:comp/env for EJB: XPDLPackage 2004-09-21 11:24:17,101 DEBUG [org.jboss.ejb.EntityContainer] TCL: org.jboss.util.loading.DelegatingClassLoader@4f33c1 2004-09-21 11:24:17,101 DEBUG [org.jboss.ejb.EntityContainer] Bound java:comp/ORB for EJB: XPDLPackage 2004-09-21 11:24:17,101 DEBUG [org.jboss.ejb.EntityContainer] Bound java:comp:/HandleDelegate for EJB: XPDLPackage 2004-09-21 11:24:17,101 DEBUG [org.jboss.ejb.EntityContainer] Binding an EJBLocalReference ejb/ProcessDefinition 2004-09-21 11:24:17,101 DEBUG [org.jboss.ejb.EntityContainer] Binding ejb/ProcessDefinition to bean source: ProcessDefinition 2004-09-21 11:24:17,101 DEBUG [org.jboss.ejb.EntityContainer] Binding resource manager: jdbc/TxDataSource to JDNI ENC as: java:/MySQLDS 2004-09-21 11:24:17,117 DEBUG [org.jboss.ejb.EntityContainer] End java:comp/env for EJB: XPDLPackage 2004-09-21 11:24:17,117 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=obe, password=--hidden--} 2004-09-21 11:24:17,133 DEBUG [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] Bound EJBLocalHome of XPDLPackage to org/obe/PackageLocal 2004-09-21 11:24:17,133 DEBUG [org.jboss.ejb.plugins.AbstractInstanceCache] Starting InvalidableEntityInstanceCache... 2004-09-21 11:24:17,133 ERROR [org.jboss.ejb.EntityContainer] Starting failed jboss.j2ee:jndiName=org/obe/PackageLocal,service=EJB java.lang.NullPointerException at org.jboss.ejb.plugins.InvalidableEntityInstanceCache.start(InvalidableEntityInstanceCache.java:107) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:337) ...
It seems that it fails to find the InvalidationManagerMBean in the Registry. Here is the code where the NPE occurrs:
... this.invalMgr = (InvalidationManagerMBean) Registry.lookup(imName); -->this.ig = this.invalMgr.getInvalidationGroup(groupName); this.ig.register(this); this.isTraceEnabled = log.isTraceEnabled(); ...
Any clue what I've done wrong here?
Thanks in advance.