Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse debug error
Eclipse debug error [message #555861] Sun, 29 August 2010 17:52 Go to next message
GHenrik  is currently offline 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 18:01]

Report message to a moderator

Re: Eclipse debug error [message #555889 is a reply to message #555861] Mon, 30 August 2010 04:33 Go to previous messageGo to next message
David Wegener is currently offline David Wegener
Messages: 1346
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 #555984 is a reply to message #555889] Mon, 30 August 2010 13:16 Go to previous messageGo to next message
GHenrik  is currently offline GHenrik
Messages: 3
Registered: August 2010
Junior Member
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.

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.
Anyway, this seems like a bad idea. It nows starts to give exceptions other places.


How can you guys live with this? I can't be the first one to find it annoying.

Case solved. But it feels so wrong.
Re: Eclipse debug error [message #556005 is a reply to message #555984] Mon, 30 August 2010 14:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26150
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 #556048 is a reply to message #556005] Mon, 30 August 2010 16:29 Go to previous messageGo to next message
GHenrik  is currently offline GHenrik
Messages: 3
Registered: August 2010
Junior Member
"I just tell it to step out and do another step into."

Step out? Do you mean step return or am I missing a secret button. I still need to step return a couple of times to get back to semi continue program.


"Not sure what you mean by these messages? Note the suggestion was that you already have an exception breakpoint and should remove it. (But Ididn't see one in your video.)"

Yeah, I pretty much just started to try different things. Thanks for answer.
Re: Eclipse debug error [message #912557 is a reply to message #556048] Thu, 13 September 2012 19:08 Go to previous messageGo to next message
feritz davies is currently offline feritz davies
Messages: 8
Registered: September 2012
Junior Member
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 #912711 is a reply to message #912557] Fri, 14 September 2012 03:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26150
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 17:20 Go to previous messageGo to next message
feritz davies is currently offline 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"

gvdf

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 17:27]

Report message to a moderator

Re: Eclipse debug error [message #913296 is a reply to message #913057] Sat, 15 September 2012 07:10 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26150
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..
>
>
>
>
>
Previous Topic:multiple development env setup?
Next Topic:How to import ivy+ant project into eclipse juno
Goto Forum:
  


Current Time: Thu Oct 30 15:32:45 GMT 2014

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

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