NoSuchMethodException

T

tim

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.
 
D

Dipankar

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
 
J

jvsoft.org

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.
Just replace jar file with new version.

http://www.developerzone.biz/
 
T

tim

Just replace jar file with new version.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,247
Latest member
crypto tax software1

Latest Threads

Top