Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Eric Reed
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

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Miguel
Reed" Data: ter, Mai 3, 2011 13:37 Assunto: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod Para: "Struts Users Mailing List" Justin, Your error: > [java.lang.NoSuchMethodException: > org.robbins.flashcards.model.Tag.setTagId([Ljava.lang.String;)]

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread jlmagc
-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

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Dave Newton
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

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Justin Robbins
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

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Eric Reed
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 >

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Justin Robbins
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

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-02 Thread Justin Robbins
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

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-02 Thread Justin Robbins
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

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-02 Thread Dave Newton
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"

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-02 Thread Justin Robbins
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

help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-02 Thread Justin Robbins
Hi folks, I have a working Action and JSP form that I'm using for creating new entities in my very basic Struts 2.2.1.1 app. I'm trying to modify the app to re-use the JSP form with editing of entities. I added a hidden "ID" tag and now I'm getting errors when I submit the form. Can someone plea