![]() |
|
Table 1: Basic bean class level validation
| Validation Condition | Error Messages |
|---|---|
| Public Constructor with no arguments | BeanName: Does not have a public constructor with no arguments. |
| Class Exists (Bean Class,Home,Remote) | BeanName: Could not load Class (No further validation done on the bean.) |
| Could not load Support Class | Bean Name: Could not load Support Class: Support Class Name. |
| Class Abstract | BeanName: Bean Class cannot be abstract.(except CMP 2.0). |
| Could not load Class fields | BeanName: Could not load Class field: Class Field. |
| Class Final | BeanName: Bean Class cannot be declared final. |
| Bean Class: Must be Public | BeanName: Bean Class must be declared public. |
| Bean Class: Static fields but not final | BeanName: All static fields have to be declared as final.: Field Name. |
| Environment Entries Invalid | BeanName: Environment entry has invalid value: Entry type,Value. |
| Bean Class: Finalize method | BeanName: Finalize method cannot be declared in the bean. |
| Home Interface: extends EJBHOME | BeanName: Home Interface does not extend EJBHOME (No further validation done). |
| Home Interface: Public | BeanName: Home Interface should be declared public. |
| Home Interface: Corresponding Methods | BeanName: Corresponding method for method <> not found. |
| Remote Interface: extends EJBOBJECT | BeanName: Remote Interface does not extend EJBOBJECT (No further validation done). |
| Remote Interface: Public | BeanName: Remote Interface should be declared public. |
| Method declared in DD present on the remote interface | BeanName: No method defined in the remote interface with the details: Details. |
| Create Method Exception | BeanName: Create Method does not throw Create/Remote Exception. |
| Remote Interface Corresponding Bean Class Methods | BeanName: No Cores method in bean class for: Remote Method Details. |
| Business Method: Not final | BeanName: Business Method cannot be declared final: Method Details. |
| Business Method: not public | BeanName: Business Method should be declared Public: Method Details. |
| Business Method: not static | BeanName: Business Method cannot be declared Static: Method Details. |
| Business Method: Valid Parameter types | BeanName: Invalid RMI-IIOP param type: Param Details. |
| Business Method: Valid Names | BeanName: Business Method names cannot start with ejb. |
| Business Method: Valid Return types | BeanName: Invalid RMI-IIOP return type: Return type Details. |
| Business Method: Remote Exception | BeanName: Business Method does not throw Remote Exception: Method Detail. |
| Method Permission Element: Method Present | BeanName: Method does not exist but declared for permissions. |
| Create Method: Return Type Remote Interface | Bean Name: Create method should return remote interface. |
| Create Method: Matching ejbCreate Method. | BeanName: Create method has no matching ejbCreate Method. |
| Home interface Methods: valid Parameter Types | BeanName: Invalid RMI-IIOP param type: Param Details. |
| Home interface Methods: valid Return Types | BeanName: Invalid RMI-IIOP return type: Return Details. |
| Assembly Descriptor: Method Permissions - Method Exists | BeanName: Method listed in Method permissions does not exist in the bean. |
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |