Troubleshooting the "NumberFormatException" due to Locale Standards in APM Insight
Issue Summary:
The application throws a "NumberFormatException" when parsing numbers formatted with a comma (",") as a decimal separator (e.g., French - fr_FR, German - de_DE, Italian - it_IT). This occurs because the system expects numbers to be formatted with a dot (".") as a decimal separator, as per English (en_US) locale standards.
Example Exception:
- [3 juin 2024 16:04:14][/api/v2/apminsight/app/10011615/comp/details/graph/rtbycomponents/hH-1717430654437_###_https-jsse-nio-8443-exec-34-352][GRAVE](APMInsightBaseAPI.logApiError):Exception occured while processing api request.
- java.lang.NumberFormatException: For input string: "28,0"
- at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
- at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
- at java.lang.Double.parseDouble(Double.java:538)
- at com.manageengine.apminsight.common.util.StringUtils.getAsDouble(StringUtils.java:111)
Cause:
This issue arises due to a mismatch between the application's locale (e.g., French - fr_FR, German - de_DE, Italian - it_IT) and the expected locale of the system (English - en_US).
Workaround:
1. Update Locale Settings: Add the following configuration to the <AppManager>/conf/AMServer.properties file:
am.server.language=en
am.server.country=US
2. Restart Applications Manager: Restart the AppManager service to apply the changes.
3. Check the APM tab for any recurring issues after the update.
Note:
This issue was fixed in Applications Manager v173500. Upgrading to this version or later eliminates the need for the workaround.
New to ADSelfService Plus?
Related Articles
Self monitor Applications Manager using APM Insight Java Agent
Applications Manager is built with Java, hence we can monitor it using APM Insight Java Agent to measure it's performance continuously, which can be very much useful. Setting up APM Insight Java Agent Follow the below steps to download and set up the ...
APM Insight Troubleshooting - FAQs
Monitor Addition - FAQs 1. How to add an APM Insight Monitor? After you deploy the APM Insight agent in your Application Server with suitable Applications Manager credentials in the apminsight.conf file, APM Insight monitors will automatically be ...
Uninstrumented Block of Code - APM Insight
In the traces tab --> Slowest Method Calls and Count we show if you find Un-instrumented block of code the reason is as follows: Basically, What is un-instrumented block of code in APM Insight? By default, APM Insight agent monitors known frameworks ...
Troubleshoot - Duplicate APMInsight Monitors
Introduction Duplicate monitors might be created in APMInsight due to various reasons. This article will help you identify and resolve the issue of duplicate monitors. The common causes include: - Changes in monitor configuration. (apminsight.conf ...
APM Insight Basic Troubleshooting tips - Nodejs
If you have installed the APM Insight Node.js agent and are facing issues with it, follow the instructions given below to troubleshoot your application: 1. License key and logs Check whether the apminsightnode.json file contains the correct license ...