1 Reply Latest reply on May 11, 2003 10:18 PM by Yanik Crépeau

    Exception raised in module user op edithome

    Yanik Crépeau Newbie

      I have this error. When I click "change homepage", a bunch of exceptions are raised. This happens only when logged as 'admin'. With regular users, no problem, no exceptions, no error.

      23:39:40,668 ERROR [LogInterceptor] TransactionRolledbackLocalException, causedBy:
      java.lang.NullPointerException
      at org.jboss.nukes.core.ejb.UserEJB$Proxy.getPersonalMenuStatus()...
      23:39:40,678 ERROR [Page] Module user raised a runtime exception when invoking operation edithome
      javax.ejb.TransactionRolledbackLocalException: null; CausedByException is:
      null...

        • 1. Re: Exception raised in module user op edithome
          Yanik Crépeau Newbie

          Found reason.

          In table NUKES_USERS when the column PN_UBLOCKON contains NULL (should contain TRUE or FALSE), the getPersonalMenuStatus() method in org.jboss.nukes.core.ejb.UserEJB.java (or the generated method by the EJB 2 magic) is unable to handle NULL.

          Solution:

          a) Correct the setup.ddl file to set PN_UBLOCKON to false (and by the way the PN_NOSCORE column should be set to a non-null value as well).

          b) Write more code to trap (try,catch,finally) and set a default value in the case of an exception is raised when a EJB getXXX method is called.