File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes cannot be applied to Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "cannot be applied to" Watch "cannot be applied to" New topic

cannot be applied to

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 744

I am getting the following error:

This is my first piece of code:

This is the method that am calling

I checked a lot but unable to see the error in my code

Best regards
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

The two signatures shown in
are definitely not compatible so I suspect you are using an out of date class file.

Clear out all your class files, jar files and war files and re-build and re-deploy everything.

Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 744
Thanks a lot

Best regards
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 601

Having a method with this many arguments(18, i counted it.. ) is definitely not a good practice..
I agree. Here's the link:
subject: cannot be applied to