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.
Summary: | java.lang.NoClassDefFoundError: sun/java2d/opengl/OGLRenderQueue$$Lambda$2 | ||
---|---|---|---|
Product: | profiler | Reporter: | Alexandr Scherbatiy <sunflower> |
Component: | Engine | Assignee: | Tomas Hurka <thurka> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | jskrivanek |
Priority: | P1 | Keywords: | JDK_8, JDK_SPECIFIC, VISUALVM |
Version: | 8.0.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Profiler output log
Netbeans IDE log |
Description
Alexandr Scherbatiy
2014-07-21 10:26:04 UTC
Created attachment 148172 [details]
Profiler output log
Created attachment 148173 [details]
Netbeans IDE log
My steps: - create Anagram sample project - right-click project node and choose Profile - select Memory|Advanced and click Run - it prints similar messages like attached by Alexandr, fails with exception and profiled application is not started. Exception in thread "AWT-Windows" java.lang.NoClassDefFoundError: sun/awt/windows/WToolkit$$Lambda$4 at sun.awt.windows.WToolkit$$Lambda$4/1952287228.get$Lambda(Unknown Source) at sun.awt.windows.WToolkit.registerShutdownHook(WToolkit.java:275) at sun.awt.windows.WToolkit.run(WToolkit.java:292) at java.lang.Thread.run(Thread.java:745) Product Version: NetBeans IDE Dev (Build 201407220001) Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb) The problem is caused by NoClassDefFoundError, "could not get .class file URL for a synthetic class" is just debug output and is harmless. It looks like redefine classes incorrectly defines class sun.java2d.opengl.OGLRenderQueue$$Lambda$2 instead of the correct anonymized name sun.java2d.opengl.OGLRenderQueue$$Lambda$2/1342443276. It needs more investigation, but for now the quick fix is to avoid instrumentation of classes created by Unsafe.defineAnonymousClass(). Fixed in profiler-main changeset: 275861:ed472a217546 user: Tomas Hurka <thurka@netbeans.org> date: Wed Jul 23 12:20:39 2014 +0200 summary: bugfix #245840, do not instrument classes created by Unsafe.defineAnonymousClass() Integrated into 'main-silver', will be available in build *201407240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ed472a217546 User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #245840, do not instrument classes created by Unsafe.defineAnonymousClass() |