on 06-27-2006 6:29 AM
hi,
i have a entity bean with some finder methods,one of the method is throwing an UndeclaredThrowableException.
i am getting "java.lang.Exception: Incorect Operation" as the cause of the UndeclaredThrowableException . what could be the possible reason for this .
regards,
guru
Hi,
You have missed to throw an checked exception. Add the declaration "throws Exception" in your function declaration to solve the problem. You can give Exception or if you know the checked Exception name you can give that name.
"throws CheckedException"
hope this helps.
regards,
P.Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.