Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Unhandled exception caught in event loop.
Unhandled exception caught in event loop. [message #98154] Tue, 23 September 2003 04:20 Go to next message
Eclipse UserFriend
Originally posted by: werner.keplinger.fh-hagenberg.at

I want to create an object of a class, that is not on the classpath.
Executed in a normal main-method the code snippet below works perfectly to
achieve that, however when it is executed in the run-method of an
IObjectActionDelegate I get the following error message: "Unhandled
exception caught in event loop.".
What is the reason for that error message? How can it be avoided ?

Werner


//===code
snippet===================================================== =========

String absoluteClassFileLocation = ...;
String packageName = ...;
String className= ...;

File classFile = new File(absoluteClassFileLocation);
URLClassLoader classloader = URLClassLoader.newInstance(new URL[]

classFile.toURL()});
Class c = classloader.loadClass(packageName + "." + className);

try {
Constructor constructor = c.getConstructor(new Class[] {
String.class });
Object o = constructor.newInstance(new Object[] {"aString" });
} catch (Exception e) {
e.printStackTrace();
}
Re: Unhandled exception caught in event loop. [message #98169 is a reply to message #98154] Tue, 23 September 2003 10:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO--SPAM.us.ibm.com

Take a look in the .metadata/.log file. The full stack trace should be
in there.

Rich
Re: Unhandled exception caught in event loop. [message #101328 is a reply to message #98169] Sat, 04 October 2003 19:32 Go to previous message
Eclipse UserFriend
Got too bored with that. Finally logged a bug,
if you want to vote ;-)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=44188

--
Steve
Previous Topic:stupid simple question about indention
Next Topic:Using Sun's deadlock detection utility (i.e., ctrl-break on console)
Goto Forum:
  


Current Time: Sat Apr 26 00:34:05 EDT 2025

Powered by FUDForum. Page generated in 0.03240 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top