1 Reply Latest reply on Apr 3, 2003 2:07 AM by jason

    waring?? illegal type

    jason Newbie

      i deploy an BMP on jboss (3.0.4). however, there's warning issued -
      "Warning: The method return types defined in an Entity
      beans home interface MUST be legal types for RMI/IIOP."
      and
      "Warning: The method return values in the home interface
      must be of valid types for RMI/IIOP."
      what might be possible causes?
      i appreciate any suggestions,
      thank you very much.

        • 1. Re: waring?? illegal type
          jason Newbie

          >Bean : CompanyData
          >Method : public abstract CompanyData >findByPrimaryKey(BanNoPK) throws RemoteExce
          >ption, FinderException
          >Section: 12.2.9
          > "Warning: The method return types defined in an
          > Entity
          > beans home interface MUST be legal types for
          > RMI/IIOP."
          via the way, the only method defined in home interface is findByPrimaryKey() and its return type is Remote interface
          public CompanyData findByPrimaryKey(BanNoPK BanNo) throws RemoteException, FinderException;
          beside, return type of the method defined in BMP is PK class -
          public BanNoPK ejbFindByPrimaryKey(BanNoPK banNoPK) throws FinderException.
          > and
          >Bean : CompanyProcession
          CompanyProcession is a Session Bean
          >Method : public abstract CompanyProcession >create() throws CreateException, Remo
          >teException
          >Section: 7.10.6
          > "Warning: The method return values in the home
          > interface
          > must be of valid types for RMI/IIOP."

          in home interface :
          public CompanyProcession create() throws CreateException, RemoteException;
          in Bean class:
          public void ejbCreate(){