[ 
https://issues.apache.org/jira/browse/GERONIMO-3075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Don Hill updated GERONIMO-3075:
-------------------------------

    Attachment: geronimo-3075.diff

@rev 529251.

In class 
modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/GBeanOverride.java
   (revision 529251) there is an issue when parsing bad xml, this happens 
because when reading in the config.xml the & converted to & and then this 
value is being used in GBeanOverride.writeXml. To re-produce this do the 
following 

1.) create a datasource with a jdbc url that uses params and the xml value for 
& '&' like 
jdbc:mysql://localhost:3306/epm?useUnicode=true&characterEncoding=utf8

2.) During startup you should see the error specified in the 1st comment of 
this bug as ;.

[Fatal Error] :1:76: The reference to entity "characterEncoding" must end with 
the ';' delimiter.
09:59:10,668 ERROR [LocalAttributeManager] Error occurred during execution of 
attributeChanged TimerTask
java.lang.RuntimeException: Failed to write attribute value fragment: The 
reference to entity "characterEncoding" 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 
"characterEncoding" 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



> 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
>         Attachments: geronimo-3075.diff
>
>
> 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.

Reply via email to