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

WebConsole doesn't work with JDK 1.3.1_06 because of problem in MessageFormat

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: webconsole-3.1.2
    • Fix Version/s: webconsole-3.1.6
    • Component/s: Web Console
    • Labels:
      None
    • Environment:
      Sun JDK 1.3.1_06, Windows

      Description

      When running webconsole with JDK 1.3.1 it generates internal server error when opened from browser and it is completely unusable. In the logs the following exception is added:

      Exception: java.lang.IllegalArgumentException: argument number too large at
              at java.text.MessageFormat.makeFormat(MessageFormat.java:795)
              at java.text.MessageFormat.applyPattern(MessageFormat.java:318)
              at java.text.MessageFormat.<init>(MessageFormat.java:248)
              at java.text.MessageFormat.format(MessageFormat.java:475)
              at org.apache.felix.webconsole.AbstractWebConsolePlugin.startResponse(AbstractWebConsolePlugin.java:548)
              at org.apache.felix.webconsole.AbstractWebConsolePlugin.doGet(AbstractWebConsolePlugin.java:141)
              at org.apache.felix.webconsole.internal.core.BundlesServlet.doGet(BundlesServlet.java:275)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:702)
      

      Obviously, older JDK has some problems with MessageFormat. A simple workaround is to use our variable resolver instead of MessageFormat. IMHO using the variable resolver is even better because now we do 2 kinds of pre-processing of the HTML - first via the message formatter and second - with the variable resolver.

      So WDYT?

        Attachments

          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: