Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Oh No, Error ! is shown instead of my custom error message

Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 2, 2013

Hi All ,

I have a plugin which uses the webwork module , when the action is completed I do some validation and based on that provide an error message view (Velocity template) , However for one case I am getting the error message as "Oh No , Error !" .. This message is not defined in my plugin .

Can someone please explain why i am getting this message instead of my custom message ?

Thank you :)

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
MattS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 2, 2013

The Oh No error is usually when something went wrong during the action code. The action method doFoo is supposed to get to where it returns a string that is the name of the resource in your action element, e.g. myerror.vm

Short term, add some debugging output to the log file to check you are reaching the return statement of your action method. Check what string is returned and that it matches what you defined in atlassian-plugin.xml

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 3, 2013

I have this statement in a velicity template used by a recipe in my book. An "error" view for some action.

0 votes
Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 2, 2013

May be @Jobin can help me out , I found this while searching .. Is this some kind of default error message ?

TAGS
AUG Leaders

Atlassian Community Events