Unexpected breakpoint in debugger [message #92338] |
Thu, 04 September 2003 10:54  |
Eclipse User |
|
|
|
Originally posted by: tbnews.burnskids.com
I am experiencing odd behavior when running in the debugger - the debugger
insists on breakpointing on a FileNotFoundException being thrown as the
result of class loading. I have no breakpoints listed on the 'Breakpoints'
tab in the debugger, and have tried adding and removing the
FileNotFoundException. In my current case, I must proceed a total of 6
times before the application runs without suspending. (Note that if I
actually add the FileNotFoundException as a breakpoint and break on caught
and uncaught exceptions the thread suspends on the order of 85 times before
running to completion.)
I have a coworker that experiences this problem as well when he runs Resin,
but there are 6 others in the office that have not experienced any problems
at all. We are completely mystified at this point. After experiencing the
problem in 2.1.0, I upgraded to 2.1.1 with no changes.
Following is the stack of the first time the thread suspends.
Thread [main] (Suspended (exception FileNotFoundException))
URLClassPath$JarLoader.getJarFile(URL) line: 573
URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: 542
URLClassPath$6.run() line: 720
AccessController.doPrivileged(PrivilegedExceptionAction) line: not
available [native method]
URLClassPath$JarLoader.getResource(String, boolean, Set) line: 716
URLClassPath$JarLoader.getResource(String, boolean) line: 676
URLClassPath.getResource(String, boolean) line: 157
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
Test.main(String[]) line: 20
Any suggestions?
t
|
|
|
Re: Unexpected breakpoint in debugger [message #92429 is a reply to message #92338] |
Thu, 04 September 2003 11:37   |
Eclipse User |
|
|
|
And this is a caught exception?
Have you tried turning off Window>Preferences>Java>Debug>Suspend execution
on uncaught exceptions?
Are you and your co-workers all using the same VM? Which VM?
It might be interesting for us to have a bug report so we can at least
document the "weirdness"
Thanks
Darins
"Thomas Burns" <tbnews@burnskids.com> wrote in message
news:bj7jm7$8ck$1@eclipse.org...
> I am experiencing odd behavior when running in the debugger - the debugger
> insists on breakpointing on a FileNotFoundException being thrown as the
> result of class loading. I have no breakpoints listed on the
'Breakpoints'
> tab in the debugger, and have tried adding and removing the
> FileNotFoundException. In my current case, I must proceed a total of 6
> times before the application runs without suspending. (Note that if I
> actually add the FileNotFoundException as a breakpoint and break on caught
> and uncaught exceptions the thread suspends on the order of 85 times
before
> running to completion.)
>
> I have a coworker that experiences this problem as well when he runs
Resin,
> but there are 6 others in the office that have not experienced any
problems
> at all. We are completely mystified at this point. After experiencing
the
> problem in 2.1.0, I upgraded to 2.1.1 with no changes.
>
> Following is the stack of the first time the thread suspends.
>
> Thread [main] (Suspended (exception FileNotFoundException))
> URLClassPath$JarLoader.getJarFile(URL) line: 573
> URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: 542
> URLClassPath$6.run() line: 720
> AccessController.doPrivileged(PrivilegedExceptionAction) line: not
> available [native method]
> URLClassPath$JarLoader.getResource(String, boolean, Set) line: 716
> URLClassPath$JarLoader.getResource(String, boolean) line: 676
> URLClassPath.getResource(String, boolean) line: 157
> 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
> Test.main(String[]) line: 20
>
> Any suggestions?
>
> t
>
>
|
|
|
Re: Unexpected breakpoint in debugger [message #92503 is a reply to message #92429] |
Thu, 04 September 2003 12:13   |
Eclipse User |
|
|
|
Originally posted by: tbnews.burnskids.com
"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message news:bj7m2k$bdi$1@eclipse.org...
> And this is a caught exception?
Yes, indeedy. It appears to be part of the behavior of the normal class loading
framework supplied by the Java core. I can (and do) successfully proceed each
time the thread suspends on the exception.
> Have you tried turning off Window>Preferences>Java>Debug>Suspend execution
> on uncaught exceptions?
Excellent! You have just provided me with a much-needed workaround. My
best guess would be that for some reason Eclipse seems to think that these
exceptions are uncaught exceptions when they are, in fact, being handled by
the class loading framework.
> Are you and your co-workers all using the same VM? Which VM?
We experimented. I tried with all of Eclipse 2.1.0, 2.1.1,
JVM 1.4.1_02, 1.4.1_03, and 1.4.2_01 and had the same behavior under
all arrangements. One coworker without problems is using Eclipse 2.1.0
and VM 1.4.1_01, two others have no issues with the 1.4.1_03 VM using
Eclipse 2.1.0.
> It might be interesting for us to have a bug report so we can at least
> document the "weirdness"
I can submit. Just wanted to make sure it wasn't a red herring of some sort.
> Thanks
> Darins
>
> "Thomas Burns" <tbnews@burnskids.com> wrote in message news:bj7jm7$8ck$1@eclipse.org...
> > I am experiencing odd behavior when running in the debugger - the debugger
> > insists on breakpointing on a FileNotFoundException being thrown as the
> > result of class loading. I have no breakpoints listed on the 'Breakpoints'
> > tab in the debugger, and have tried adding and removing the
> > FileNotFoundException. In my current case, I must proceed a total of 6
> > times before the application runs without suspending. (Note that if I
> > actually add the FileNotFoundException as a breakpoint and break on caught
> > and uncaught exceptions the thread suspends on the order of 85 times before
> > running to completion.)
> >
> > I have a coworker that experiences this problem as well when he runs Resin,
> > but there are 6 others in the office that have not experienced any problems
> > at all. We are completely mystified at this point. After experiencing the
> > problem in 2.1.0, I upgraded to 2.1.1 with no changes.
> >
> > Following is the stack of the first time the thread suspends.
[dump elided]
|
|
|
Re: Unexpected breakpoint in debugger [message #92518 is a reply to message #92503] |
Thu, 04 September 2003 12:32  |
Eclipse User |
|
|
|
> Excellent! You have just provided me with a much-needed workaround. My
> best guess would be that for some reason Eclipse seems to think that these
> exceptions are uncaught exceptions when they are, in fact, being handled
by
> the class loading framework.
We have seen some weirdness here in the past with exceptions being thrown in
and around natives.
Glad you have a workaround and we look forward to your bug report.
Darins
|
|
|
Powered by
FUDForum. Page generated in 0.08291 seconds