Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

NoSuchMethodException

Thread view: 
tim@nocomment.com - 20 Sep 2006 02:45 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?
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.