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

Can't run SA tools from a non-images build

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      svc
    • Resolved In Build:
      b64

      Backports

        Description

        This is what you get.

        Unable to load properties null: null
        Error attaching to process: java.lang.RuntimeException: Missing property sun.jvm.hotspot.runtime.VM.saBuildVersion
        sun.jvm.hotspot.debugger.DebuggerException: java.lang.RuntimeException: Missing property sun.jvm.hotspot.runtime.VM.saBuildVersion
        at sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:437)
        at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:307)
        at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:142)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:185)
        at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
        at sun.jvm.hotspot.tools.JStack.main(JStack.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:502)
        at sun.tools.jstack.JStack.runJStackTool(JStack.java:140)
        at sun.tools.jstack.JStack.main(JStack.java:106)
        Caused by: java.lang.RuntimeException: Missing property sun.jvm.hotspot.runtime.VM.saBuildVersion
        at sun.jvm.hotspot.runtime.VM.checkVMVersion(VM.java:227)
        at sun.jvm.hotspot.runtime.VM.<init>(VM.java:310)
        at sun.jvm.hotspot.runtime.VM.initialize(VM.java:386)
        at sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:433)
        ... 11 more

        A workaround is to use -Dsun.jvm.hotspot.runtime.VM.disableVersionCheck=true

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sla Staffan Larsen (Inactive)
                  Reporter:
                  sla Staffan Larsen (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: