Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 53346 - Thread [main] (Suspended (exception ClassNotFoundException))
Summary: Thread [main] (Suspended (exception ClassNotFoundException))
Status: RESOLVED DUPLICATE of bug 47023
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.1.2   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-28 06:38 EST by Makoto Wada CLA
Modified: 2004-02-28 14:41 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Makoto Wada CLA 2004-02-28 06:38:32 EST
JAVAアプレット物理教材
http://www.nep.chubu.ac.jp/~nepjava/applet.htm


To whom it may concern,

With the following combination
    + Eclipse Debug Mode
    + Custom Dll
      (which is set through Path of Windows Environment
       Variable)
    + JNI jar file
      (which is set through 
       Debug -> ClassPath)
    + J2RE1.4.1_02

in the middle of execusion we receive the following message.
    - Thread [main] (Suspended (exception ClassNotFoundException))
         URLClassLoader$1.run() line: 198 [local variables unavailable]
         AccessController.doPrivileged(PrivilegedExceptionAction, 
AccessControlContext) line: not avialable [native method]
         Launcher$AppClassLoader(UrlClassLoader).findClass(String) line: 186
         Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 
299
         Launcher$AppClassLoader.loadClass(String, boolean) line: 265
         Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 255
         Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: 
315
         RecognizerFactory.construct(ObjectInputStream) line: not avialable 
[native method]
         Tester.main(String[]) line:29

When I run the same program with Eclipse's Run mode with the
same configuration the program executes without a
problem.  I have also checked that it works with the
following combination.

The following is received when trying to load a DLL while my 
app is running:
    + CommandPrompt (java)
    + Custom Dll
      (which is set through Path of Windows Environment
       Variable)
    + JNI jar file
      (which is set through ClassPath of Windows
       Environment Variable)
    + J2RE1.4.1_02

Could it be a Eclipse's Debug Mode bug?
Comment 1 Luc Bourlier CLA 2004-02-28 14:41:19 EST
It's nobody's bug ... :(

We ask the VM to stop for uncaught exception, but in some cases the VM stop for
a caught exception too, thinking it's a uncaught exception.
The specs says it's OK for the VM to do that, but we have no way to know if the
VM is right or not.
You can disable 'suspend execution on uncaught exception' in
window>preferences>java>debug.
We have a feature request to try to improve the debugger in this case (bug 52063).

More details in bug 47023.

*** This bug has been marked as a duplicate of 47023 ***