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 245840 - java.lang.NoClassDefFoundError: sun/java2d/opengl/OGLRenderQueue$$Lambda$2
Summary: java.lang.NoClassDefFoundError: sun/java2d/opengl/OGLRenderQueue$$Lambda$2
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.0.1
Hardware: All All
: P1 normal (vote)
Assignee: Tomas Hurka
Depends on:
Reported: 2014-07-21 10:26 UTC by Alexandr Scherbatiy
Modified: 2016-06-28 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Profiler output log (24.05 KB, text/plain)
2014-07-21 10:29 UTC, Alexandr Scherbatiy
Netbeans IDE log (49.05 KB, text/plain)
2014-07-21 10:30 UTC, Alexandr Scherbatiy

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2014-07-21 10:26:04 UTC
Product Version: NetBeans IDE Dev (Build 201407090001)
Updates: Updates available
Java: 1.8.0_20-ea; Java HotSpot(TM) 64-Bit Server VM 25.20-b22
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-ea-b23
System: Mac OS X version 10.10 running on x86_64; UTF-8; en_US (nb)

I profile a simple Swing app in Memory mode and see the following profile output:
***Profer debug: could not get .class file URL for a synthetic class com.sun.proxy.$Proxy1 in ClassBytesLoader.getClassFileURL
***Profer debug: could not get .class file URL for a synthetic class com.sun.proxy.$Proxy0 in ClassBytesLoader.getClassFileURL
Profiler Agent Warning: JVMTI classLoadHook: class name is null.

***Profiler agent warning: could not get .class file for a synthetic class java.lang.invoke.LambdaForm$MH/282388371 in ProfilerInterface.getClassFileBytes
java.lang.NoClassDefFoundError: sun/java2d/opengl/OGLRenderQueue$$Lambda$2
	at sun.java2d.opengl.OGLRenderQueue$$Lambda$2/1100277623.get$Lambda(Unknown Source)
	at sun.java2d.opengl.OGLRenderQueue.<init>(
	at sun.java2d.opengl.OGLRenderQueue.getInstance(
	at sun.java2d.opengl.CGLGraphicsConfig.getConfig(
	at sun.awt.CGraphicsDevice.<init>(
	at sun.awt.CGraphicsEnvironment.initDevices(
	at sun.awt.CGraphicsEnvironment.<init>(
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
	at java.lang.reflect.Constructor.newInstance(
	at java.lang.Class.newInstance(
	at java.awt.GraphicsEnvironment.createGE(
	at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(
	at java.awt.Window.initGC(
	at java.awt.Window.init(
	at java.awt.Window.<init>(
	at java.awt.Frame.<init>(
	at java.awt.Frame.<init>(
	at javax.swing.JFrame.<init>(
	at tabbedpane.JTabbedPaneHTMLTest$
	at java.awt.event.InvocationEvent.dispatch(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$400(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(
Comment 1 Alexandr Scherbatiy 2014-07-21 10:29:08 UTC
Created attachment 148172 [details]
Profiler output log
Comment 2 Alexandr Scherbatiy 2014-07-21 10:30:40 UTC
Created attachment 148173 [details]
Netbeans IDE log
Comment 3 Jiri Skrivanek 2014-07-22 09:09:01 UTC
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$$Lambda$4/1952287228.get$Lambda(Unknown Source)

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)
Comment 4 Tomas Hurka 2014-07-22 17:30:57 UTC
The problem is caused by NoClassDefFoundError, "could not get .class file URL for a synthetic class" is just debug output and is harmless.
Comment 5 Tomas Hurka 2014-07-23 09:31:23 UTC
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().
Comment 6 Tomas Hurka 2014-07-23 10:21:51 UTC
Fixed in profiler-main

changeset:   275861:ed472a217546
user:        Tomas Hurka <>
date:        Wed Jul 23 12:20:39 2014 +0200
summary:     bugfix #245840, do not instrument classes created by Unsafe.defineAnonymousClass()
Comment 7 Quality Engineering 2014-07-24 02:40:41 UTC
Integrated into 'main-silver', will be available in build *201407240001* on (upload may still be in progress)

User: Tomas Hurka <>
Log: bugfix #245840, do not instrument classes created by Unsafe.defineAnonymousClass()