JAVA Number format exception while loading Financial Details in a contract

  • 7012833
  • 11-Jul-2013
  • 11-Jul-2013

Environment

Novell ZENworks Asset Management 11.2

Situation

Locale is one that uses "," as a decimal separator, instead of "." (for example France, Germany).

In ZCC, browse to Asset Management > Contract Management > Contracts > {Pick a contract that has some value in 'Total Cost'} > Financial
ERROR:
java.lang.NumberFormatException: For input string: "24,0"
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
    at java.lang.Double.parseDouble(Double.java:510)
    at
com.novell.zenworks.admin.pages.contracts.FinancialDetails.monthsBetween(FinancialDetails.java:266)
    at
com.novell.zenworks.admin.pages.contracts.FinancialDetails.prerender(FinancialDetails.java:145)


Resolution

This is fixed in version 11.2.3a - see KB 7011295 "ZENworks Configuration Management 11.2.3a - update information and list of fixes" which can be found at https://support.microfocus.com/kb/doc.php?id=7011295