Debugger stops with FileNotFoundException [message #197060] |
Wed, 28 February 2007 23:02 |
Eclipse User |
|
|
|
Originally posted by: keith.1.walker.lmco.com
This is a follow-up to the posting "Unexpected breakpoint in debugger". I
didn't find a bug report as was suggested in that posting.
When I run my program normally, everything is fine. But when I run in the
debugger, I get the error below. I've tried changing this option with no
effect: Window>Preferences>Java>Debug>Suspend execution on uncaught
exceptions
The problem seems to happen in cases where a class is instantiated from
another branch in the source tree or in a different project or from an
external jar. (I've double checked that referenced project is in the
Build Path and in the Referenced Projects.) It works in the very simple
case where the classes are in the same project and source tree.
Setup:
Eclipse 3.2.0 using JRE 1.4.2
Windows XP Pro
Has anyone else run into this?
Thanks,
Keith
Thread [main] (Suspended (exception FileNotFoundException))
URLClassPath$JarLoader.getJarFile(URL) line: 576
URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: 545
URLClassPath$3.run() line: 323
AccessController.doPrivileged(PrivilegedExceptionAction) line: not
available [native method]
URLClassPath.getLoader(URL) line: 312
URLClassPath.getLoader(int) line: 289
URLClassPath.getResource(String, boolean) line: 159
URLClassLoader$1.run() line: 191
AccessController.doPrivileged(PrivilegedExceptionAction,
AccessControlContext) line: not available [native method]
Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 187
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 289
Launcher$AppClassLoader.loadClass(String, boolean) line: 274
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 235
Launcher$AppClassLoader(ClassLoader).loadClassInternal(Strin g) line: 302
DebugClass.foo() line: 13
DebugTest2.doSomething() line: 17
DebugTest2.main(String[]) line: 10
|
|
|
Re: Debugger stops with FileNotFoundException [message #197078 is a reply to message #197060] |
Thu, 01 March 2007 01:18 |
Darin Swanson Messages: 2386 Registered: July 2009 |
Senior Member |
|
|
Do you have an exception breakpoint set for FileNotFoundException...check
the breakpoints view
HTH
Darins
"Keith" <keith.1.walker@lmco.com> wrote in message
news:5c5861815783b53570b8ebd5b5792b00$1@www.eclipse.org...
> This is a follow-up to the posting "Unexpected breakpoint in debugger". I
> didn't find a bug report as was suggested in that posting.
>
> When I run my program normally, everything is fine. But when I run in the
> debugger, I get the error below. I've tried changing this option with no
> effect: Window>Preferences>Java>Debug>Suspend execution on uncaught
> exceptions
>
> The problem seems to happen in cases where a class is instantiated from
> another branch in the source tree or in a different project or from an
> external jar. (I've double checked that referenced project is in the
> Build Path and in the Referenced Projects.) It works in the very simple
> case where the classes are in the same project and source tree.
>
> Setup:
> Eclipse 3.2.0 using JRE 1.4.2 Windows XP Pro
>
> Has anyone else run into this?
>
> Thanks,
> Keith
> Thread [main] (Suspended (exception FileNotFoundException))
> URLClassPath$JarLoader.getJarFile(URL) line: 576
> URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: 545
> URLClassPath$3.run() line: 323
> AccessController.doPrivileged(PrivilegedExceptionAction) line: not
> available [native method] URLClassPath.getLoader(URL) line: 312
> URLClassPath.getLoader(int) line: 289 URLClassPath.getResource(String,
> boolean) line: 159 URLClassLoader$1.run() line: 191
> AccessController.doPrivileged(PrivilegedExceptionAction,
> AccessControlContext) line: not available [native method]
> Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 187
> Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 289
> Launcher$AppClassLoader.loadClass(String, boolean) line: 274
> Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 235
> Launcher$AppClassLoader(ClassLoader).loadClassInternal(Strin g) line: 302
> DebugClass.foo() line: 13 DebugTest2.doSomething() line: 17
> DebugTest2.main(String[]) line: 10
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.08024 seconds