Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » eclipse debugger throws URLClassLoader Error
eclipse debugger throws URLClassLoader Error [message #913063] Fri, 14 September 2012 17:34 Go to next message
feritz davies is currently offline feritz daviesFriend
Messages: 8
Registered: September 2012
Junior Member
I clicked run -> debug configurations and added main class and project and vm arguments.

The main class is in a jar file and same has been in class path and reference libraries.

and clicked on debug button on that window. It throws me the following error.

I am using eclipse indigo version. The picture of the error has been attached.



I removed all break points from eclipse. How do I make sure no break points are in eclipse. i went to break point view and removed all of them , now its empty.


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)	
	
Re: eclipse debugger throws URLClassLoader Error [message #913298 is a reply to message #913063] Sat, 15 September 2012 07:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
I think the answer is the same as your previous question, i.e., there's
a preference for uncaught exceptions.

On 14/09/2012 7:34 PM, feritz davies wrote:
> I clicked run -> debug configurations and added main class and project and vm arguments.
>
> The main class is in a jar file and same has been in class path and reference libraries.
>
> and clicked on debug button on that window. It throws me the following error.
>
> I am using eclipse indigo version. The picture of the error has been attached.
>
>
>
> I removed all break points from eclipse. How do I make sure no break points are in eclipse. i went to break point view and removed all of them , now its empty.
>
>
> 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)
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: eclipse debugger throws URLClassLoader Error [message #913467 is a reply to message #913063] Sat, 15 September 2012 18:34 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 09/14/2012 12:34 PM, feritz davies wrote:
> I clicked run -> debug configurations and added main class and project and vm arguments.
>
> The main class is in a jar file and same has been in class path and reference libraries.
>
> and clicked on debug button on that window. It throws me the following error.
>
> I am using eclipse indigo version. The picture of the error has been attached.
>
>
>
> I removed all break points from eclipse. How do I make sure no break points are in eclipse. i went to break point view and removed all of them , now its empty.
>
>
> 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)
>
>
You probably have an Exception breakpoint set. You can see what
exception breakpoints are set using the icon on the breakpoint tab that
looks like a J with an ! next to it (J!).

Exception breakpoints can be set to break on either caught, uncaught, or
both.

