Menu

#13 Invalid XML in history when importing Nagios configs

open
nobody
linux (1)
5
2013-10-07
2013-10-07
Apostate
No

Cannot Poperly Parse imported Nagios configs

First: Documentation on this feature is nothing short of terrible. Why is "examples" the only valid imput folder? Where is this documented? Next, generated XML files show this error when I try to open them:
java.lang.IllegalAccessError: Can't parse XML URL[file:/apps/onecmdb/repository/MDR/Nagios/history/20131007/155838_nagios-onecmdb.xml]:org.dom4j.DocumentException: Error on line 1299 of document : Element type "NAGIOS_Host_generic-host-nix" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "NAGIOS_Host_generic-host-nix" must be followed by either attribute specifications, ">" or "/>".
at org.onecmdb.core.utils.xml.XmlParser.loadBeans(Unknown Source)
at org.onecmdb.core.utils.xml.XmlParser.getBeans(Unknown Source)
at org.onecmdb.ui.gwt.desktop.server.service.change.CIMDRBeanProvider.query(Unknown Source)
at org.onecmdb.ui.gwt.desktop.server.service.change.CIMDRCollection.query(Unknown Source)
at org.onecmdb.ui.gwt.desktop.server.service.change.ReconciliationEngine.getBeans(Unknown Source)
at org.onecmdb.ui.gwt.desktop.server.service.change.ReconciliationEngine.compare(Unknown Source)
at org.onecmdb.ui.gwt.desktop.server.service.change.ReconciliationEngine.reconciliate(Unknown Source)
at org.onecmdb.ui.gwt.desktop.server.service.change.ChangeServiceImpl.loadChanges(Unknown Source)
at sun.reflect.GeneratedMethodAccessor410.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)

An example of the invalid XML:

</NAGIOS_Host_generic-host-nix,host-os-solaris>
<NAGIOS_Host_generic-host-nix,host-os-solaris

...not sure why multiple templates are being rendered into XML like that but, there it is.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.