Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 59147 invoked from network); 13 Apr 2007 13:48:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Apr 2007 13:48:39 -0000 Received: (qmail 46433 invoked by uid 500); 13 Apr 2007 13:48:42 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 46267 invoked by uid 500); 13 Apr 2007 13:48:42 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 46255 invoked by uid 99); 13 Apr 2007 13:48:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 06:48:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 06:48:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 66B51714042 for ; Fri, 13 Apr 2007 06:48:15 -0700 (PDT) Message-ID: <6543300.1176472095375.JavaMail.jira@brutus> Date: Fri, 13 Apr 2007 06:48:15 -0700 (PDT) From: "Don Hill (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-3075) LocalAttributeManager parse error during startup. In-Reply-To: <30219153.1176082772234.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-3075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488668 ] Don Hill commented on GERONIMO-3075: ------------------------------------ This issue is also happening in 1.2 beta so i would assume that it has been around for a while, in my case I am using a usr for the data source as jdbc:mysql://localhost:3306/db?useUnicode=true&characterEncoding=utf8&connectionCollation=utf8_bin What is happening is that when this element is read from the config.xml the & is unencoded to & so in the writeXml method a parse error happens when trying to create an element from this string value jdbc:mysql://localhost:3306/db?useUnicode=true&characterEncoding=utf8&connectionCollation=utf8_bin Patch to follow. > LocalAttributeManager parse error during startup. > ------------------------------------------------- > > Key: GERONIMO-3075 > URL: https://issues.apache.org/jira/browse/GERONIMO-3075 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: startup/shutdown > Affects Versions: 2.0-M4 > Environment: Linux 2.6.17-11-386 (ubuntu) > java version "1.5.0_08" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03) > Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing) > Reporter: Bill Brown > Priority: Minor > > Greetings: > I'm getting this parse error sprinkeled several times during startup while tailing the geronimo.log file with the unofficial 2.0M4 build. I do not know what negative effect it has on the running system. > 20:32:52,340 ERROR [LocalAttributeManager] Error occurred during execution of attributeChanged TimerTask > java.lang.RuntimeException: Failed to write attribute value fragment: The reference to entity "password" must end with the ';' delimiter. > at org.apache.geronimo.system.configuration.GBeanOverride.writeXml(GBeanOverride.java:542) > at org.apache.geronimo.system.configuration.ConfigurationOverride.writeXml(ConfigurationOverride.java:155) > at org.apache.geronimo.system.configuration.ServerOverride.writeXml(ServerOverride.java:108) > at org.apache.geronimo.system.configuration.LocalAttributeManager.saveXmlToFile(LocalAttributeManager.java:416) > at org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:382) > at org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:600) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) > Caused by: org.xml.sax.SAXParseException: The reference to entity "password" must end with the ';' delimiter. > at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264) > at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292) > at org.apache.geronimo.system.configuration.GBeanOverride.writeXml(GBeanOverride.java:529) > ... 7 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.