-
Bug
-
Resolution: Fixed
-
P3
-
jt6.0
-
b03
-
b05
Intermittent error from jdk jtreg test from ProductInfo::getDetailedVersion since jtharness 6.0/b03 (which is in jtreg 4.2/b14, and used for jdk test since jdk-13+10).
Most likely,CODETOOLS-7902267 introduced issue, it uses java.time. SimpleDateFormat unthread-safe.
The error happens before test really run, example .jtr:
#section:Details
----------messages:(0/0)----------
----------Stack trace:(14/1002)----------
java.lang.ArrayIndexOutOfBoundsException: 951
at java.base/sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate(BaseCalendar.java:453)
at java.base/java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2394)
at java.base/java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2309)
at java.base/java.util.Calendar.setTimeInMillis(Calendar.java:1834)
at java.base/java.util.Calendar.setTime(Calendar.java:1800)
at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:973)
at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:966)
at java.base/java.text.DateFormat.format(DateFormat.java:374)
at com.sun.javatest.ProductInfo.getDetailedVersion(ProductInfo.java:85)
at com.sun.javatest.Script.run(Script.java:196)
at com.sun.javatest.DefaultTestRunner.runTest(DefaultTestRunner.java:175)
at com.sun.javatest.DefaultTestRunner.access$100(DefaultTestRunner.java:43)
at com.sun.javatest.DefaultTestRunner$1.run(DefaultTestRunner.java:68)
result: Not run. Test running...
test result: Error. Unexpected exception caught from test com/sun/jdi/ArrayRangeTest.java: java.lang.ArrayIndexOutOfBoundsException: 951
Most likely,
The error happens before test really run, example .jtr:
#section:Details
----------messages:(0/0)----------
----------Stack trace:(14/1002)----------
java.lang.ArrayIndexOutOfBoundsException: 951
at java.base/sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate(BaseCalendar.java:453)
at java.base/java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2394)
at java.base/java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2309)
at java.base/java.util.Calendar.setTimeInMillis(Calendar.java:1834)
at java.base/java.util.Calendar.setTime(Calendar.java:1800)
at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:973)
at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:966)
at java.base/java.text.DateFormat.format(DateFormat.java:374)
at com.sun.javatest.ProductInfo.getDetailedVersion(ProductInfo.java:85)
at com.sun.javatest.Script.run(Script.java:196)
at com.sun.javatest.DefaultTestRunner.runTest(DefaultTestRunner.java:175)
at com.sun.javatest.DefaultTestRunner.access$100(DefaultTestRunner.java:43)
at com.sun.javatest.DefaultTestRunner$1.run(DefaultTestRunner.java:68)
result: Not run. Test running...
test result: Error. Unexpected exception caught from test com/sun/jdi/ArrayRangeTest.java: java.lang.ArrayIndexOutOfBoundsException: 951
- duplicates
-
JDK-8220043 Unexpected exception caught from jdi test: java.lang.ArrayIndexOutOfBoundsException from SimpleDateFormat
- Closed
- relates to
-
CODETOOLS-7902267 Script should provide more info about used JT version in test result
- Resolved