3 Replies Latest reply on Jan 30, 2002 2:50 PM by d.amit

    Warning while deploying entity beans EJB 1.1

    d.amit

      Hi,

      I am trying to deploy an entity bean(container managed) confirming to EJB1.1, I get the following errors dumped on the jboss console for each and every method of my entity bean. Error message :


      [ERROR,ContainerFactory]
      Bean : SessionBean
      Method : public abstract long getUserName() throws RemoteException, EJBException
      Section: 9.2.7
      Warning: The exceptions thrown by methods in the remote interface must be valid
      types for RMI/IIOP

      Bean as such works fine, just querious if I am missing some thing and when such an warnig is raised by jboss EJB Verifier. I am deploying it using Together soft IDE tool.

      Thanks in advance.
      -Amit

        • 1. Re: Warning while deploying entity beans EJB 1.1
          ppetit

          Hi,
          RMI-IIOP needs objects implementing Serializable.
          EJBException does not directly implement Serializable, but inherits Serializable from its super class.
          Perhaps your compiler or your j2sdkee is too old to take this into account.
          Perhaps upgrading your J2SDKEE version to v1.3 could help.
          Philippe

          • 2. Re: Warning while deploying entity beans EJB 1.1
            hrangamana

            > Hi,
            > RMI-IIOP needs objects implementing Serializable.
            > EJBException does not directly implement
            > Serializable, but inherits Serializable from its
            > super class.
            > Perhaps your compiler or your j2sdkee is too old to
            > take this into account.
            > Perhaps upgrading your J2SDKEE version to v1.3 could
            > help.
            > Philippe

            It's not because of the compiler. It's jboss verifier. This topic has been discussed in the mailing list a couple of months ago.
            If your method has EJBException (or any subclass of RuntimeException), jboss verifier marks it as invalid according to RMI/IIOP. IMHO, it is ... but this is how it's working for now. Just remove EJBException from the throws clause and this message will disappear ..

            Reguards

            --Hermann

            • 3. Re: Warning while deploying entity beans EJB 1.1
              d.amit

              Thanks for your responses.

              I do not have EJBException thrown by any of the method in the entity bean classes. Also they are following EJB 1.1 so each get/set method in entity bean is implemented by me. The entity bean class is also not declared as abstract. Even after not declaring either the class or the methods as abstract, also not throwing EJBException I am getting the error message dumped on the screen.

              I forgot to mention I am using latest stable release i.e JBOSS 2.4.4 release with tomcat and JDK1.3.1 version.

              Thank you,
              Amit.