cryostatio / cryostat-web

Web front-end for Cryostat: Secure JDK Flight Recorder management for containerized JVMs
https://cryostat.io/
Other
10 stars 20 forks source link

[Bug] JVM Details view produces "Unparseable Input Document" error #1249

Closed andrewazores closed 3 months ago

andrewazores commented 3 months ago

Current Behavior

When clicking "View More" on the JVM Details card content, all the fields come up with "Unknown" values and an error message "Unparseable Input Document" appears.

Expected Behavior

There should be no error message, and the JVM details such as operating system, JDK version and vendor, etc. should appear.

Steps To Reproduce

  1. cd cryostat3
  2. ./smoketest.bash
  3. Select Cryostat itself as the target
  4. Add a JVM Details card to the Dashboard, or go to the Topology view and select the Cryostat target
  5. Click "View More"

Environment

No response

Anything else?

Screenshot_2024-04-22_23-26-35

andrewazores commented 3 months ago

Query:

{
  "query": " query MBeanMXMetricsForTarget(id: BigInteger!) { targetNodes(filter: { targetIds: [$id] }) { target { mbeanMetrics { runtime { startTime vmVendor vmVersion classPath libraryPath inputArguments systemProperties { key value } } os { name version arch availableProcessors totalPhysicalMemorySize totalSwapSpaceSize } } } } }",
  "variables": {
    "id": 2
  }
}

Response:

{
  "errors": [
    {
      "message": "Unparseable input document",
      "locations": [],
      "extensions": {
        "classification": "DataFetchingException"
      }
    }
  ],
  "data": null
}

This happens for any selected target.

andrewazores commented 3 months ago

This actually only applies to https://github.com/cryostatio/cryostat-web/pull/1245 .