JRockit 8.1 SP2 - throws java.lang.ArrayStoreException - CR134874 (Doc ID 775112.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle JRockit / JRockit / 8.1
Information in this document applies to any platform

Goal

DESCRIPTION:
Customer has sent a reproducer, which produces the following exception:

Error 500--Internal Server Error

java.lang.ArrayStoreException: Object and inner type of array differs

CONFIGURATION:
Customer is running JRockit 8.1 SP2 on Windows 2000 Pro. Problem has been confirmed with various JVMs (see NOTES
below), and may occur on other platforms as well?

NOTES:
1) The exception is thrown only when the customer code tries to store inside an Array an object from a class hierarchy
of 9 levels or more.  8 levels of hierarchy work fine.  Unfortunately customer's code has a hierarchy of 11 levels so
currently they cannot run their code in JRockit.

2) They are using multiple class loaders: Some of the classes are loaded from the classpath, and some from inside a
web application.

3) I have confirmed that the problem exists in the following versions of JRockit:
  - 8.1 SP2
  - 8.1 SP2 RP1
  - 8.1 SP3 load 4 (pre-release) and earlier

4) I have confirmed that the problem does not exist in the following JVMs:
  - Sun 1.4.1_03
  - Sun 1.4.2_02
  - JRockit 8.1 SP3 load 5 (pre-release) and later

CONFIGURATION:
JRockit 8.1 SP2
32-bit Windows

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms