Thanks for the prompt response.  Having had a look at the code in Xwork
that comes as part of Struts 2 (included below) it seems to log it
regardless of the devMode.

This is the same for 2.0.4 and 2.1.0.

I cannot believe this hasn't been spotted before now, so I assume I am
doing something wrong.

try {
    stack.setValue(name, value);
} catch (RuntimeException e) {
    if (devMode) {
        String developerNotification =
LocalizedTextUtil.findText(ParametersInterceptor.class,
"devmode.notification", ActionContext.getContext().getLocale(),
"Developer Notification:\n{0}", new Object[]{
                e.getMessage()
        });
        LOG.error(developerNotification);
        if (action instanceof ValidationAware) {
            ((ValidationAware)
action).addActionMessage(developerNotification);
        }
    } else {
        LOG.error("ParametersInterceptor - [setParameters]: Unexpected
Exception caught setting '"+name+"' on '"+action.getClass()+": " +
e.getMessage());
    }
}


-----Original Message-----
From: Daniel Baldes [mailto:[EMAIL PROTECTED] 
Sent: 14 February 2008 10:14
To: Struts Users Mailing List
Subject: Re: ParametersInterceptor setting values using a String[]

Matthew Seaborn wrote:
> Why is this happening and short of creating my own TypeConverter or 
> blocking it in the logger config, how can I stop this error being
logged 
> for GET requests?

AFAIK this error is only logged in devMode.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



________________________________________________________________________

CONFIDENTIALITY - This email and any files transmitted with it, are 
confidential, may be legally privileged and are intended solely for the use of 
the individual or entity to whom they are addressed. If this has come to you in 
error, you must not copy, distribute, disclose or use any of the information it 
contains. Please notify the sender immediately and delete them from your system.

SECURITY - Please be aware that communication by email, by its very nature, is 
not 100% secure and by communicating with Perform Group by email you consent to 
us monitoring and reading any such correspondence.

VIRUSES - Although this email message has been scanned for the presence of 
computer viruses, the sender accepts no liability for any damage sustained as a 
result of a computer virus and it is the recipient’s responsibility to ensure 
that email is virus free.

AUTHORITY - Any views or opinions expressed in this email are solely those of 
the sender and do not necessarily represent those of Perform Group.

COPYRIGHT - Copyright of this email and any attachments belongs to Perform 
Group, Companies House Registration number 6324278.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to