0 Replies Latest reply on Jul 31, 2006 10:33 AM by jedavie

    Null Pointer when attempting update on newly created detache

      Hello,
      I am having problems with the EJB3.0 concept of being able to update and merge a detached instance of an entity bean. I successfully call the create() mathod, which is really a wrapper for em.persist (entity). However, immediately after, I am returned a null pointer when I attempt to find the newly created entity with a dao.find(pk), which is really a wrapper for em.find(entity class,pk). What would cause this? I can see the entity entry in the database using the DatabseExplorer, and the EJB docs state that I should be able to call up an entity out of the database for a detached update and merge?
      I am using jboss-EJB-3.0_RC5-PFD, JBoss 4.0.4.GA, and an Oracle 10G database.

      Thanks,
      Jim