Closed phantomjinx closed 1 year ago
@tadayosi Appreciate any thoughts you may have on this.
@phantomjinx I wonder if the old hawtio has the same issue or not.
Talking about checkListOptimisation()
, it seems that this is another case of not having reject when invoking Jolokia, thus entering infinite awaiting:
https://github.com/hawtio/hawtio-next/blob/main/packages/hawtio/src/plugins/connect/jolokia-service.ts#L296-L312
I think we need to invoke reject
when we receive error at jolokia list. Absense of RBACRegistry
is expected, so we should handle such case gently.
When a target app is configured to execute using the jolokia-jvm agent (see here), connecting to it fails.
yarn start
;http://localhost:8778/jolokia
;The spinner remains visible and the following error appears in the console:
This is caused by the function
checkListOptimisation()
which rejects and errors out.By commenting out this check, the JMX tree is displayed but a whole range of errors are thrown from
buildRequest
:This will require fixing before implementing hawtio-online since java apps (example ones anyway) are implemented with jolokia in this way, eg. the
Red Hat Fuse 7.11 Camel with Spring Boot 2
template on Openshift.