1 Reply Latest reply on Aug 8, 2006 12:18 PM by Scott Tamosunas

    EJB3 find() with Oracle database returns NPE

    James Davies Newbie

      Hello,

      I am having one problem using the JBoss EJB3 implementation that I cannot figure out and I'm hoping someone can point me in the right direction.

      When I use the EntityManager to create(), persist(), and then find() an object using the supplied HSQL database, all works well. When I switch my DataSource to an Oracle database, I can create() and persist() an object to the database, but find() then returns a NPE. Using other tools such as Toad or Eclipse Databse Explorer, I can see the newly created objects in the Oracle database, but I cannot use find() to retrieve them. I am using the following:
      JBoss 4.0.4.GA AS and EJB3
      Oracle 10G
      J2EE 1.5.0_07

      Does anyone have any suggestions as to what might be going on, or where I might look to resolve this problem?

      Thanks in advance,
      Jim