IBM Maximo Customization Detection Tool

From Wiki

IBM Maximo Customization Detection Tool is a tool to detect customization on a client system for IBM Maximo® Asset Management.

To install check at this article IBM Maximo Customization Detection Tool


Tips

Error: java.lang.NumberFormatException: For input string:

When i run CustomMetaDataClassesReport.bat, i received the following error

Log file: listmetadataclass20220823160233.log
Product install order: [a_itic, a_tamitbase, a_mif, a_mifent, bim, budmon, calibration, iotconn, mam, scheduler, linear, nxtgenui, scheduler_plus, tpae, xebasso]
...
Problem creating classes hash map
java.lang.NumberFormatException: For input string: "8,0347"
       at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2056)
       at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:135)
       at java.lang.Float.parseFloat(Float.java:462)
       at java.lang.Float.valueOf(Float.java:427)
       at psdi.tools.CustomMetaDataClassesReport.setTotal(CustomMetaDataClassesReport.java:506)
       at psdi.tools.CustomMetaDataClassesReport.writeReport(CustomMetaDataClassesReport.java:290)
       at psdi.tools.CustomMetaDataClassesReport.main(CustomMetaDataClassesReport.java:1056)

This happens because I running in a different Locale (such as Germany/Brazilian Portuguese) where the decimal separator character is ','

To solve this problem, edit file D:\SMP_ebasso\maximo\tools\maximo\CustomMetaDataClassesReport.bat and define user.language and user.country variable to .bat file:

@..\java\jre\bin\java  -Duser.language=en -Duser.country=US -classpath .;.\classes;%MAXIMO_CLASSPATH% psdi.tools.ListCustomMetaDataClasses %1

@..\java\jre\bin\java  -Duser.language=en -Duser.country=US -classpath .;.\classes;%MAXIMO_CLASSPATH%  psdi.tools.CustomMetaDataClassesReport 

Now run again, and you can check the correct result:

D:\SMP_ebasso\maximo\tools\maximo>CustomMetaDataClassesReport.bat

Log file: listmetadataclass20220823160514.log
Product install order: [a_itic, a_tamitbase, a_mif, a_mifent, bim, budmon, calibration, iotconn, mam, scheduler, linear, nxtgenui, scheduler_plus, tpae, xebasso]
/script/a_itic/a_tamitbase/a_mif/a_mifent/bim/budmon/calibration/iotconn/mam/scheduler/linear/nxtgenui/scheduler_plus/tpae/xebasso
Writing extension services file services.ext
Writing extension classes file classnames.ext
Log file: listmetadataclass20220823160732.log
setOutputFile ..\..\tools\maximo\log\customizationreport20220823160732.xls
writeReport ..\..\tools\maximo\en
xmlDir = ..\..\tools\maximo\en
----------Total Services      124
----------Extended Services   4
----------Total Objects       1730
----------Extended Objects    139
----------Total Attributes    33997
----------Extended Attributes 2267


Error: Could not find or load main class psdi.tools.CustomMetaDataClassesReport

When i run ./custommetadataclassesreport.sh, i received the following error

[root@maximolab11 maximo]# ./custommetadataclassesreport.sh
Log file: listmetadataclass20220913152037.log
...
Error: Could not find or load main class psdi.tools.CustomMetaDataClassesReport

This happens because the shell file was saved with MS Windows chars, specially CR/LF.

To solve this problem, run dos2unix

 dos2unix ./custommetadataclassesreport.sh

Now run again.

Ver também