Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumberFormatException while running startup.sh #1

Open
susenj opened this issue Jun 28, 2016 · 1 comment
Open

NumberFormatException while running startup.sh #1

susenj opened this issue Jun 28, 2016 · 1 comment

Comments

@susenj
Copy link

susenj commented Jun 28, 2016

Running startup.sh file on Windows machine leaves the NumberFormatException .
Though it also says Modbus simulator started.

Looking at the source files, I couldn't reckon if these are harmless.

true: false: false: 5: 2: 4: 2: 5: 5: 4: false: true:host - 0.0.0.0
port - 502
Jun 28, 2016 8:25:33 PM com.cisco.iox.simulators.modbus.SimulatorDriver setup
SEVERE: Error -
java.lang.NumberFormatException: For input string: "true"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at com.cisco.iox.simulators.modbus.ModbusSlaveHandler.getRegisterStartAndCount(ModbusSlaveHandler.java:51)
at com.cisco.iox.simulators.modbus.ModbusSlaveHandler.loadRegisters(ModbusSlaveHandler.java:86)
at com.cisco.iox.simulators.modbus.ModbusSlaveHandler.(ModbusSlaveHandler.java:46)
at com.cisco.iox.simulators.modbus.ModbusSlave.(ModbusSlave.java:19)
at com.cisco.iox.simulators.modbus.SimulatorDriver.setup(SimulatorDriver.java:101)
at com.cisco.iox.simulators.modbus.ModbusSlaveSimulator.main(ModbusSlaveSimulator.java:15)

java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "true"
at com.cisco.iox.simulators.modbus.SimulatorDriver.setup(SimulatorDriver.java:104)
at com.cisco.iox.simulators.modbus.ModbusSlaveSimulator.main(ModbusSlaveSimulator.java:15)
Caused by: java.lang.NumberFormatException: For input string: "true"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at com.cisco.iox.simulators.modbus.ModbusSlaveHandler.getRegisterStartAndCount(ModbusSlaveHandler.java:51)
at com.cisco.iox.simulators.modbus.ModbusSlaveHandler.loadRegisters(ModbusSlaveHandler.java:86)
at com.cisco.iox.simulators.modbus.ModbusSlaveHandler.(ModbusSlaveHandler.java:46)
at com.cisco.iox.simulators.modbus.ModbusSlave.(ModbusSlave.java:19)
at com.cisco.iox.simulators.modbus.SimulatorDriver.setup(SimulatorDriver.java:101)
... 1 more
Modbus simulator started

@savinirsch
Copy link

You need to have the dataset, exactly in this order
address ranges followed by types followed by table of values.
The column numbers should exactly match.

40001-1,40002-1,40003-2,40005-2
short,short,float,float
40,20,9.99,30.11

I can see some "true" in the address range column read by the simulator.

java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "true"
at com.cisco.iox.simulators.modbus.SimulatorDriver.setup(SimulatorDriver.java:104)
at com.cisco.iox.simulators.modbus.ModbusSlaveSimulator.main(ModbusSlaveSimulator.java:15)
Caused by: java.lang.NumberFormatException: For input string: "true"

Please check the dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants