Home » Newcomers » Newcomers » Eclipse debug error
| Eclipse debug error [message #555861] |
Sun, 29 August 2010 13:52  |
GHenrik Messages: 3 Registered: August 2010 |
Junior Member |
|
|
I have a problem with debug mode, uninstalling-reinstalling eclipse/JDK have not solved it.
The program runs just fine on it's own. but eclipse throws errors at me whenever it enters a new class in debug mode.
Better just to show you.
http://www.youtube.com/watch?v=2KBGUApHpg0
If I put the break point at a later point after it has entered a class, it continues the debug just fine. If I keep step into(f5) it works through the error messages, continues with the program, gives me some more errors when it return to the parent class and finish the program correctly.
I don't know when it started doing that, I didn't use eclipse during summer.
Any answers would be helpful, the solutions I have tried from the net have all failed me.
If someone is interested, I can pm a ip and password for VNC session
public class TestPrintALine {
public static void main(String[] args) {
PrintALine test = new PrintALine("Hello");
System.out.println("Done");
}
}
public class PrintALine {
public PrintALine(String line) {
System.out.println(line);
}
}
Thread [main] (Suspended)
ClassNotFoundException(Throwable).<init>(String, Throwable) line: 217
ClassNotFoundException(Exception).<init>(String, Throwable) line: not available
ClassNotFoundException.<init>(String) line: not available
URLClassLoader$1.run() line: not available
AccessController.doPrivileged(PrivilegedExceptionAction<T>, AccessControlContext) line: not available [native method]
Launcher$ExtClassLoader(URLClassLoader).findClass(String) line: not available
Launcher$ExtClassLoader.findClass(String) line: not available
Launcher$ExtClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader.loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available
TestPrintALine.main(String[]) line: 9
[Updated on: Sun, 29 August 2010 14:01] Report message to a moderator
|
|
|
| Re: Eclipse debug error [message #555889 is a reply to message #555861] |
Mon, 30 August 2010 00:33   |
David Wegener Messages: 1155 Registered: July 2009 |
Senior Member |
|
|
On Sun, 2010-08-29 at 13:52 -0400, GHenrik wrote:
> I have a problem with debug mode, uninstalling-reinstalling eclipse/JDK have not solved it.
>
> The program runs just fine on it's own. but eclipse throws errors at me whenever it enters a new class in debug mode.
>
> Better just to show you.
> http://www.youtube.com/watch?v=2KBGUApHpg0
>
> If I put the break point at a later point after it has entered a class, it continues the debug just fine. If I keep step into(f5) it works through the error messages, continues with the program, gives me some more errors when it return to the parent class and finish the program correctly.
>
> I don't know when it started doing that, I didn't use eclipse during summer.
>
> Any answers would be helpful, the solutions I have tried from the net have all failed me.
My guess is that you have an exception breakpoint set. Class loading can
throw ClassNotFound/NoSuchClass that child class loaders handle when the
exception is thrown by a parent class loader. The child loader uses its
lookup path after the parent failure. The class is found and you
program completes normally. This isn't a bug, it is just how the
process works.
In the breakpoint view, there is a tab (or tool button) to show
exception breakpoints, check there to see what you might have set.
|
|
| |
| Re: Eclipse debug error [message #556005 is a reply to message #555984] |
Mon, 30 August 2010 10:17   |
Ed Merks Messages: 24546 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------010208000503080808070101
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Comments beow.
GHenrik wrote:
> David Wegener wrote on Mon, 30 August 2010 00:33
>> My guess is that you have an exception breakpoint set. Class loading can
>> throw ClassNotFound/NoSuchClass that child class loaders handle when the
>> exception is thrown by a parent class loader. The child loader uses its
>> lookup path after the parent failure. The class is found and you
>> program completes normally. This isn't a bug, it is just how the
>> process works.
>>
>> In the breakpoint view, there is a tab (or tool button) to show
>> exception breakpoints, check there to see what you might have set.
>
>
> Ok, so this is a part of how java works. So if I ask you to run the
> exact same program with same breakpoint, this will happen to
> everybody? I just tried this with two other computers with the same
> result. That thing will annoy me.
Generally you're asking the debugger to step into the logic from the
current point at which you've stopped. The first time you try to use a
class, it loads, and you end up stepping into the logic for loading it.
I've not seen the particular exception you've shown (it looks like an
exception breakpoint but I didn't see one in your list of exceptions)
but I often end up stepping into class loader logic. I just tell it to
*step out* and do another step into. In the video you do lots more
*step into*.
>
> So I can add some Java execution Breakpoint to avoid the 10 first
> exceptions or so, but I cant etc avoid URLClassLoader messages since
> it's not an exception.
Not sure what you mean by these messages? Note the suggestion was that
you already have an exception breakpoint and should remove it. (But I
didn't see one in your video.)
> Anyway, this seems like a bad idea. It nows starts to give exceptions
> other places. javascript://
>
>
>
> How can you guys live with this? I can't be the first one to find it
> annoying.
Maybe other people end up using step into selection...
>
> Case solved. But it feels so wrong.
--------------010208000503080808070101
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Comments beow.<br>
<br>
GHenrik wrote:
<blockquote cite="mid:i5gb0c$bop$1@build.eclipse.org" type="cite">David
Wegener wrote on Mon, 30 August 2010 00:33
<br>
<blockquote type="cite">My guess is that you have an exception
breakpoint set. Class loading can
<br>
throw ClassNotFound/NoSuchClass that child class loaders handle when
the
<br>
exception is thrown by a parent class loader. The child loader uses
its
<br>
lookup path after the parent failure. The class is found and you
<br>
program completes normally. This isn't a bug, it is just how the
<br>
process works.
<br>
<br>
In the breakpoint view, there is a tab (or tool button) to show
<br>
exception breakpoints, check there to see what you might have set.
<br>
</blockquote>
<br>
<br>
Ok, so this is a part of how java works. So if I ask you to run the
exact same program with same breakpoint, this will happen to everybody?
I just tried this with two other computers with the same result. That
thing will annoy me.
<br>
</blockquote>
Generally you're asking the debugger to step into the logic from the
current point at which you've stopped. The first time you try to use a
class, it loads, and you end up stepping into the logic for loading
it. I've not seen the particular exception you've shown (it looks like
an exception breakpoint but I didn't see one in your list of
exceptions) but I often end up stepping into class loader logic. I
just tell it to <b>step out</b> and do another step into. In the
video you do lots more <b>step into</b>.<br>
<blockquote cite="mid:i5gb0c$bop$1@build.eclipse.org" type="cite"><br>
So I can add some Java execution Breakpoint to avoid the 10 first
exceptions or so, but I cant etc avoid URLClassLoader messages since
it's not an exception.
<br>
</blockquote>
Not sure what you mean by these messages? Note the suggestion was that
you already have an exception breakpoint and should remove it. (But I
didn't see one in your video.)<br>
<blockquote cite="mid:i5gb0c$bop$1@build.eclipse.org" type="cite">Anyway,
this seems like a bad idea. It nows starts to give exceptions other
places. <a class="moz-txt-link-freetext" href="javascript://">javascript://</a>
<br>
<br>
<br>
<br>
How can you guys live with this? I can't be the first one to find it
annoying.
<br>
</blockquote>
Maybe other people end up using step into selection...<br>
<blockquote cite="mid:i5gb0c$bop$1@build.eclipse.org" type="cite"><br>
Case solved. But it feels so wrong.
<br>
</blockquote>
</body>
</html>
--------------010208000503080808070101--
|
|
| | |
| Re: Eclipse debug error [message #912711 is a reply to message #912557] |
Thu, 13 September 2012 23:24   |
Ed Merks Messages: 24546 Registered: July 2009 |
Senior Member |
|
|
Feritz,
If you tell it to continue, does it continue and run the application
further or does the application terminate completely? You removed all
breakpoints by clearing the breakpoints view?
On 13/09/2012 9:08 PM, feritz davies wrote:
> If try to run/debug my application, I am getting this errors
>
> debug cinfiguration
>
> Thread [main] (Suspended (exception ClassNotFoundException))
> URLClassLoader$1.run() line: 202
> AccessController.doPrivileged(PrivilegedExceptionAction<T>,
> AccessControlContext) line: not available [native method]
> Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 190
> Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean)
> line: 307
> Launcher$AppClassLoader.loadClass(String, boolean) line: 301
> Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 248
>
>
> I removed all breakpoints, still I am getting this error
>
> run configuration
>
> <terminated>ArchiveExtractorProcessor [Java Application]
> <terminated, exit value: 1>C:\bea10\jdk160_18\bin\javaw.exe
> (2012-09-13 11:52:25 AM)
>
>
>
> ECLIPSE.INI looks like this
>
> -startup
> plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
> -product
> org.eclipse.epp.package.jee.product
> --launcher.defaultAction
> openFile
> --launcher.XXMaxPermSize
> 256M
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> --launcher.defaultAction
> openFile
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Xms40m
> -Xmx512m
|
|
|
| Re: Eclipse debug error [message #913057 is a reply to message #912711] |
Fri, 14 September 2012 13:20   |
feritz davies Messages: 8 Registered: September 2012 |
Junior Member |
|
|
i have class file in jar com.t.framework.batch.JobController , this class is entered in Main Class entry text box
arguments are as follows
program arguments
jobdefinition/archiveExtractor.jdef FORCE_FROM_STEP01
vm arguments
-DAPP_HOME=C:\Documents and Settings\x12\t855_vox_3.0_dev\vobs\vox_source\vox
-DDATA_HOME=C:\Documents and Settings\x12\t855_vox_3.0_dev\vobs\vox_source\vox
-DENV=local
-DLEVEL1_SHORTNAME="vx"
-DLEVEL2_SHORTNAME="ae"

i emptied breakpoints in break point view
i can run hello world class file with main class, getting result too..
sometimes it get terminated
but when i run using the option debug configuration
it throews the following error , i m not able to do debugging further, but not getting terminated. i have to terminate it manually.
ArchiveExtractorProcessor [Java Application]
com.telus.framework.batch.JobController at localhost:2976
Thread [main] (Suspended (exception ClassNotFoundException))
URLClassLoader$1.run() line: 202
AccessController.doPrivileged(PrivilegedExceptionAction<T>, AccessControlContext) line: not available [native method]
Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 190
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 307
Launcher$AppClassLoader.loadClass(String, boolean) line: 301
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 248
C:\bea10\jdk160_18\bin\javaw.exe (2012-09-14 10:21:31 AM)
[Updated on: Fri, 14 September 2012 13:27] Report message to a moderator
|
|
|
| Re: Eclipse debug error [message #913296 is a reply to message #913057] |
Sat, 15 September 2012 03:10  |
Ed Merks Messages: 24546 Registered: July 2009 |
Senior Member |
|
|
Feritz,
I think this is influenced by Window->Preferences->Java->Debug, i.e.,
Suspend Execution on uncaught exception.
On 14/09/2012 7:20 PM, feritz davies wrote:
> i have class file in jar com.t.framework.batch.JobController , this
> class is entered in Main Class entry text box
> arguments are as follows
> program arguments
> jobdefinition/archiveExtractor.jdef FORCE_FROM_STEP01
>
> vm arguments
> -DAPP_HOME=C:\Documents and
> Settings\x12\t855_vox_3.0_dev\vobs\vox_source\vox
> -DDATA_HOME=C:\Documents and
> Settings\x12\t855_vox_3.0_dev\vobs\vox_source\vox
> -DENV=local
> -DLEVEL1_SHORTNAME="vx"
> -DLEVEL2_SHORTNAME="ae"
>
>
>
> i emptied breakpoints in break point view
>
>
> i can run hello world class file with main class, getting result too..
>
>
>
>
>
|
|
|
Goto Forum:
Current Time: Wed May 22 02:32:38 EDT 2013
Powered by FUDForum. Page generated in 0.03233 seconds
|