cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

PI not start - java error

Ralf Boehm
Level 1
Level 1

Hello,

 

I got a java error, see the following text, if I tried to start ncs or check status:

 

ncs status
Exception in thread "main" java.util.NoSuchElementException
        at java.util.Scanner.throwFor(Scanner.java:862)
        at java.util.Scanner.next(Scanner.java:1371)
        at com.cisco.common.ha.config.HighAvailabilityConfig.parseXmlFile(HighAvailabilityConfig.java:232)
        at com.cisco.common.ha.config.HighAvailabilityConfig.parseXmlFile(HighAvailabilityConfig.java:214)
        at com.cisco.common.ha.config.HighAvailabilityConfig.<init>(HighAvailabilityConfig.java:194)
        at com.cisco.common.ha.config.HighAvailabilityConfig.getInstance(HighAvailabilityConfig.java:203)
        at com.cisco.packaging.HMAdmin.initHealthMonitorApi(HMAdmin.java:409)
        at com.cisco.packaging.HMAdmin.hmServerStatus(HMAdmin.java:302)
        at com.cisco.packaging.HMAdmin.status(HMAdmin.java:172)
        at com.cisco.packaging.WCSAdmin.status(WCSAdmin.java:1053)
        at com.cisco.packaging.WCSAdmin.status(WCSAdmin.java:1026)
        at com.cisco.packaging.WCSAdmin.runMain(WCSAdmin.java:314)
        at com.cisco.packaging.WCSAdmin.main(WCSAdmin.java:1493)

 

The problem was, the file

 

/opt/CSCOlumos/conf/rfm/classes/com/cisco/common/ha/config/haSettings.xml

 

was empty. For my luck, I found a copy in the same directory:

 

haSettings_bkup.xml

 

Copy this file to haSettings.xml, and all works fine. I do not know, why these file was empty.

 

Who Me Too'd this topic