Problem debugging IBM's jdk 1.6 in Maia

Hi,
I have some problems when I try to debug my application with Maia:

When I start the application from Maia (through a maven task), the following agent is specified:
-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:4547,suspend=y,server=n

The application will then fail on startup with the following error-message:
Fatal error: JDWP saveGlobalRef obj, jvmtiError=AGENT_ERROR_ILLEGAL_ARGUMENT(202)
JDWP exit error AGENT_ERROR_ILLEGAL_ARGUMENT(202): saveGlobalRef obj [../../../src/share/back/util.c:42]


If I start the application from IDEA8, the jvm starts up fine. The jvm startup parameters used in IDEA8 is the following:
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=127.0.0.1:4587,suspend=y,server=n

I have tried to add the debug parameters manually through the "VM-parameters" on the "Runner-tab", but some parameters seems to be removed (for instance the Xdebug parameter)

Has anybody been able to successfully debug IBM's jdk in Maia or knows how to customize the the debug parameters so they will be similar to what they are in IDEA8?


Kind Regards,
Bjarte Andre Eide

1 comment
Comment actions Permalink

Hi Bjarte,

I tried "ibm_sdk60" taken from development pack. Everything starts fine for me. For jdk 6 and higher IDEA 9 uses new way of
launching debugger, through the JVMTI interface rather than "old" JVMDI debugger implementations. Looks like jvmti is missing (or
broken?) from your installation. To use older style options "-Xdebug -Xnoagent -Djava.compiler=NONE ......." please check "Settings
| Debugger | Disable JIT" checkbox

--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"



"Bjarte Andre Eide" <bjarte.andre.eide@broadpark.no> wrote in message
news:32572666.80001255352927176.JavaMail.clearspace@app8.labs.intellij.net...

Hi,
I have some problems when I try to debug my application with Maia:

>

When I start the application from Maia (through a maven task), the following agent is specified:
-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:4547,suspend=y,server=n

>

The application will then fail on startup with the following error-message:
Fatal error: JDWP saveGlobalRef obj, jvmtiError=AGENT_ERROR_ILLEGAL_ARGUMENT(202)
JDWP exit error AGENT_ERROR_ILLEGAL_ARGUMENT(202): saveGlobalRef obj

>
>

If I start the application from IDEA8, the jvm starts up fine. The jvm startup parameters used in IDEA8 is the following:
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=127.0.0.1:4587,suspend=y,server=n

>

I have tried to add the debug parameters manually through the "VM-parameters" on the "Runner-tab", but some parameters seems to be
removed (for instance the Xdebug parameter)

>

Has anybody been able to successfully debug IBM's jdk in Maia or knows how to customize the the debug parameters so they will be
similar to what they are in IDEA8?

>
>

Kind Regards,
Bjarte Andre Eide

>

---
Original message URL: http://www.jetbrains.net/devnet/message/5246849#5246849



0

Please sign in to leave a comment.