0 Replies Latest reply on Oct 11, 2004 9:54 PM by zorzella

    Why findByPrimaryKey (null) throws error in jboss 3.2.5 and

    zorzella

      I've been using jboss 3.2.1, under which I commonly use findByPrimaryKey that *may* pass a null as a parameter, and it all works well (i.e. server simply throws ObjectNotFoundException).

      I've been trying to upgrade to 3.2.5, but I found that it throws this instead:

      "java.lang.IllegalArgumentException: findByPrimaryKey called with null argument"

      Is this expected? Is it maybe that the old behavior not in line with EJB specs? Or do the specs leave it open to interpretation?

      Thanks,

      Zorzella