geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Hill (JIRA)" <>
Subject [jira] Commented: (GERONIMO-3075) LocalAttributeManager parse error during startup.
Date Fri, 13 Apr 2007 13:48:15 GMT


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  

<attribute name="ConnectionURL">jdbc:mysql://localhost:3306/db?useUnicode=true&amp;characterEncoding=utf8&amp;connectionCollation=utf8_bin</attribute>

What is happening is that when this element is read from the config.xml the &amp; is unencoded
to & so in the writeXml method a parse error happens when trying to create an element
from this string value

Patch to follow.

> LocalAttributeManager parse error during startup.
> -------------------------------------------------
>                 Key: GERONIMO-3075
>                 URL:
>             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
> 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(
>         at org.apache.geronimo.system.configuration.ConfigurationOverride.writeXml(
>         at org.apache.geronimo.system.configuration.ServerOverride.writeXml(
>         at org.apache.geronimo.system.configuration.LocalAttributeManager.saveXmlToFile(
>         at
>         at org.apache.geronimo.system.configuration.LocalAttributeManager$
>         at java.util.TimerThread.mainLoop(
>         at
> Caused by: org.xml.sax.SAXParseException: The reference to entity "password" must end
with the ';' delimiter.
>         at
>         at
>         at org.apache.geronimo.system.configuration.GBeanOverride.writeXml(
>         ... 7 more

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

View raw message