This type of exception will occur during class loading but doesn't
necessarily mean that there is a problem. Have you tried to continue
(hit the run button) when the breakpoint is hit to continue program
execution?
Re: eclipse debugger throws URLClassLoader Error [message #915374 is a reply to message #913467] Mon, 17 September 2012 06:51 Go to previous messageGo to next message
feritz davies is currently offline feritz daviesFriend
Messages: 8
Registered: September 2012
Junior Member
i cheked exception breakpoint , i do not see exception breakpoint has been set. i will attach screenshot for J!. If you find somethong wrong, please let me know how to fix it step by step. How will remove all breakpoints including J!. For me I do not see any breakpoints in breakpoint view. i removed all of them. But J! i am not sure , but it seems to me there is no breakpoint set for exception. If at all , there is one , how to remove all exception breakpoints forever.

Thanks!!

PS : If you are not able to see my screeshot, please let me know, thanks
Re: eclipse debugger throws URLClassLoader Error [message #915377 is a reply to message #915374] Mon, 17 September 2012 06:57 Go to previous messageGo to next message
feritz davies is currently offline feritz daviesFriend
Messages: 8
Registered: September 2012
Junior Member
J! View box

org.omg.CORBA-MAVEN_REPO/weblogic/jars/weblogic-8.1.\maven\repository\weblogic\jars\weblogic-8.1.4.jar,

both checkboxes fro suspend on caught exception and suspend on uncaught exceptions are checked. and above jar file is seen in a text box and there is an error message "selected item is not an exception" Does this cause the issue? How do I get rid of it?
  • Attachment: JECLIPSE3.JPG
    (Size: 79.40KB, Downloaded 469 times)
Re: eclipse debugger throws URLClassLoader Error [message #915418 is a reply to message #915377] Mon, 17 September 2012 08:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Did you look in the preferences I mentioned? I.e.,
Window->Preferences->Java->Debug->Suspend execution on uncaught exceptions

On 17/09/2012 8:57 AM, feritz davies wrote:
> J! View box
>
> org.omg.CORBA-MAVEN_REPO/weblogic/jars/weblogic-8.1.\maven\repository\weblogic\jars\weblogic-8.1.4.jar,
>
> both checkboxes fro suspend on caught exception and suspend on uncaught exceptions are checked. and above jar file is seen in a text box and there is an error message "selected item is not an exception" Does this cause the issue? How do I get rid of it?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: eclipse debugger throws URLClassLoader Error [message #915751 is a reply to message #915418] Mon, 17 September 2012 22:33 Go to previous messageGo to next message
feritz davies is currently offline feritz daviesFriend
Messages: 8
Registered: September 2012
Junior Member
I followed your instrcution and restarted eclipse, i m still not able to run/debug my application. still shows org.omg.CORBA-MAVEN_REPO/weblogic/jars/weblogic-8.1.\maven\repository\weblogic\jars\weblogic-8.1.4.jar, Quote:
AND SELECTED ITEM IS NOT AN EXCEPTION


Quote:
Window->Preferences->Java->Debug->Suspend execution on uncaught exceptions
I went here and unchecked the checkbox for suspend execution on uncaught exception

I have attached screenshot as well

Please help me to resolve it..

Re: eclipse debugger throws URLClassLoader Error [message #915854 is a reply to message #915751] Tue, 18 September 2012 04:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Feritz,

Your question was about the debugger stopping on an exception. Likely
that's exactly the exception which is causing your application to
terminate. I think you've been assuming the debugger is causing your
application to behave badly, but if you can't run it, the debugger isn't
going to make it better. It's impossible to say from what you've
explained so far why your application doesn't run, other than it's
likely a classpath error and maybe the debugger will help understand why
that class is failing to load (though class loading is hard to understand).


On 18/09/2012 12:33 AM, feritz davies wrote:
> I followed your instrcution and restarted eclipse, i m still not able to run/debug my application. still shows org.omg.CORBA-MAVEN_REPO/weblogic/jars/weblogic-8.1.\maven\repository\weblogic\jars\weblogic-8.1.4.jar, Quote:
>> AND SELECTED ITEM IS NOT AN EXCEPTION
>
> Quote:
>> Window->Preferences->Java->Debug->Suspend execution on uncaught exceptions
> I went here and unchecked the checkbox for suspend execution on uncaught exception
>
> I have attached screenshot as well
>
> Please help me to resolve it..
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: eclipse debugger throws URLClassLoader Error [message #915877 is a reply to message #915854] Tue, 18 September 2012 06:23 Go to previous messageGo to next message
feritz davies is currently offline feritz daviesFriend
Messages: 8
Registered: September 2012
Junior Member

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="lib" path="/app-config/batch/VortexApp/conf-app"/>
	<classpathentry kind="lib" path="/app-config/batch/VortexApp/conf-env/local"/>
	<classpathentry kind="var" path="MAVEN_REPO/TELUS_Frameworks/jars/frameworks-core-3.0.1.jar"/>
	<classpathentry kind="src" path="src"/>
	<classpathentry kind="src" output="target/test-classes" path="test/conf"/>
	<classpathentry kind="src" output="target/test-classes" path="test/data"/>
	<classpathentry kind="var" path="MAVEN_REPO/junit/jars/junit-3.8.1.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/spring/jars/spring-2.0.6.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/commons-lang/jars/commons-lang-2.1.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/commons-logging/jars/commons-logging-1.0.4.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/ant/jars/ant-1.6.5.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/j2ee/jars/j2ee-1.3.1.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/jdom/jars/jdom-1.0.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/aopalliance/jars/aopalliance-1.0.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/log4j/jars/log4j-1.2.12.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/commons-validator/jars/commons-validator-1.1.4.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/oro/jars/oro-2.0.8.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/ibatis/jars/ibatis-sqlmap-2.1.5.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/ibatis/jars/ibatis-common-2.1.5.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/commons-beanutils/jars/commons-beanutils-1.7.0.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/commons-collections/jars/commons-collections-3.1.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/commons-digester/jars/commons-digester-1.7.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/commons-fileupload/jars/commons-fileupload-1.0.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/oracle/jars/ojdbc-10g.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/telusantext/jars/telusantext-1.0.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/emma/jars/emma_ant-2.0.latest.jar"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk160_18"/>
	<classpathentry kind="var" path="MAVEN_REPO/TELUS_Frameworks/jars/frameworks-batch-3.0.1.jar"/>
	<classpathentry kind="var" path="MAVEN_REPO/TELUS_Frameworks/jars/frameworks-weblogic-3.0.1.jar"/>
	<classpathentry kind="output" path="target/classes"/>
</classpath>



class path entries are as given above, why it is comp\lained about JAVA SECURITY

All entries [jars ] in my local system.


SCREENSHOT ATTACHED
java.lang.NoClassDefFoundError: and
Caused by: java.lang.ClassNotFoundException: and
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Exception in thread "main" ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]

keep on getting this one or another...

Re: eclipse debugger throws URLClassLoader Error [message #916033 is a reply to message #915877] Tue, 18 September 2012 12:38 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Feritz,

I can't a explain what class is missing or why it's not found. In
fact, I don't even see which class isn't found. What's the basis for
your comment: "complained about JAVA SECURITY"?


On 18/09/2012 8:24 AM, feritz davies wrote:
> <?xml version="1.0" encoding="UTF-8"?>
> <classpath>
> <classpathentry kind="lib" path="/app-config/batch/VortexApp/conf-app"/>
> <classpathentry kind="lib" path="/app-config/batch/VortexApp/conf-env/local"/>
> <classpathentry kind="var" path="MAVEN_REPO/TELUS_Frameworks/jars/frameworks-core-3.0.1.jar"/>
> <classpathentry kind="src" path="src"/>
> <classpathentry kind="src" output="target/test-classes" path="test/conf"/>
> <classpathentry kind="src" output="target/test-classes" path="test/data"/>
> <classpathentry kind="var" path="MAVEN_REPO/junit/jars/junit-3.8.1.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/spring/jars/spring-2.0.6.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/commons-lang/jars/commons-lang-2.1.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/commons-logging/jars/commons-logging-1.0.4.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/ant/jars/ant-1.6.5.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/j2ee/jars/j2ee-1.3.1.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/jdom/jars/jdom-1.0.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/aopalliance/jars/aopalliance-1.0.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/log4j/jars/log4j-1.2.12.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/commons-validator/jars/commons-validator-1.1.4.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/oro/jars/oro-2.0.8.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/ibatis/jars/ibatis-sqlmap-2.1.5.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/ibatis/jars/ibatis-common-2.1.5.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/commons-beanutils/jars/commons-beanutils-1.7.0.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/commons-collections/jars/commons-collections-3.1.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/commons-digester/jars/commons-digester-1.7.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/commons-fileupload/jars/commons-fileupload-1.0.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/oracle/jars/ojdbc-10g.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/telusantext/jars/telusantext-1.0.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/emma/jars/emma_ant-2.0.latest.jar"/>
> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk160_18"/>
> <classpathentry kind="var" path="MAVEN_REPO/TELUS_Frameworks/jars/frameworks-batch-3.0.1.jar"/>
> <classpathentry kind="var" path="MAVEN_REPO/TELUS_Frameworks/jars/frameworks-weblogic-3.0.1.jar"/>
> <classpathentry kind="output" path="target/classes"/>
> </classpath>
>
>
> class path entries are as given above, why it is comp\lained about JAVA SECURITY
>
> All entries [jars ] in my local system.
>
>
> SCREENSHOT ATTACHED
> java.lang.NoClassDefFoundError: and
> Caused by: java.lang.ClassNotFoundException: and
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Exception in thread "main" ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
> JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]
>
> keep on getting this one or another...
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: eclipse debugger throws URLClassLoader Error [message #916124 is a reply to message #916033] Tue, 18 September 2012 15:20 Go to previous messageGo to next message
feritz davies is currently offline feritz daviesFriend
Messages: 8
Registered: September 2012
Junior Member
if you see screenshot attached, it says Quote:
"AND SELECTED ITEM IS NOT AN EXCEPTION"
@ j! view for java security. You will see two jdks in the J! View panel.


are you able to see the screenshot attached ? if you are not able to , i have to find some other way to explain?
Re: eclipse debugger throws URLClassLoader Error [message #916138 is a reply to message #916124] Tue, 18 September 2012 15:47 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Feritz,

I see the screen capture, but I don't have the message you spell out in
text. Looking back at the history, an earlier one did. Here you have
AccessControlException selected. I tried that dialog and it shows all
classes, though the filter starts out as *Exception*. If you pick
something that doesn't extend Throwable (as in your previous example),
it will give the message that the selection isn't an exception. That
makes sense. You can only set exception breakpoints for things that can
be thrown. I'm not sure why you're still asking about this dialog. Are
you trying to set an exception breakpoint? Are you trying to get rid of
all of them so you don't have any?

On your other points, yes, apparently you have more than one jar with
the same classes in it. That's probably not a good thing, but one of
them will be ahead of the other in the classpath and that's likely the
one that will be used at runtime. It could be a source of problems if
they're not binary compatible.

This thread is quite long. It seems to be focused on debugger problems
but previous comments lead me to believe your application doesn't run at
all, regardless of the debugger. If that's the case, you ought to focus
on getting it to run, which is primarily an issue of setting up a
correct classpath.


On 18/09/2012 5:20 PM, feritz davies wrote:
> if you see screenshot attached, it says Quote:
>> "AND SELECTED ITEM IS NOT AN EXCEPTION"
> @ j! view for java security. You will see two jdks in the J! View panel.
>
>
> are you able to see the screenshot attached ? if you are not able to , i have to find some other way to explain?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Clean/Build Issues
Next Topic:Help
Goto Forum:
  


Current Time: Tue Apr 16 14:48:05 GMT 2024

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

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

Back to the top