Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 37931 invoked from network); 23 Sep 2010 13:06:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Sep 2010 13:06:15 -0000 Received: (qmail 23902 invoked by uid 500); 23 Sep 2010 13:06:15 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 23545 invoked by uid 500); 23 Sep 2010 13:06:12 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 23536 invoked by uid 99); 23 Sep 2010 13:06:11 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 13:06:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 13:05:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8ND5W4Z001762 for ; Thu, 23 Sep 2010 13:05:32 GMT Message-ID: <12836953.363761285247132582.JavaMail.jira@thor> Date: Thu, 23 Sep 2010 09:05:32 -0400 (EDT) From: "Valentin Valchev (JIRA)" To: dev@felix.apache.org Subject: [jira] Resolved: (FELIX-2610) WebConsole doesn't work with JDK 1.3.1_06 because of problem in MessageFormat In-Reply-To: <5576950.317501285082076194.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-2610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Valentin Valchev resolved FELIX-2610. ------------------------------------- Assignee: Valentin Valchev Fix Version/s: webconsole-3.1.4 Resolution: Fixed Fixed in rev.1000446 > 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 > Assignee: Valentin Valchev > Fix For: webconsole-3.1.4 > > Attachments: varresolver-insteadof-messageformat.patch > > > 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: > {code} > 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.(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) > {code} > 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? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.