Exception: An exception in the handler class occurred. The exception is for input string: "x,xx".

book

Article ID: 8080

calendar_today

Updated On:

Products

DSERIES- SERVER CA Workload Automation DE - System Agent (dSeries)

Issue/Introduction

When the scheduler queries agents to to get load balancing status, an error is displayed in tracelog file, similar to the below (in red):

20170816 09:56:29.944 [incoming:messages] [INFO] DM.Appl.dm-non-application: [2017-08-16_09:56:29.944] Processing AFM: 20170816 09563268+0300 <DSERIES_server>_7500 <agent_name> <agent_name>/#LOADBALANCINGCPUMONITOR-<DSERIES_server>_7500/SERVERQUERY STATE Monitor SetEnd CounterAvail(100) CounterUsed(0) Status(Avail=100, Used=0) LoadAverage1m(1,50) LoadAverage5m(2,56) LoadAverage15m(2,07) Plugin(objmon) User(user_name) Host(machine_name)

20170816 09:56:29.945 [essential] [INFO] DM.Appl.dm-non-application: [2017-08-16_09:56:29.945] Updating CPU usage statistics for agent <agent_name>

20170816 09:56:29.945 [essential] [ERROR] DM.Appl.dm-non-application: [2017-08-16_09:56:29.945] Exception: An exception in the handler class occurred. The exception is For input string: "1,50".
com.ca.wa.publiclibrary.library.afm.AFMRouterException: An exception in the handler class occurred. The exception is For input string: "1,50"

 

Cause

For this case, we can see in tracelog file that the info sent by the agent to scheduler is using commas (","), instead dots (".") for decimal points:

20170816 09563268+0300 <DSERIES_server>_7500 <agent_name> <agent_name>/#LOADBALANCINGCPUMONITOR-<DSERIES_server>_7500/SERVERQUERY STATE Monitor SetEnd CounterAvail(100) CounterUsed(0) Status(Avail=100, Used=0) LoadAverage1m(1,50) LoadAverage5m(2,56) LoadAverage15m(2,07) Plugin(objmon) User(user_name) Host(machine_name)

This happens because the system locale, configured in the OS where the agent is installed is other than English.

Environment

CA Workload Automation DE 11.3.xCA Workload Automation DE 12.0.xCA Workload automation System Agent 11.3.x

Resolution

You must configure the system locale, configured in the OS where the agent is installed to English.