Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-567

ClassNotFoundException when profiling single class (JDK 10)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 9.0
    • None
    • profiler - Base
    • None

    Description

      Steps to reproduce:
      1) Create Anagram Game test project.
      2) Select "Objects" in "Profile" button dropdown, click gear icon and verify "All Classes" is selected.
      3) Begin profiling.
      4) Find java.lang.String in class list. Either make "Selected" column visible and select class, or select "Profile Class" from context menu.
      5) Click Apply button; the following exception is thrown:

      java.lang.ClassNotFoundException: java/lang/reflect/WeakPairMap$Pair
      at java.base/java.lang.Class.forName0(Native Method)
      at java.base/java.lang.Class.forName(Class.java:291)
      at org.netbeans.lib.profiler.server.ProfilerInterface$InitiateProfilingThread.initiateInstrumentation(ProfilerInterface.java:165)
      at org.netbeans.lib.profiler.server.ProfilerInterface$InitiateProfilingThread.run(ProfilerInterface.java:117)

      6) Click buttons in sample application; String class does not appear in profiler. This works correctly under JDK8 but fails with this exception under JDK10.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gholmer Glenn Holmer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: