erry from T-Mobile
-Original Message-
From: Justin Robbins
Date: Tue, 3 May 2011 09:11:09
To: Struts Users Mailing List
Reply-To: "Struts Users Mailing List"
Subject: Re: help with MethodFailedException in
ognl.OgnlRuntime.callAppropriateMethod
Hi Eric,
You are pointing
Which means: try changing your property name to something else; the tagId may
already be in use.
I also had a problem with a property name once. It might be useful to have a
wiki page with names already in use in struts.
Enviado a partir do meu HTC
- Reply message -
De: "Eric Reed"
Da
-To: "Struts Users Mailing List"
Subject: Re: help with MethodFailedException in
ognl.OgnlRuntime.callAppropriateMethod
Hi Eric,
You are pointing out the error? Here's the thing, and hopefully you
can set me straight here, I acknowledge there is no
setTagId([Ljava.lang.String
Does it throw the same error if its an Integer instead of an int?
Dave
On May 3, 2011 9:11 AM, "Justin Robbins" wrote:
> Hi Eric,
>
> You are pointing out the error? Here's the thing, and hopefully you
> can set me straight here, I acknowledge there is no
> setTagId([Ljava.lang.String;)]. After
Hi Eric,
You are pointing out the error? Here's the thing, and hopefully you
can set me straight here, I acknowledge there is no
setTagId([Ljava.lang.String;)]. After all, "tagId" is an integer in
my POJO. Why would I have a method for it that accepts a String? I'm
still getting up to speed on
Justin,
Your error:
> [java.lang.NoSuchMethodException:
> org.robbins.flashcards.model.Tag.setTagId([Ljava.lang.String;)] <public void setTagId(int tagId) { <-- INT
>this.tagId = tagId;
>}
Eric Reed
NYS Education Department
>>> Justin Robbins 5/3/2011 8:32 AM >
Since the stack trace is at Warn level and doesn't actually seem to be
breaking my code then maybe I'm best off just adjusting the log4j
level higher for the Ognl related packages?
# Struts OgnlUtil issues unimportant warnings
log4j.logger.com.opensymphony.xwork2.util.OgnlUtil=error
log4j.logger.c
Nope, my bad. After a full refactor I get the same error. Below are
snippets of the new code and most recently generated error.
Stack Trace excerpt:
2011-05-02 21:24:49,887 175361 ["http-bio-8080"-exec-7] WARN
com.opensymphony.xwork2.ognl.OgnlValueStack - Error setting expression
'tagId' with va
I tested it just now and I do NOT get the error when I refactor the
code from the POJO on down to the JSP to use "myId" instead of "id".
On Mon, May 2, 2011 at 8:43 PM, Dave Newton wrote:
> Just out of curiosity, does it do the same thing if it's not named "id"?
>
> d.
>
> On Mon, May 2, 2011 at
Just out of curiosity, does it do the same thing if it's not named "id"?
d.
On Mon, May 2, 2011 at 8:32 PM, Justin Robbins wrote:
> Anyone have any ideas on this one? I'd be most grateful for some advice.
>
> Someone suggested I use a newer version of the ognl jar. I was using
> "ognl-3.0.jar"
Anyone have any ideas on this one? I'd be most grateful for some advice.
Someone suggested I use a newer version of the ognl jar. I was using
"ognl-3.0.jar" which is what came with the Struts 2.2.1.1
distribution. I've since replaced it with "ognl-3.0.1.jar" but I'm
still receiving the same err
11 matches
Mail list logo