• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception occured during Event Dispatching

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am getting the following error,

Exception occured during Event Dispatching:
java.lang.NoSuchMethodError:java/net/URLEncoder.encode(Ljava/lang/String;Ljava/lang/String Ljava/lang/String;
at getURLPostString2.<init> (bytecode 552)
at getURL2.<init> (bytecode 200)
at testFrame.actionPerformed(bytecode 224)
at java.awt.Button.processActionEvent(bytecode 12)---- --
I initially had URLEncoder.encode() method in getURLPostString2.java then i removed that method from that class itself. i have the right method now in testFrame.java, there is an other class called fetchURL.java which uses the same method and it doesnot throw any exception. but the same exception is occuring in getURLPostString2.java even when i removed encode method from getURLPostString2.java. i have done all the necessary stuff like saving it and recompiling it but still the problem persists
i am using jeode evm to compile my java files
why is this weird problem occuring even when we have removed that method.
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Delete all the class files you have and try compiling again.
 
reply
    Bookmark Topic Watch Topic
  • New Topic