Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet.service() for servlet action threw exception java.lang.NoSuchMethodError:

 
Arlene Cau
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I am using Eclipse with JBoss 5.1 with jdk 1.6.
I am getting the above error in one of my jsps.
Here is the code it fails on...
eventResult.setEventScoreElementList(null); /// public void setEventScoreElementList(List<EventScoreElement> list) { eventScoreElementList = list; }

ERROR [action].error:419 - Servlet.service() for servlet action threw exception
java.lang.NoSuchMethodError: com.brainbench.alttest.event.EventResult.setEventScoreElementList(Ljava/util/List;)V

Could it be that its a setEventScoreElementList is looking for a java.util.List param but getting the null instead?
I had this working on JBoss 4.0.5 but now it won't work.
Any help please!!!
I have even tried to switch to jdk 1.5 but still won't work...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic