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 237993 - ClassNotFoundException: java/util/LinkedHashMap$KeyIterator during CPU profiling with JDK 1.8 b114
Summary: ClassNotFoundException: java/util/LinkedHashMap$KeyIterator during CPU profil...
Status: RESOLVED DUPLICATE of bug 236890
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 12:03 UTC by Alexandr Scherbatiy
Modified: 2013-11-05 12:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2013-11-05 12:03:20 UTC
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b56
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b114
System: Mac OS X version 10.7.5 running on x86_64; UTF-8; en_US (nb)


Try to profile the simple code:
--------------------------
import javax.swing.*;
public class Test {

    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {

            @Override
            public void run() {
                
                JFrame frame = new JFrame();
                frame.setSize(500, 500);
                frame.setVisible(true);
            }
        });
    }    
}
--------------------------

- Press Profile Project
- Select CPU, Advanced, Filter: Profile All Classes 
- Press Run


There is the exception in the profile log:
----------------------
profile:
Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 14)
Profiler Agent: Established connection with the tool
Profiler Agent: Local accelerated session
java.lang.ClassNotFoundException: java/util/LinkedHashMap$KeyIterator
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:259)
	at org.netbeans.lib.profiler.server.ProfilerInterface$InitiateProfilingThread.initiateInstrumentation(ProfilerInterface.java:174)
	at org.netbeans.lib.profiler.server.ProfilerInterface$InitiateProfilingThread.run(ProfilerInterface.java:136)
----------------------
Comment 1 Alexandr Scherbatiy 2013-11-05 12:07:45 UTC
See the bug bugs.openjdk.java.net/browse/JDK-8012913
http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/d62c911aebbb
Comment 2 Tomas Hurka 2013-11-05 12:17:03 UTC

*** This bug has been marked as a duplicate of bug 236890 ***