If I get a NoSuchMethodException, does that mean the class is being
found but there is no method with the specified name in the class?
I'm trying to use the validator feature of Struts and I'm getting this
error.
Any suggestions? I assume I'm using either too old a Struts.jar file or
too new of one.
Something is out of sync.
Dipankar - 20 Sep 2006 06:00 GMT
Hi,
"java.lang.NoSuchMethodException" is thrown when a particular method is
not found.
Yes it can happen if your jar files are not of the proper version.
Cheers!!
Dips
> If I get a NoSuchMethodException, does that mean the class is being
> found but there is no method with the specified name in the class?
[quoted text clipped - 3 lines]
> too new of one.
> Something is out of sync.
jvsoft.org@gmail.com - 20 Sep 2006 08:56 GMT
> If I get a NoSuchMethodException, does that mean the class is being
> found but there is no method with the specified name in the class?
[quoted text clipped - 3 lines]
> too new of one.
> Something is out of sync.
Just replace jar file with new version.
http://www.developerzone.biz/
tim@nocomment.com - 20 Sep 2006 22:59 GMT
> > If I get a NoSuchMethodException, does that mean the class is being
> > found but there is no method with the specified name in the class?
[quoted text clipped - 6 lines]
>
> http://www.developerzone.biz/
I solved the problem. The validation-rule.xml file was incompatible
with the struts.jar file.
While a method with the same name of a particular class was there, an
extra parameter was added or removed so that they didn't match.
When I got matching files, that error went away.