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 204784 - EJB and Glassfish CPU profiling fails to load
Summary: EJB and Glassfish CPU profiling fails to load
Status: RESOLVED WORKSFORME
Alias: None
Product: profiler
Classification: Unclassified
Component: Attach (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-07 15:37 UTC by mago_ebon
Modified: 2011-11-11 13:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Output window (40.06 KB, image/png)
2011-11-07 15:37 UTC, mago_ebon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mago_ebon 2011-11-07 15:37:17 UTC
Created attachment 112932 [details]
Output window

I am trying to profile any EJB project with glassfish with no luck.

To reproduce the bug, all you have to do is to create a new Enterprise Application (Java EE), select CPU, then select "Profile application" and then filter by "Profile project and subproject classes", try to profile it. It will hang for a couple minutes with GlassFish not being able to start and then will show a popup that says: "The profiled application does not respond. Do you want to close the connection and stop profiling?"

If I try any other option, it will work but will keep on sending the following log records:

Grave: *** Profiler engine warning: class sun.reflect.GeneratedConstructorAccessor45 that should be instrumented is not loaded by target VM
Grave: *** Requested classloader: sun.reflect.DelegatingClassLoader@78c4092f
Grave: , its class = class sun.reflect.DelegatingClassLoader, index = 177, hashcode = 2026113327
Grave: *** Profiler engine warning: target VM cannot load class to instrument sun.reflect.GeneratedConstructorAccessor45
Grave: *** probably it has been unloaded recently

The rest of the options I have tried (memory, monitor) works ok.
Comment 1 Petr Cyhelsky 2011-11-11 13:28:42 UTC
What version of IDE were you using? Can you please at least attach your messages.log? It works for me on:

Product Version: NetBeans IDE Dev (Build 201111100600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b18
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)

Can you try it on a recent dev build?