An exception occured in insertVmstatLists on line(文档 ID 2247572.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 10.2.0.5 and later
Information in this document applies to any platform.

SYMPTOMS

OSWbb logfiles are generated in UNIX system, and while trying to analyze it with OSWbba in Windows System, the following errors are observed:

C:\ProgramFiles\ProgramFiles\tool\oswbb732\oswbb>java -jar oswbba.jar -i .\archive1\

Starting OSW Analyzer V7.3.1
OSWatcher Analyzer Written by Oracle Center of Expertise
Copyright (c) 2014 by Oracle Corporation

Parsing Data. Please Wait...

Scanning file headers for version and platform info...

Parsing file u01_iostat_17.03.16.0800.dat ...
An exception occured in insertVmstatLists on line 1
An exception occured in insertVmstatLists on line 14
<...snipped...>
An exception occured in processTopData on line 3683
java.lang.IllegalArgumentException: Cannot format given Object as a Date
at java.text.DateFormat.format(Unknown Source)
at java.text.Format.format(Unknown Source)
at o.a(Unknown Source)
at o.a(Unknown Source)
at o.a(Unknown Source)
at OSWGraph.OSWGraph.main(Unknown Source)
Invalid data found on line 3683
An exception occured in processTopData on line 3684
java.lang.IllegalArgumentException: Cannot format given Object as a Date
at java.text.DateFormat.format(Unknown Source)
at java.text.Format.format(Unknown Source)
at o.a(Unknown Source)
at o.a(Unknown Source)
at o.a(Unknown Source)
at OSWGraph.OSWGraph.main(Unknown Source)
Invalid data found on line 3684
<...snipped...>
Parsing file u01_ps_17.03.16.0800.dat ...
An exception occured in insertVmstatLists on line 2
An exception occured in processTopData on line 6120
Exception in thread "main" java.lang.NullPointerException
at o.b(Unknown Source)
at B.a(Unknown Source)
at o.a(Unknown Source)
at OSWGraph.OSWGraph.main(Unknown Source)

C:\ProgramFiles\ProgramFiles\tool\oswbb732\oswbb>


 

CAUSE

Windows OS date format is set to non-English (Chinese in this use case, however the problem can happen when date format is set to other non-English one, eg: Japanese, French etc)
 
 

SOLUTION

You can modify the java command to below to resolve this issue:

java -Duser.language=en -Duser.country=us -jar oswbba.jar -i

~OR~

Change date format to English as follows:

In "Control Panel", click "Regional and language", like below:

pic1

Then click "Regional Option", change "standards and formats" to English, as seen below:

pic2

猜你喜欢

转载自blog.csdn.net/qq_21127313/article/details/81171702
id