Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2713

Problem in HtmlConfigurationWriter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: webconsole-3.1.6
    • Fix Version/s: webconsole-3.1.8
    • Component/s: Web Console
    • Labels:
      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.

        Attachments

        1. stackoverflow.patch
          4 kB
          Valentin Valchev

          Activity

            People

            • Assignee:
              v_valchev Valentin Valchev
              Reporter:
              v_valchev Valentin Valchev
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: