cancel
Showing results for 
Search instead for 
Did you mean: 

UndeclaredThrowableException

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

thanks for ur attention , but the thing is i need to know the reason for exception ,why is it being thrown.

regards,

Guruvulu.