3 Replies Latest reply on Mar 25, 2005 7:48 AM by Jan Radl

    Entity Bean, with DB2 can't create

    Stefano Gallina Newbie

      Hi all,

      i have a simple Entity Bean; which has a multiple primarykey composed by three strings.
      When i call the create method passing a PrimaryKey object i get the error :

      javax.ejb.CreateException: Error checking if entity exists:com.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -302, SQLSTATE: 22001, SQLERRMC: null

      If i have an entity bean with one primary key everything works fine.
      I use JBuilderX to generate EntityBean, JBoss 3.2.7 and DB2 as database.
      I suspec that there are some problem with DB2 database.
      Any good suggestion ?
      Cheers.


      Stefano