Re: NoSuchMethodException: while struts action method call ?

2014-06-25 Thread Mohit Gupta
Thanks Lukasz. I am already doing that. I found issue was parameters were passed twice with same name. removed extra one. Its working fine. On Tue, Jun 24, 2014 at 1:12 PM, Lukasz Lenart wrote: > Struts2 filter isn't used during FORWARD, you must explicite configure > it to do so: > > > st

Re: NoSuchMethodException: while struts action method call ?

2014-06-24 Thread Lukasz Lenart
Struts2 filter isn't used during FORWARD, you must explicite configure it to do so: strits2 /* REQUEST FORWARD 2014-06-23 13:17 GMT+02:00 Mohit Gupta : > Actually when i am redirecting from legacy action to > customer/customer-creater!create.action?custId=200, struts > 2 success

Re: NoSuchMethodException: while struts action method call ?

2014-06-23 Thread Mohit Gupta
Actually when i am redirecting from legacy action to customer/customer-creater!create.action?custId=200, struts 2 successfully does type conversion but not while forwarding the request to same url though same struts2 filter comes in to picture. Any ideas what the issue ? On Mon, Jun 23, 2014 at

NoSuchMethodException: while struts action method call ?

2014-06-23 Thread Mohit Gupta
I am hitting the customerAction (struts 2 action) from my legacy action with url customer/customer-creater!create.action?custId=200 As soon call goes to my customerAction i get below error ognl.MethodFailedException: Method "setCustId" failed for object com.actions.customer.CustomerCreateAction@c

Re: NoSuchMethodException

2008-09-18 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, fantastic. I've watched this code for ours but not seen that. Thanx a lot :) ~ Volker Dave Newton schrieb: | --- On Thu, 9/18/08, Volker Karlmeier wrote: |> I'm sorry that my answer is coming quit late, but I |> came back from work soon. Her

Re: NoSuchMethodException

2008-09-18 Thread Dave Newton
--- On Thu, 9/18/08, Volker Karlmeier wrote: > I'm sorry that my answer is coming quit late, but I > came back from work soon. Here's my code : > > _*struts.xml:*_ > ~[...] > ~ class="net.magiccode.houseman.action.RentalObjectAction" > method="{1}"> > ~ name="para

Re: NoSuchMethodException

2008-09-18 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Lukas, I'm sorry that my answer is coming quit late, but I came back from work soon. Here's my code : _*struts.xml:*_ http://struts.apache.org/dtds/struts-2.0.dtd";> ~ ~ ~ ~ ~value="globalMessages, navigation.propert

Re: NoSuchMethodException

2008-09-18 Thread Lukasz Lenart
Could you post some more details? Action code, config, the full stack trace? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

NoSuchMethodException

2008-09-18 Thread volker
Hi, I have an Action class called RentalObjectAction that is inherited by a class named I18nBaseAction. This I18nBaseAction contains a method called switchLanguage (public). When I try to call switchLanguage, which sets a value and returns SUCCESS, I get a NoSuchMethodException. What is my

Re: NoSuchMethodException: $Proxy18.find()

2007-03-06 Thread abpicol
Another way to grant this to work is make the Action implement an interface that has the desired method. So, ... create an interface ... interface I1 { String find(); } ... in your Action class declaration ... class MyStrutsAction implements I1 extends ActionSupport { ... } WHY TH

Re: NoSuchMethodException: $Proxy18.find()

2007-03-06 Thread Paul Benedict
Congrats! Adam Ruggles wrote: I found the solution to this and I wanted to post it on the list. adding proxy-target-class="true" fixes it. proxy-target-class="true" /> Adam Ruggles wrote: Creating a service object seems to have worked. Now I'm going to have to re-think using action support

Re: NoSuchMethodException: $Proxy18.find()

2007-03-05 Thread Adam Ruggles
I found the solution to this and I wanted to post it on the list. adding proxy-target-class="true" fixes it. proxy-target-class="true" /> Adam Ruggles wrote: Creating a service object seems to have worked. Now I'm going to have to re-think using action support. This project is not complicat

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
Creating a service object seems to have worked. Now I'm going to have to re-think using action support. This project is not complicated enough to warrant another layer. Thanks for your help. Paul Benedict wrote: Adam, I have never seen anyone attach Spring transactional logic to an action

[OT] Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Dave Newton
--- Paul Benedict <[EMAIL PROTECTED]> wrote: > I have never seen anyone attach Spring transactional > logic to an action, and called DAOs straight from the > action. That's not good practice, because it mashes > web, business, and data layers all in one place. Here's my question/comment: to me it

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
I'll give that a try, thanks. Paul Benedict wrote: Adam, I have never seen anyone attach Spring transactional logic to an action, and called DAOs straight from the action. That's not good practice, because it mashes web, business, and data layers all in one place. I wouldn't blame struts h

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Paul Benedict
Adam, I have never seen anyone attach Spring transactional logic to an action, and called DAOs straight from the action. That's not good practice, because it mashes web, business, and data layers all in one place. I wouldn't blame struts here (yet). I'd first move your code into a service ob

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
Yes, I tried both methods. For whatever reason when I extend ActionSupport it no longer works. Dave Newton wrote: Does it do the same thing if you don't explicitly declare the bean (put the classname directly in the struts.xml file)? Just curious... I don't have direct experience with what yo

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Dave Newton
Does it do the same thing if you don't explicitly declare the bean (put the classname directly in the struts.xml file)? Just curious... I don't have direct experience with what you're doing. --- Adam Ruggles <[EMAIL PROTECTED]> wrote: > Ok I think I found the problem. If I remove the > "extends

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
Ok I think I found the problem. If I remove the "extends ActionSupport" it works without any problems. I know "extends ActionSupport" works with Webwork 2, is this a bug or a change in implementation? Adam Ruggles wrote: I am following the guide here http://cwiki.apache.org/S2WIKI/struts-2-s

NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
I am following the guide here http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html For some reason when trying to map a method other than execute I recieve the following error: - Servlet.service() for servlet default threw exception java.lang.NoSuchMethodException: $Proxy18.find() B

NoSuchMethodException errors for all validation-rules.xml calls

2004-09-15 Thread Allistair Crossley
Hi All, I setup a struts/validator webapp this evening using org.apache.struts.validator.DynaValidatorForm on the form bean in struts-config and started receiving NoSuchMethodException exceptions linked to the built-in validation rules I was requested for my fields. The stack traces can be

Re: catch NoSuchMethodException

2004-04-17 Thread Adam Hardy
You can do that in the web.xml deployment descriptor. There's a section you set up defining what to do with various classes of exception. On 04/16/2004 11:54 PM Nicolas wrote: hi when i use the DispatchAction and someone tries to access a method which doesn't exist a NoSuchMethodEx

catch NoSuchMethodException

2004-04-16 Thread Nicolas
hi when i use the DispatchAction and someone tries to access a method which doesn't exist a NoSuchMethodException is thrown. how can i catch this exception and redirect or at least change the output ? regards nicolas ---