geronimo-dev mailing list archives

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

    [ 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  

<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
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.


Mime
View raw message