You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Bill Brown (JIRA)" <ji...@apache.org> on 2007/04/09 03:39:32 UTC

[jira] Created: (GERONIMO-3075) LocalAttributeManager parse error during startup.

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.


[jira] Updated: (GERONIMO-3075) LocalAttributeManager parse error during startup.

Posted by "Don Hill (JIRA)" <ji...@apache.org>.
     [ 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 &amp; 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 & '&amp;' like jdbc:mysql://localhost:3306/epm?useUnicode=true&amp;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.


[jira] Commented: (GERONIMO-3075) LocalAttributeManager parse error during startup.

Posted by "Don Hill (JIRA)" <ji...@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  

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