felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Valchev (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-2610) WebConsole doesn't work with JDK 1.3.1_06 because of problem in MessageFormat
Date Tue, 21 Sep 2010 15:14:36 GMT
 WebConsole doesn't work with JDK 1.3.1_06 because of problem in MessageFormat

                 Key: FELIX-2610
                 URL: https://issues.apache.org/jira/browse/FELIX-2610
             Project: Felix
          Issue Type: Bug
          Components: Web Console
    Affects Versions: webconsole-3.1.2
         Environment: Sun JDK 1.3.1_06, Windows
            Reporter: Valentin Valchev

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.


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message