MID Server not able to install

kms
Kilo Expert

Hi All,

I am trying to install MID Server for discovery. I have downloaded the MID Server from service now and installed in the system. Also followed the steps given in Service now and made changes in config.xml and wrapprer.override.xml. I am able to see the MID Server service created in services. But not able to start.

Please help me on this issue

1 ACCEPTED SOLUTION

Antony_Alldis
ServiceNow Employee
ServiceNow Employee

Hi Shyama,



This is sounding like a configuration issue in the <path_to_MIDserver>\agent\config.xml



07/25/16 05:59:34 (157) MIDServer WARNING *** WARNING *** org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 79; The entity name must immediately follow the '&' in the entity reference.



Please check line 30 - column 79 of the config.xml file - I would hazard a guess this will be the "password" parameter.



To resolve it - use a password that doesn't contain an ampersand "&" as this appears to be breaking the XML.



Regards,



Tony


View solution in original post

13 REPLIES 13

Hi Tony,



This is the log in agent.log()




07/25/16 05:59:33 (768) WrapperStartStopAppMain Running under Java version: 1.8.0_40, java PID: 4852, args: start


07/25/16 05:59:33 (770) WrapperStartStopAppMain Initializing MID Server


07/25/16 05:59:33 (872) MIDServer MID Server starting


07/25/16 05:59:34 (157) MIDServer WARNING *** WARNING *** org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 79; The entity name must immediately follow the '&' in the entity reference.


07/25/16 05:59:34 (158) MIDServer Using configuration: C:\ServiceNow\SNC_MID_Dev1\config.xml


07/25/16 05:59:34 (160) MIDServer WARNING *** WARNING *** XPathUtil.selectSingleNode called with null using xpath: //parameter[@name='refresh_rate']


07/25/16 05:59:34 (160) MIDServer WARNING *** WARNING *** XPathUtil.selectSingleNode called with null using xpath: //parameter[@name='instance.date.format']


07/25/16 05:59:34 (160) MIDServer WARNING *** WARNING *** XPathUtil.selectNodes called with null using xpath: //parameter


07/25/16 05:59:34 (161) MIDServer SEVERE *** ERROR *** Unexpected exception terminating the MID server


java.lang.NullPointerException


at com.service_now.mid.services.Config.getParameters(Config.java:160)


at com.service_now.mid.services.Config.loadProperties(Config.java:331)


at com.service_now.mid.services.Config.init(Config.java:137)


at com.service_now.mid.services.StartupSequencer.start(StartupSequencer.java:54)


at com.service_now.mid.MIDServerState.initForStart(MIDServerState.java:177)


at com.service_now.mid.MIDServerState.onStart(MIDServerState.java:77)


at com.service_now.mid.MIDServerState.poll(MIDServerState.java:40)


at com.service_now.mid.MIDServer.run(MIDServer.java:49)


at com.service_now.mid.Main.runMID(Main.java:67)


at com.service_now.mid.Main.handleStart(Main.java:29)


at com.service_now.mid.Main.main(Main.java:23)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)


at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


at java.lang.reflect.Method.invoke(Method.java:497)


at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:264)


at java.lang.Thread.run(Thread.java:745)





Thanks


Shyama



Antony_Alldis
ServiceNow Employee
ServiceNow Employee

Hi Shyama,



This is sounding like a configuration issue in the <path_to_MIDserver>\agent\config.xml



07/25/16 05:59:34 (157) MIDServer WARNING *** WARNING *** org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 79; The entity name must immediately follow the '&' in the entity reference.



Please check line 30 - column 79 of the config.xml file - I would hazard a guess this will be the "password" parameter.



To resolve it - use a password that doesn't contain an ampersand "&" as this appears to be breaking the XML.



Regards,



Tony


Thank you Toni,



My pwd have & character



Let me try by changing pwd


Thank you, Tony



It worked for me. Issue was with '&' character in password


tim_broberg
ServiceNow Employee
ServiceNow Employee

Created PRB700058 - Mid server gets SAXParseException on password with special characters