Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-27949

[JDK16] Stack in logs when starting IDE

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 4.19.1.Final
    • 4.21.x
    • jmx
    • None
    • Sprint #204 July 2021, Sprint #205 Aug 2021, Sprint #206 Aug 2021

    Description

      when starting the IDE with JDK 16, there is a silent stack dumped in the logs :

      !ENTRY org.jboss.tools.jmx.jvmmonitor.tools 4 0 2021-07-15 17:00:02.449
      !MESSAGE Update timer canceled.
      !STACK 1
      org.jboss.tools.jmx.jvmmonitor.core.JvmCoreException: class org.jboss.tools.common.jdt.debug.tools.internal.Tools cannot access class sun.jvmstat.monitor.MonitoredHost (in module jdk.internal.jvmstat) because module jdk.internal.jvmstat does not export sun.jvmstat.monitor to unnamed module @2c60bf3f
      	at org.jboss.tools.jmx.jvmmonitor.internal.tools.JvmAttachHandler.updatesActiveJvms(JvmAttachHandler.java:124)
      	at org.jboss.tools.jmx.jvmmonitor.internal.tools.JvmAttachHandler$1.run(JvmAttachHandler.java:78)
      	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
      	at java.base/java.util.TimerThread.run(Timer.java:506)
      Caused by: org.jboss.tools.common.jdt.debug.tools.ToolsCoreException: class org.jboss.tools.common.jdt.debug.tools.internal.Tools cannot access class sun.jvmstat.monitor.MonitoredHost (in module jdk.internal.jvmstat) because module jdk.internal.jvmstat does not export sun.jvmstat.monitor to unnamed module @2c60bf3f
      	at org.jboss.tools.common.jdt.debug.tools.internal.Tools.invokeGetMonitoredHost(Tools.java:189)
      	at org.jboss.tools.common.jdt.debug.tools.internal.Tools.invokeActiveVms(Tools.java:196)
      	at org.jboss.tools.common.jdt.debug.tools.ToolsCore.getActiveProcessIds(ToolsCore.java:185)
      	at org.jboss.tools.jmx.jvmmonitor.internal.tools.JvmAttachHandler.updatesActiveJvms(JvmAttachHandler.java:100)
      	... 3 more
      Caused by: java.lang.IllegalAccessException: class org.jboss.tools.common.jdt.debug.tools.internal.Tools cannot access class sun.jvmstat.monitor.MonitoredHost (in module jdk.internal.jvmstat) because module jdk.internal.jvmstat does not export sun.jvmstat.monitor to unnamed module @2c60bf3f
      	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:385)
      	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:687)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:559)
      	at org.jboss.tools.common.jdt.debug.tools.internal.Tools.invokeGetMonitoredHost(Tools.java:186)
      	... 6 more
      !SUBENTRY 1 org.jboss.tools.jmx.jvmmonitor.core 4 0 2021-07-15 17:00:02.450
      !MESSAGE class org.jboss.tools.common.jdt.debug.tools.internal.Tools cannot access class sun.jvmstat.monitor.MonitoredHost (in module jdk.internal.jvmstat) because module jdk.internal.jvmstat does not export sun.jvmstat.monitor to unnamed module @2c60bf3f
      !STACK 1
      org.jboss.tools.common.jdt.debug.tools.ToolsCoreException: class org.jboss.tools.common.jdt.debug.tools.internal.Tools cannot access class sun.jvmstat.monitor.MonitoredHost (in module jdk.internal.jvmstat) because module jdk.internal.jvmstat does not export sun.jvmstat.monitor to unnamed module @2c60bf3f
      	at org.jboss.tools.common.jdt.debug.tools.internal.Tools.invokeGetMonitoredHost(Tools.java:189)
      	at org.jboss.tools.common.jdt.debug.tools.internal.Tools.invokeActiveVms(Tools.java:196)
      	at org.jboss.tools.common.jdt.debug.tools.ToolsCore.getActiveProcessIds(ToolsCore.java:185)
      	at org.jboss.tools.jmx.jvmmonitor.internal.tools.JvmAttachHandler.updatesActiveJvms(JvmAttachHandler.java:100)
      	at org.jboss.tools.jmx.jvmmonitor.internal.tools.JvmAttachHandler$1.run(JvmAttachHandler.java:78)
      	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
      	at java.base/java.util.TimerThread.run(Timer.java:506)
      Caused by: java.lang.IllegalAccessException: class org.jboss.tools.common.jdt.debug.tools.internal.Tools cannot access class sun.jvmstat.monitor.MonitoredHost (in module jdk.internal.jvmstat) because module jdk.internal.jvmstat does not export sun.jvmstat.monitor to unnamed module @2c60bf3f
      	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:385)
      	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:687)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:559)
      	at org.jboss.tools.common.jdt.debug.tools.internal.Tools.invokeGetMonitoredHost(Tools.java:186)
      	... 6 more
      !SUBENTRY 2 org.jboss.tools.common.jdt.debug 4 0 2021-07-15 17:00:02.451
      !MESSAGE class org.jboss.tools.common.jdt.debug.tools.internal.Tools cannot access class sun.jvmstat.monitor.MonitoredHost (in module jdk.internal.jvmstat) because module jdk.internal.jvmstat does not export sun.jvmstat.monitor to unnamed module @2c60bf3f
      !STACK 0
      java.lang.IllegalAccessException: class org.jboss.tools.common.jdt.debug.tools.internal.Tools cannot access class sun.jvmstat.monitor.MonitoredHost (in module jdk.internal.jvmstat) because module jdk.internal.jvmstat does not export sun.jvmstat.monitor to unnamed module @2c60bf3f
      	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:385)
      	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:687)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:559)
      	at org.jboss.tools.common.jdt.debug.tools.internal.Tools.invokeGetMonitoredHost(Tools.java:186)
      	at org.jboss.tools.common.jdt.debug.tools.internal.Tools.invokeActiveVms(Tools.java:196)
      	at org.jboss.tools.common.jdt.debug.tools.ToolsCore.getActiveProcessIds(ToolsCore.java:185)
      	at org.jboss.tools.jmx.jvmmonitor.internal.tools.JvmAttachHandler.updatesActiveJvms(JvmAttachHandler.java:100)
      	at org.jboss.tools.jmx.jvmmonitor.internal.tools.JvmAttachHandler$1.run(JvmAttachHandler.java:78)
      	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
      	at java.base/java.util.TimerThread.run(Timer.java:506)
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            stephane.bouchet Stephane Bouchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: