cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10276
Views
40
Helpful
17
Replies

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.

 

17 Replies 17

I am getting below error. I have created the file and paste the content from your file along with "X' value.

 

Error getting Health Monitor API.
Error trying to communicating with Health Monitor.

Hello, please check file-permissions and owner and group of the created file. Must be the same like the other files. MfG Ralf Boehm

RachelGomez161999
Spotlight
Spotlight

If the Pi appears to be failing to boot because nothing appears on screen, you'll need to force HDMI detection. Save and exit the file, safely remove the SD card, return it to your Raspberry Pi, then power up again.

 

Regards,

Rachel Gomez