This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 245522 - Instrumented CPU profiling fails on JDK7u65 with -target >=1.7
Summary: Instrumented CPU profiling fails on JDK7u65 with -target >=1.7
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal (vote)
Assignee: Antonin Nebuzelsky
: 247207 (view as bug list)
Depends on:
Reported: 2014-07-09 13:27 UTC by Jiri Skrivanek
Modified: 2014-09-19 14:51 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log. (55.88 KB, text/plain)
2014-07-11 06:03 UTC, Jiri Skrivanek

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2014-07-09 13:27:54 UTC
It is not possible to profile web application with GlassFish server on JDK7u65. To reproduce:

- create web application with GlassFish target server
- right-click project node and choose Profile
- select CPU -> Advanced and click OK
- it fails with message: Redefinition failed with error 62. Check JVMTI documentation for this error code.
- workaround is to add -Xverify:none parameter as additional <jvm-options> element in domain.xml

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.7.0_65; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_65-b18
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Tomas Hurka 2014-07-09 13:57:55 UTC
This happen only with not-yet-released JDK 7u65.
Comment 2 Jiri Skrivanek 2014-07-11 06:03:24 UTC
Created attachment 147990 [details]
IDE log.
Comment 3 Tomas Hurka 2014-07-11 08:13:36 UTC
This looks like this happen when source is compiled with source,target set to 1.7 or higher.
Comment 4 Tomas Hurka 2014-07-15 08:02:28 UTC
There is no workaround for dynamic attach. Increasing priority to P1.
Comment 5 Tomas Hurka 2014-07-22 11:25:48 UTC
This issue also happens when profiled application runs on JDK 8u11.
Comment 6 Antonin Nebuzelsky 2014-08-04 13:26:48 UTC

Closing wontfix here.
Comment 7 Antonin Nebuzelsky 2014-08-05 11:34:27 UTC
Release Notes item to be added for 8.0 and 8.0.1:

Profiling application performance can fail when using the Advanced option.

Description: The IDE displays the message "Redefinition failed with error 62" when attempting to profile application performance (CPU) and the Advanced (instrumented) option is selected.

Workaround: Restart the application with the VM argument -Xverify:none to disable classfile verification. You must restart the application to disable classfile verification. You cannot disable verification if the application is running.
Comment 8 Tomas Hurka 2014-09-19 14:51:10 UTC
*** Bug 247207 has been marked as a duplicate of this bug. ***