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

onecmdb | apostate9 | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Invalid XML in history when importing Nagios configs

    onecmdb | 4 years ago | apostate9
    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 "/>".

Root Cause Analysis

  1. 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()
  2. org.onecmdb.core
    XmlParser.getBeans
    1. org.onecmdb.core.utils.xml.XmlParser.loadBeans(Unknown Source)
    2. org.onecmdb.core.utils.xml.XmlParser.getBeans(Unknown Source)
    2 frames
  3. org.onecmdb.ui
    ChangeServiceImpl.loadChanges
    1. org.onecmdb.ui.gwt.desktop.server.service.change.CIMDRBeanProvider.query(Unknown Source)
    2. org.onecmdb.ui.gwt.desktop.server.service.change.CIMDRCollection.query(Unknown Source)
    3. org.onecmdb.ui.gwt.desktop.server.service.change.ReconciliationEngine.getBeans(Unknown Source)
    4. org.onecmdb.ui.gwt.desktop.server.service.change.ReconciliationEngine.compare(Unknown Source)
    5. org.onecmdb.ui.gwt.desktop.server.service.change.ReconciliationEngine.reconciliate(Unknown Source)
    6. org.onecmdb.ui.gwt.desktop.server.service.change.ChangeServiceImpl.loadChanges(Unknown Source)
    6 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor410.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    3. java.lang.reflect.Method.invoke(Unknown Source)
    3 frames
  5. Jetty Contrib :: jetty-gwt RemoteServiceServlet
    RemoteServiceServlet.doPost
    1. com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
    2. com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
    3. com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
    3 frames
  6. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    2 frames
  7. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    8 frames
  8. Grizzly HTTP
    LeaderFollowerWorkerThread.runIt
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    2. org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    4. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    4 frames
  9. Tomcat Util
    ThreadPool$ControlRunnable.run
    1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    1 frame
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame