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.
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)
This happen only with not-yet-released JDK 7u65.
Created attachment 147990 [details] IDE log.
This looks like this happen when source is compiled with source,target set to 1.7 or higher.
There is no workaround for dynamic attach. Increasing priority to P1.
This issue also happens when profiled application runs on JDK 8u11.
https://bugs.openjdk.java.net/browse/JDK-8050485 Closing wontfix here.
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.
*** Bug 247207 has been marked as a duplicate of this bug. ***