node-java icon indicating copy to clipboard operation
node-java copied to clipboard

failed to convert javax.management.openmbean.CompositeDataSupport

Open erickyi2006 opened this issue 9 years ago • 2 comments

When i made a call to jmx.invoke (getMessage) which returns a javax.management.openmbean.CompositeDataSupport, I got an empty {} result in my nodejs. I think it is the failure to convert the return result from jmx.

Has anyone done something similar before?

erickyi2006 avatar Dec 20 '16 08:12 erickyi2006

Many of the returned java objects print like that. Try executing toStringSync() on that empty object.

joeferner avatar Dec 20 '16 12:12 joeferner

Many thanks for the hint. I am able to extract the string results. Brilliant. :)

erickyi2006 avatar Dec 21 '16 01:12 erickyi2006