Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
webconsole-3.1.6
-
None
Description
With some Skelmir VM and some J9 versions, when switching to the Web Console Configuration Render plugin, an exception will occur and no data will be shown. In some cases, this will even cause the death of the VM process.
The exception is because of different PrintWriter implementation that cases StackOverflowError, caused by an endless loop:
at java.io.PrintWriter.write(PrintWriter.java:396)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:495)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:541)
at java.io.PrintWriter.write(PrintWriter.java:396)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:495)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:541)
at java.io.PrintWriter.write(PrintWriter.java:396)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:495)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:541)
at java.io.PrintWriter.write(PrintWriter.java:396)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:495)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:541)
at java.io.PrintWriter.write(PrintWriter.java:396)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:495)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:541)
at java.io.PrintWriter.write(PrintWriter.java:396)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:483)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:541)
at java.io.PrintWriter.write(PrintWriter.java:396)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.write(ConfigurationRender.java:513)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender$HtmlConfigurationWriter.println(ConfigurationRender.java:463)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender.printConfigurationPrinter(ConfigurationRender.java:355)
at org.apache.felix.webconsole.internal.misc.ConfigurationRender.doGet(ConfigurationRender.java:163)
I provide a patch as a solution for the problem.