Skip to main content

I have error with  agent on linux for new asset:

ERROR pbanka] SysAid Server] com.ilient - Error in SAXParser
java.lang.NullPointerException
        at com.ilient.agentApi.b.startElement(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.ilient.agentApi.b.a(Unknown Source)
        at com.ilient.agentApi.LshwAgent.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
 

 

Hi ​@leonp

The error log you provided indicates an issue with the SysAid agent on Linux, specifically related to XML parsing. The key point in the error is:

Error in SAXParser java.lang.NullPointerException

What It Means:

  • SAX Parser Issue: The error suggests that there is an issue with the XML data being processed by the SysAid server. This could be due to malformed XML sent by the agent or an issue in the communication between the agent and the server.
  • NullPointerException: This occurs when the application tries to use an object reference that is null. In this case, it's likely that the XML parser expected certain data but did not receive it, leading to the error.

Possible Causes:

  1. Incomplete or Corrupt Agent Installation: If the SysAid agent was not installed correctly, it may not be able to collect and send the required data.
  2. Misconfiguration in the SysAid Server or Agent: The configuration files might contain incorrect settings or values, leading to communication errors.
  3. XML Data Issues: The agent might be generating XML data that is malformed or missing required fields.
  4. Dependency Issues: Missing or outdated libraries (such as Java-related dependencies) could cause this error.

The simplest solution would be to uninstall and redeploy the agent to the respective asset.

If you need more help, have further questions, or just want to chat about this topic, please don't hesitate to reach out. 


Reply