1 Reply Latest reply on Mar 31, 2005 4:02 PM by dab

    EXCEPTION: EJB home methods are not allowed to access CMP or

    dab

      I do a .findByName("xyz") which succeds.

      Then any attempt to access the CMP elements of the bean cause an exception of type: java.rmi.NoSuchObjectException with the message

      "EJB home methods are not allowed to access CMP or CMR fields: methodName=getLocation"

      "Location" is one of the CMP fields, but the exception occurs when I call
      .getName().

      Note that this is happening when using a remote interface. It may also happen for locals but I've yet to try.

      Any advice appreciated!