WebSphere Commerce suite - getCorrectiveActionMessageFromUserBundle

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Commerce suite > May 2006 > getCorrectiveActionMessageFromUserBundle





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author getCorrectiveActionMessageFromUserBundle

2006-05-12, 1:16 pm

I am trying to catch an application exception in a command, return to the same view. The Applicaiton exception is thrown as follows

throw new ECApplicationException(
MYMessages._ERR_CMD_INVALID_PARAM,
"OrderSummaryDisplayCmdImpl",
"Validate Parameters"
);

I have defined MyMessages and Message Key classes with resource properties on store specific directory. I am getting following error when I try to run in WSAD.

ECMessageHelper getCorrectiveActionMessageFromUserBundle
CMN0410E: The system failed to retrieve the message with key "{1}" from "Missing reource exception".

I would appreciate any help regarding this.

Robert Brown

2006-05-13, 7:15 pm

Just off the top of my head, it looks like you are not returning a
TypedProperty in your throw. I typically get the current NVPs available
to the command

TypedProperty tpNVPs = getRequestProperties();

add my appropriate error code for the JSP to display an appropriate
error message

tpNVPs.put("ErrorCode", "9999");

and then use tpNVPs in the throw

throw new ECApplicationException(MyMessages._ERR_MY_9999ERROR,
"classname", "methodname", "errorviewname", tpNVPs);

I'd prefer to see you place the error viewname and the TypedProperty
object in the throw. Hope this helps. No guarantees against typos...

R

> I am trying to catch an application exception in a command, return to the same view. The Applicaiton exception is thrown as follows
>
> throw new ECApplicationException(
> MYMessages._ERR_CMD_INVALID_PARAM,
> "OrderSummaryDisplayCmdImpl",
> "Validate Parameters"
> );
>
> I have defined MyMessages and Message Key classes with resource properties on store specific directory. I am getting following error when I try to run in WSAD.
>
> ECMessageHelper getCorrectiveActionMessageFromUserBundle
CMN0410E: The system failed to retrieve the message with key "{1}" from "Missing reource exception".
>
> I would appreciate any help regarding this.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com