When I try to throw an exception from a get/set method in an entity bean
using CMP, Orion shows the following error during deployment:

Auto-deploying entitybeans.jar (Class 'com.gardnersys.ejb.entity.TmsObject'
had
been updated)... TmsDeviceBean_PersistenceManager4.java:30: Exception
java.rmi.R
emoteException must be caught, or it must be declared in the throws clause
of th
is method.
                super.setTmsObject(value);
                                  ^
1 error
Error compiling file:/C:/tmsobjects/entitybeans.jar: Syntax error in source

Am I not allowed to throw an exception, or is there something else that is
wrong?



Reply via email to