File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes IJ Debugging issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "IJ Debugging issue" Watch "IJ Debugging issue" New topic
Author

IJ Debugging issue

Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
It seems that frequently in the more recent versions of IJ (6 & 7) when I'm debugging and stepping through a method, I get an error complaining about "Illegal ref passed to DeleteWeakGlobalRef". Any ideas on what may be causing this?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Dmitry Jemerov
author
Ranch Hand

Joined: Nov 24, 2006
Posts: 120
Hello Marilyn,

No, we have never received reports of such an error. Which JDK version is IntelliJ IDEA running under, and which JDK do you use for running the debugged application?


Dmitry Jemerov<br />Development Lead<br />JetBrains, Inc.<br /><a href="http://www.jetbrains.com/" target="_blank" rel="nofollow">http://www.jetbrains.com/</a><br />"Develop with Pleasure"
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
I have my IDEA_JDK environment variable set to "C:\Program Files\Java\jdk1.6.0_01", so I think IntelliJ IDEA is running under that jdk.

The application is running under
C:\RAD6\runtimes\base_v6\java\bin\java -classic -Djava.compiler=NONE -Xms128m -Xmx256m -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=127.0.0.1:3266,suspend=y,server=n -Dfile.encoding=windows-1252
(which is a 1.4.2 ibm version)

[ November 09, 2007: Message edited by: Marilyn de Queiroz ]
Dmitry Jemerov
author
Ranch Hand

Joined: Nov 24, 2006
Posts: 120
This is a known problem. The reason is a bug in IBM's implementation of JPDA.
To workaround the bug, IDEA must be started with the following VM option:

-Didea.debugger.keep.temp.objects=false
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Thanks, Dmitry. I'll try that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IJ Debugging issue
 
Similar Threads
IntelliJ remote debugging with websphere
vi key-bindings on IntelliJ
Referring to an array-HELP!
how to create tablespace in java dbms
How to align mutliple columns properly using print?