Error java.lang.NumberFormatException: For input string: "Port#""
search cancel

Error java.lang.NumberFormatException: For input string: "Port#""

book

Article ID: 45579

calendar_today

Updated On:

Products

Unified Infrastructure Management for Mainframe

Issue/Introduction

Upgrading to the new zdataservice probe 1.20 version may corrupt your existing ‘daas-cim-connector-config’ file by continuously removing the first double quote from the port # parm. 

Review of the server.log file in the /zdataservice/logs directory contains the following error:

[main, zdataservice] java.lang.NumberFormatException:

For input string: "1234""

at java.lang.NumberFormatException.forInputString(Unknown Source)

where 1234 is the port # specified.

Editing the ‘daas-cim-connector-config’ file and adding back the double quote, saving the file, and restarting the zdataservice probe will result in the continuous removal of this first double quote.

Ex.

      host: "141.xxx.xx.xx"

      protocol: "http"

      port: 1234"    <----

 

      namespace: "root/cimv2"

Cause

During deployment of the new zdataservice 1.20 probe, the existing configuration file ‘daas-cim-connector-config’ is stored in a backup folder in the following location.

C:\Program Files (x86)\Nimsoft\probes\service\zdataservicebackup

The corrupted ‘daas-cim-connector-config’ file is present in this backup folder and the new zdataservice probe reads from this directory. 

Resolution

  1. Delete the zdataservicebackup folder from the path located above.
  2. Add the first double quote before the port # back into the /config directory and then restart the zdataservice probe.
  3. Restart check the ‘daas-cim-connector-config’ file in the /config directory to ensure that the quotes surrounding the port # are still present.