Support Article
java.lang.NumberFormatException: For input string: "Mobile"
SA-76349
Summary
When selecting a radio button from a table layout sourced by a page group, the User Interface is unresponsive and error occurs in the Tracer.
Error Messages
java.lang.NumberFormatException "@BASECLASS SETOTHERRADIOTOFALSE".
java.lang.NumberFormatException: For input string: "Mobile"
Steps to Reproduce
- Use Page Group as the source of a Table layout.
- Add a radio button for each row for selection.
Root Cause
A defect in Pegasystems’ code or rules.
The below line of code in the SETOTHERRADIOTOFALSE activity caused the issue since the Page Group did not use the index to access each page.
int rowNumber = Integer.parseInt(rowPageRef.substring(propertyReference.lastIndexOf('(') + 1, propertyReference.lastIndexOf(')')));
Resolution
Perform the following local-change:
Include the code in a Try Catch block and ignore the exception because the Page Group does not require the code to be executed.
Published August 15, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.