Book a Demo

Author Topic: Java debugger doesn't work : JVMTI error  (Read 5801 times)

soril

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Java debugger doesn't work : JVMTI error
« on: February 22, 2007, 07:00:27 pm »
Hello !

I am trying to use the java debugger and attach it to the JVM. I am using eclipse 3.2 and JDK 1.6.0. The command I use is "java -agentlib:C:\Program Files\Sparx Systems\EA\SSJavaProfiler65". Under Eclipse, the command seems to work when I select "Run as..." but it gives me the following error when I select "Debug as..." : ERROR: JDWP unable to get necessary JVMTI capabilities. Then, there is nothing I can do and I'm stuck.

Any idea ? I need help.

Thank you!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Java debugger doesn't work : JVMTI error
« Reply #1 on: February 23, 2007, 05:18:27 am »
Sounds like a path someplace is not correctly set. Take a look at the EA resources page, or search this forum for additional advice. Be patient and try several keyword combinations, the forum search is very literal.
No, you can't have it!

Henning

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Java debugger doesn't work : JVMTI error
« Reply #2 on: February 28, 2007, 01:04:50 am »
As far as I know it is not possible to debug your application in eclipse (Debug as...) and have the EA debug-agent running in the VM.

soril

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Java debugger doesn't work : JVMTI error
« Reply #3 on: February 28, 2007, 07:44:19 am »
How can I use then ? Do I have to use jdb in command line ?

Thank you for your help !

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Java debugger doesn't work : JVMTI error
« Reply #4 on: February 28, 2007, 09:07:29 am »
Found this via Google:

"The problem is in Java 5.0 limitation, which does not allow more than one JVMTI agent to co-exist. In this case, the first agent is the profiler, and the second agent is Java's debugger."

Which sounds relevant ...

Why oh why did they remove JVMPI (profiler) and JVMDI (debugger) interfaces and merge them ???!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Java debugger doesn't work : JVMTI error
« Reply #5 on: February 28, 2007, 12:55:15 pm »
Quote
Why oh why did they remove JVMPI (profiler) and JVMDI (debugger) interfaces and merge them ???!
The streaker's defence?  "Your honour, it sounded like a good idea at the time...."

;)

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!