views:

182

answers:

0

I'm using the Java JDMK HtmlAdaptorServer to provide a debugging interface to some MBeans.

However, any bean methods that return data that includes characters that need to be escaped do not display correctly since the HtmlAdaptorServer is apparently not performing any escaping.

I took a look the source via the OpenDMK, and it would appear that, at least for MBean invocations, the encoding should be happening (but is not) at HtmlInvokePage.java:307.

However, I cannot find any other references on the Web to this issue, which seems very strange. Am I doing something wrong? Why has nobody else reported this issue?

A simple MBean that returns a String value of "<hello>" would display this breakage.