5 Replies Latest reply on Apr 8, 2003 11:30 AM by Dilli Babu Nandarapu

    NullPointerException while calling the LocalHome create() me

    Dilli Babu Nandarapu Newbie

      Hi,
      While calling the LocalHome create() mehtod of EntityBean i am getting the NullPointerException. Can any body help in this regard. The server side stack trace as follows.
      java.lang.NullPointerException
      at org.jboss.ejb.EntityEnterpriseContext.getPersistenceContext(EntityEnt
      erpriseContext.java:140)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.init
      Instance(JDBCAbstractCMPFieldBridge.java:260)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.initInstance(J
      DBCEntityBridge.java:455)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCInitEntityCommand.execute(JDBCInit
      EntityCommand.java:40)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initEntity(JDBCStoreM
      anager.java:518)
      at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersisten
      ceManager.java:215)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.crea
      teEntity(CachedConnectionInterceptor.java:270)
      at org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:58
      0)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityC
      ontainer.java:1119)
      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractIntercep
      tor.java:73)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(Ent
      itySynchronizationInterceptor.java:207)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
      keHome(CachedConnectionInterceptor.java:215)
      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractIntercep
      tor.java:73)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInst
      anceInterceptor.java:90)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInte
      rceptor.java:79)
      at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCrea
      tionInterceptor.java:44)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:111)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:228)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.ja
      va:62)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep
      tor.java:105)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1
      29)
      at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(Base
      LocalContainerInvoker.java:230)
      at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java
      :110)
      at $Proxy79.create(Unknown Source)
      at com.dbs.config.model.ConfigMgrBean.createConfigurationStore(ConfigMgr
      Bean.java:315)