0 Replies Latest reply on Oct 24, 2003 10:51 AM by nashbr

    Error after create(...) with CMP

    nashbr

       

      "nashbr" wrote:
      "nashbr" wrote:
      nat is CMP bean
      In client I write:

      .....
      nat = natHome.create(bla,bla,bla);
      ....

      And the new row in table "nat" creates.
      But when I write

      .....
      nat = natHome.create(bla,bla,bla);
      nat.getName();//or any method of nat
      ....

      Then this makes an Exception, that I can see in JBoss log:
      "java.lang....Exception
      Trying to get ref on a null object"
      but (nat!=null) and (nat.equals(null)!=true).
      What I'm doing wrong?