hi,
seems there is a bug in the parsing of the content of <script> tag in a xml plug-in.
my simple perl script embeded in the xml plug-in file trigger the following error
2011-06-29 14:58:57,716 INFO [Thread-0] [ProductPluginManager] Loading plugin: my-sample-plugin.xml
2011-06-29 14:58:57,792 ERROR [Thread-0] [ProductPluginManager] A problem occured while registering plugin [my-sample-plugin.xml]
org.hyperic.hq.product.PluginException: Error on line 40 of document : The content of elements must consist of well-formed character data or markup.
at org.hyperic.hq.product.pluginxml.PluginParser.parse(PluginParser.java:89)
at org.hyperic.hq.product.pluginxml.PluginData.getInstance(PluginData.java:304)
at org.hyperic.hq.product.ProductPluginManager.registerPluginJar(ProductPluginManager.java:853)
at org.hyperic.hq.product.ProductPluginManager.registerPluginJar(ProductPluginManager.java:662)
at org.hyperic.hq.product.ProductPluginManager.registerPlugins(ProductPluginManager.java:752)
at org.hyperic.hq.agent.server.AgentDaemon.startPluginManagers(AgentDaemon.java:690)
at org.hyperic.hq.agent.server.AgentDaemon.start(AgentDaemon.java:832)
at org.hyperic.hq.agent.server.AgentDaemon$RunnableAgent.run(AgentDaemon.java:930)
at java.lang.Thread.run(Unknown Source)
but there is no syntax error in the perl script, only the usage of '<' and/or '>'
is there a way for the parser not to parse the content between <script > and </script>
?
thank you.
seems there is a bug in the parsing of the content of <script> tag in a xml plug-in.
my simple perl script embeded in the xml plug-in file trigger the following error
2011-06-29 14:58:57,716 INFO [Thread-0] [ProductPluginManager] Loading plugin: my-sample-plugin.xml
2011-06-29 14:58:57,792 ERROR [Thread-0] [ProductPluginManager] A problem occured while registering plugin [my-sample-plugin.xml]
org.hyperic.hq.product.PluginException: Error on line 40 of document : The content of elements must consist of well-formed character data or markup.
at org.hyperic.hq.product.pluginxml.PluginParser.parse(PluginParser.java:89)
at org.hyperic.hq.product.pluginxml.PluginData.getInstance(PluginData.java:304)
at org.hyperic.hq.product.ProductPluginManager.registerPluginJar(ProductPluginManager.java:853)
at org.hyperic.hq.product.ProductPluginManager.registerPluginJar(ProductPluginManager.java:662)
at org.hyperic.hq.product.ProductPluginManager.registerPlugins(ProductPluginManager.java:752)
at org.hyperic.hq.agent.server.AgentDaemon.startPluginManagers(AgentDaemon.java:690)
at org.hyperic.hq.agent.server.AgentDaemon.start(AgentDaemon.java:832)
at org.hyperic.hq.agent.server.AgentDaemon$RunnableAgent.run(AgentDaemon.java:930)
at java.lang.Thread.run(Unknown Source)
but there is no syntax error in the perl script, only the usage of '<' and/or '>'
is there a way for the parser not to parse the content between <script > and </script>
?
thank you.