Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Debug: "local variables unavailable"
Debug: "local variables unavailable" [message #119292] Fri, 21 November 2003 08:43 Go to next message
Eclipse UserFriend
Originally posted by: matthias.re-spam-move.david.gmx.de

I'm trying to debug some stuff in rt.jar.
after compiling the whole rt.jar with debug support
i can't really debug because local variables are unavailable.

At least that is what my debug view says in the top class in the suspended
thread:
MultiUIDefaults(UIDefaults).getUI(JComponent) line 712 [local variables
unavailable]

Any Ideas ?

Matt
Re: Debug: "local variables unavailable" [message #119305 is a reply to message #119292] Fri, 21 November 2003 08:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: matthias.re-spam-move.david.gmx.de

I found an other error message when I try to display a variable (right
click):
"The selected stack frame must be associtated with a Java project in the
workspace to perform an evaluation."

So I have to associate a project with my rt.jar ?
How do I do that ?
Re: Debug: "local variables unavailable" [message #119367 is a reply to message #119305] Fri, 21 November 2003 12:05 Go to previous messageGo to next message
Eclipse UserFriend
Please provide the steps you used to create the class lib with debug
attributes, and an example program that exhibits the problem, in a bug
report for JDT-debug.

Darin

"Matthias" <matthias.re-spam-move.david@gmx.de> wrote in message
news:bpl596$vs$1@eclipse.org...
> I found an other error message when I try to display a variable (right
> click):
> "The selected stack frame must be associtated with a Java project in the
> workspace to perform an evaluation."
>
> So I have to associate a project with my rt.jar ?
> How do I do that ?
>
>
Re: Debug: "local variables unavailable" [message #119933 is a reply to message #119367] Mon, 24 November 2003 06:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: matthias.re-spam-move.david.gmx.de

Hi Darin

well when I tried to put a detailed report together I couldn't get it to
work anymore.
My actual porblem is that I want to debug stuff from rt.jar and I'm looking
for the compiled classes with debug support.
Is nobody debugging rt.jar ?

Matt

-------

Here my report:

System: Win2000, j2sdk-1.4.2, Eclipse 3.0M4
Problem: Zrying to debug classes from rt.jar

I'm trying to debug classes from rt.jar eg LinkedList. So I put a breakpoint
in the constructor of LinkedList and when I start debuging it says:
Attempting to install a breakpoint in the type LinkedList that has no line
number attributes. .
Reason: Absent Line Number Information

After some googling I though the problem was the missing debug information
in rt.jar. (Because of some hotspot issues ?) And after I couldn't find an
appropriate rt.jar I took the source and compiled them myself. I actually
just decompresed the src and opened a new
Eclipse project. Under Prefrences >> Java >> Compiler >> Compliance and
Classfiles >> Class Generation everything is checked: (add variable
attributes, add line number attributes, add source file name, preserve
unused local variables)

After removing some corba and apache xpath stuff that made errors, I
exported the new compiled class files into myrt.jar. Next I duplicated my
jre under Prefrences >> Java >> Installed JREs. And replaced the original
rt.jar with my myrt.jar

And after a rebuild I can't start any application anymore but get the error
message:
Error occurred during initialization of VM
java.lang.NoClassDefFoundError:
sun/reflect/ReflectionFactory$GetReflectionFactoryAction


Deleted Classes from original rt.jar
com.sun.corba.se.internal.Interceptors.ThreadCurrentStack
com.sun.corba.se.internal.util.PackagePrefixChecker
org.apache.xpath.domapi.*
Re: Debug: "local variables unavailable" [message #120224 is a reply to message #119933] Mon, 24 November 2003 10:43 Go to previous messageGo to next message
Eclipse UserFriend
You might want to set up a custom bootpath with "myrt.jar" first, followed
by the real "rt.jar". This way, any classes you are missing in your jar will
be picked up in rt.jar.

Darin

"Matthias" <matthias.re-spam-move.david@gmx.de> wrote in message
news:bpspdb$3b8$1@eclipse.org...
> Hi Darin
>
> well when I tried to put a detailed report together I couldn't get it to
> work anymore.
> My actual porblem is that I want to debug stuff from rt.jar and I'm
looking
> for the compiled classes with debug support.
> Is nobody debugging rt.jar ?
>
> Matt
>
> -------
>
> Here my report:
>
> System: Win2000, j2sdk-1.4.2, Eclipse 3.0M4
> Problem: Zrying to debug classes from rt.jar
>
> I'm trying to debug classes from rt.jar eg LinkedList. So I put a
breakpoint
> in the constructor of LinkedList and when I start debuging it says:
> Attempting to install a breakpoint in the type LinkedList that has no line
> number attributes. .
> Reason: Absent Line Number Information
>
> After some googling I though the problem was the missing debug information
> in rt.jar. (Because of some hotspot issues ?) And after I couldn't find an
> appropriate rt.jar I took the source and compiled them myself. I actually
> just decompresed the src and opened a new
> Eclipse project. Under Prefrences >> Java >> Compiler >> Compliance and
> Classfiles >> Class Generation everything is checked: (add variable
> attributes, add line number attributes, add source file name, preserve
> unused local variables)
>
> After removing some corba and apache xpath stuff that made errors, I
> exported the new compiled class files into myrt.jar. Next I duplicated my
> jre under Prefrences >> Java >> Installed JREs. And replaced the original
> rt.jar with my myrt.jar
>
> And after a rebuild I can't start any application anymore but get the
error
> message:
> Error occurred during initialization of VM
> java.lang.NoClassDefFoundError:
> sun/reflect/ReflectionFactory$GetReflectionFactoryAction
>
>
> Deleted Classes from original rt.jar
> com.sun.corba.se.internal.Interceptors.ThreadCurrentStack
> com.sun.corba.se.internal.util.PackagePrefixChecker
> org.apache.xpath.domapi.*
>
>
Re: Debug: "local variables unavailable" [message #120324 is a reply to message #119933] Mon, 24 November 2003 12:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-user.jibeinc.com

Matthias wrote:

> Hi Darin
>
> well when I tried to put a detailed report together I couldn't get it to
> work anymore.
> My actual porblem is that I want to debug stuff from rt.jar and I'm looking
> for the compiled classes with debug support.
> Is nobody debugging rt.jar ?

Yes, but not with local variables visible. A couple of weeks ago I
searched the web for a debug-enabled rt.jar but could not find one. I
also tried to set up an Ant build file to compile the sources myself,
but that did not work out either.

If you find a debug-enabled rt.jar, please let us all know.

Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com
Re: Debug: "local variables unavailable" [message #120451 is a reply to message #120324] Mon, 24 November 2003 16:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lists.lRuEeMbOkVeEn.com

> If you find a debug-enabled rt.jar, please let us all know.
Well I'm quite suprised that this is actually a problem.

I found even a bug report at sun, asking for a debug enabled rt.jar.
The answer was that the download would be to big !
http://developer.java.sun.com/developer/bugParade/bugs/46521 84.html

I don't really believe that. Does anyone has a better answer ?
Re: Debug: "local variables unavailable" [message #122251 is a reply to message #120224] Wed, 26 November 2003 06:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: matthias.re-spam-move.david.gmx.de

> You might want to set up a custom bootpath with "myrt.jar" first, followed
> by the real "rt.jar". This way, any classes you are missing in your jar
will
> be picked up in rt.jar.

OK this what I did.
Now myrt.jar comes first in the JRE System Library.
And my class (UIDefaults) is in both jars.
I toggle the breakpoint in class located in myrt.jar
but when debugging "local variables unavailable" comes up again.

How do I make sure that it takes the right class from myrt.jar?
Should I report a bug ?

Matt
Re: Debug: "local variables unavailable" [message #122439 is a reply to message #122251] Wed, 26 November 2003 10:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thomas_maeder.ch.ibm.com

Can you check the command line ("Properties" page of the process in the
debug perspective) to make sure that myrt.jar is on the boot classpath?

Matthias wrote:

>>You might want to set up a custom bootpath with "myrt.jar" first, followed
>>by the real "rt.jar". This way, any classes you are missing in your jar
>
> will
>
>>be picked up in rt.jar.
>
>
> OK this what I did.
> Now myrt.jar comes first in the JRE System Library.
> And my class (UIDefaults) is in both jars.
> I toggle the breakpoint in class located in myrt.jar
> but when debugging "local variables unavailable" comes up again.
>
> How do I make sure that it takes the right class from myrt.jar?
> Should I report a bug ?
>
> Matt
>
>
Re: Debug: "local variables unavailable" [message #122664 is a reply to message #122439] Thu, 27 November 2003 05:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: matthias.re-spam-move.david.gmx.de

"Thomas M
Re: Debug: "local variables unavailable" [message #122686 is a reply to message #122664] Thu, 27 November 2003 08:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thomas_maeder.ch.ibm.com

I see you're debugging an RCP application; great! Try adding
-Xbootclaspath/p:<path to your myrt.jar> to your VM arguments

Matthias wrote:
> "Thomas Mäder" wrote
>
>>Can you check the command line ("Properties" page of the process in the
>>debug perspective) to make sure that myrt.jar is on the boot classpath?
>
>
> OK this is what I get for the CommandLine for my Process
> org.eclipse.core.launcher.Main :
> = = = =
> "C:\Program Files\j2sdk-1.4.2\bin\javaw.exe" -ea -classpath
> D:\workdir\mluebk2s\eclipse\startup.jar -Xdebug -Xnoagent -Djava.compiler=NO
> NE -Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:15 65
> org.eclipse.core.launcher.Main -pdelaunch -data
> D:\workdir\mluebk2s\eclipse\workspace\de.itwps.eclipse.platf orm.patientenver
> walter\workspace -configuration
> file:D:\workdir\mluebk2s\eclipse\workspace\.metadata\.plugin s\org.eclipse.pd
> e.core\D__workdir_mluebk2s_eclipse_workspace_de.itwps.eclips e.platform.patie
> ntenverwalter_workspace\platform.cfg -feature org.eclipse.platform -dev
> bin -debug
> \" file:D:\workdir\mluebk2s\eclipse\workspace\.metadata\.plugin s\org.eclipse.
> pde.core\.options\" -os win32 -ws win32 -arch x86 -nl de_DE -application
> de.itwps.uke.onkologie.patientenverwalter -consoleLog
>
> = =
Re: Debug: "local variables unavailable" [message #122700 is a reply to message #122686] Thu, 27 November 2003 09:28 Go to previous message
Eclipse UserFriend
Originally posted by: matthias.re-spam-move.david.gmx.de

"Thomas M
Previous Topic:M5: Ant doesn't find tools.jar in some cases
Next Topic:import master build.xml from legacy java project
Goto Forum:
  


Current Time: Fri May 09 14:52:52 EDT 2025

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

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

Back to the top