Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8212197

OpenDataException thrown when constructing CompositeData for StackTraceElement

    XMLWordPrintable

    Details

      Backports

        Description

        See http://mail.openjdk.java.net/pipermail/jdk-dev/2018-October/002107.html

        javax.management.openmbean.OpenDataException: Argument value of wrong type for item lineNumber: value java.lang.ref.Reference, type javax.management.openmbean.SimpleType(name=java.lang.Integer)
        at java.management/javax.management.openmbean.CompositeDataSupport.<init>(CompositeDataSupport.java:235)
        at java.management/javax.management.openmbean.CompositeDataSupport.<init>(CompositeDataSupport.java:118)
        at java.management/sun.management.StackTraceElementCompositeData.getCompositeData(StackTraceElementCompositeData.java:91)
        Caused: java.lang.AssertionError
        at java.management/sun.management.StackTraceElementCompositeData.getCompositeData(StackTraceElementCompositeData.java:96)
        at java.management/sun.management.StackTraceElementCompositeData.toCompositeData(StackTraceElementCompositeData.java:74)
        at java.management/sun.management.ThreadInfoCompositeData.getCompositeData(ThreadInfoCompositeData.java:82)
        at java.management/sun.management.ThreadInfoCompositeData.toCompositeData(ThreadInfoCompositeData.java:72)
        Caused: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.netbeans.modules.sampler.SamplesOutputStream.toCompositeData(SamplesOutputStream.java:178)
        Caused: java.lang.RuntimeException
        at org.netbeans.modules.sampler.SamplesOutputStream.toCompositeData(SamplesOutputStream.java:184)
        at org.netbeans.modules.sampler.SamplesOutputStream.access$400(SamplesOutputStream.java:44)
        at org.netbeans.modules.sampler.SamplesOutputStream$Sample.writeToStream(SamplesOutputStream.java:285)
        at org.netbeans.modules.sampler.SamplesOutputStream$Sample.access$300(SamplesOutputStream.java:253)
        at org.netbeans.modules.sampler.SamplesOutputStream.close(SamplesOutputStream.java:202)
        [catch] at org.netbeans.modules.sampler.Sampler.stopSampling(Sampler.java:231)
        at org.netbeans.modules.sampler.Sampler.stop(Sampler.java:207)
        at org.netbeans.core.ui.sampler.SelfSamplerAction$1.doInBackground(SelfSamplerAction.java:90)
        at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
         

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mchung Mandy Chung
                  Reporter:
                  mchung Mandy Chung
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: