File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Exception occured during Event Dispatching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Exception occured during Event Dispatching" Watch "Exception occured during Event Dispatching" New topic

Exception occured during Event Dispatching

Chandhrasekar Saravanan
Ranch Hand

Joined: Jun 16, 2002
Posts: 57
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 then i removed that method from that class itself. i have the right method now in, there is an other class called which uses the same method and it doesnot throw any exception. but the same exception is occuring in even when i removed encode method from 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.
Murali Nanchala
Ranch Hand

Joined: Mar 14, 2001
Posts: 74
Delete all the class files you have and try compiling again.

"It is almost always answered in the API" - Murali Nanchala
I agree. Here's the link:
subject: Exception occured during Event Dispatching
It's not a secret anymore!