Project

General

Profile

Actions

Bug #41 | PJV-0001

closed

Exception while converting string to float

Added by Txinto Vaz 2 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Urgent
Assignee:
Txinto Vaz
Target release:
Start date:
09/18/2024
Due date:
% Done:

100%

Estimated time:
csWload:
csOldCode:
csID:
PJV-0001
csChapter:
depGrahInReports:
Include if has relations

Description

In case we have a param which can have a number value or a string value, when changing from string to number the value has to be converted (if possible). If there is an exception, the default float shall be set.

In particular, if the string is an IP address, which has several dots, exception occurs in the background, and the value is still there.

Identifier: PJV-0001

Workload %:

Links for downloading GraphViz and SVG:

GV SVG

Links for downloading GraphViz and SVG:

GV SVG

Actions #1

Updated by Txinto Vaz 2 months ago

  • Status changed from New to In Progress

The trace shows the exception point:

PORISXML.update: 5
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: multiple points
        at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
        at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
        at java.base/java.lang.Double.parseDouble(Double.java:543)
        at org.gatATAC.poris.formatters.ValueDoubleFormatter.getValue(ValueDoubleFormatter.java:37)
        at org.gatATAC.poris.PORISValueFloat.isValidFromStr(PORISValueFloat.java:142)
        at org.gatATAC.poris.Cfg.getData(Cfg.java:88)
        at org.gatATAC.poris.player.ValueGUICell.update(ValueGUICell.java:237)
        at org.gatATAC.poris.player.ValueGUICell.setValue(ValueGUICell.java:53)
        at org.gatATAC.poris.player.CfgGUIPanel.setValue(CfgGUIPanel.java:72)
        at org.gatATAC.poris.player.CfgGUI.update(CfgGUI.java:149)
Actions #2

Updated by Txinto Vaz 2 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Txinto Vaz 2 months ago

  • Status changed from Resolved to Closed

Solved here

Actions

Also available in: Atom PDF

Go to top