Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IJ Debugging issue

 
Marilyn de Queiroz
Sheriff
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Dmitry Jemerov
author
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Marilyn de Queiroz
Sheriff
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Dmitry. I'll try that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic