Discussions

General J2EE: EJB Error updating table

  1. EJB Error updating table (2 messages)

    I am getting Error while updating a table ..the error message is

    JBO-29000: Unexpected exception caught javax.ejb.EJBException, msg=Transaction was rolled back. java.lang.NullPointerException; nested exception is java.lang.NullPointerException.

    Transaction was rolled back: java.lang.NullPointerException; nested exception is java.lang.NullPointerException.

    I have a CMP for a table. This beans use Data Transfer Objects also to retain the session values. To update the Database and also to fetch the value.

    When updating from the form DTO gets updated..but not the actual table.

    Can somebody let me know why and how to fix this

    Thanks in advance

    Threaded Messages (2)

  2. check these[ Go to top ]

    HI,
      You may be loading your DVO with values,but before inserting the values into database,youe may be loosing the data.SO just print all the values ,where you are updating the table,and check any value is coming as null.I hope this will clear your problem
     Regards
      Balaji
  3. EJB Error updating table[ Go to top ]

    Now the Error has gone..But my CMP is not updating the table. How could i trace out why its not updating the table.

    Any advice will be appreciated