1 Reply Latest reply on Dec 10, 2001 9:35 AM by Robby Cornelissen

    NPE when creating an entity bean

    Matthew Cooper Newbie

      I just changed some code to use ints instead of booleans due to a postgress / jboss problem (or so I can glean from various postings).

      I am getting an NPE when creating my entity:-

      Could not create entity:java.lang.NullPointerException
      [EJBXMLManager] javax.ejb.CreateException: Could not create entity:java.lang.NullPointerException
      [EJBXMLManager] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCreateEntityCommand.execute(JDBCCreateEntityCommand.java:139)
      [EJBXMLManager] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.createEntity(JAWSPersistenceManager.java:128)
      [EJBXMLManager] at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:231)
      [EJBXMLManager] at org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:616)
      [EJBXMLManager] at java.lang.reflect.Method.invoke(Native Method)
      [EJBXMLManager] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:843)
      [EJBXMLManager] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:231)
      [EJBXMLManager] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:154)
      [EJBXMLManager] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:108)
      [EJBXMLManager] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
      [EJBXMLManager] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307)
      [EJBXMLManager] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
      [EJBXMLManager] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:103)
      [EJBXMLManager] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
      [EJBXMLManager] at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:420)
      [EJBXMLManager] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:437)
      [EJBXMLManager] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:237)
      [EJBXMLManager] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
      [EJBXMLManager] at $Proxy41.create(Unknown Source)
      <rest snipped>

      I have dropped the database so it is createed fresh when jboss deploys.

      Has anyone come across this or got any suggestions?

      Thanks, Matty.