Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Debugger stops with FileNotFoundException
Debugger stops with FileNotFoundException [message #197060] Wed, 28 February 2007 23:02 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
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
>
Re: Debugger stops with FileNotFoundException [message #197349 is a reply to message #197060] Thu, 01 March 2007 23:51 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Please don't cross-post to multiple groups. Choose what seems to be the
most appropriate one and the community will re-direct you if it is the
wrong place.

Eric
Previous Topic:Displaying the full path in the title bar
Next Topic:NoSuchFieldError
Goto Forum:
  


Current Time: Thu Apr 25 22:41:22 GMT 2024

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

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

Back to the top