APAR status
Closed as program error.
Error description
Error Message: An error message similar to the following is received: Caused by: java.lang.ClassCastException: $Proxy6 incompatible with <SOME_INTERFACE> . Stack Trace: N/A .
Local fix
This issue can be worked around by disabling the share classes cache with the following option: -Xshareclasses:none
Problem summary
When a proxy object is generated through the following method in java.lang.reflect.Proxy, newProxyInstance(ClassLoader loader, Class<?><OSB><CSB> interfaces, InvocationHandler h) the proxy class (for example $Proxy6) will be generated and improperly cached into the share classes cache. After the JVM is restarted, the proxy class ($Proxy6) will be loaded from the share classes cache to JVM runtime. It would cause a java.lang.ClassCastException if the same proxy class ($Proxy6) is cast to some other interface.
Problem conclusion
The JVM has been updated to prevent the improper caching information into the share classes cache. This defect will be fixed in: 5.0.0 SR12 FP4 5.0.0 SR13 6.0.0 SR10
Temporary fix
Comments
APAR Information
APAR number
IZ94639
Reported component name
JAVA 5 J9 COMMO
Reported component ID
620500127
Reported release
500
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2011-02-11
Closed date
2011-10-28
Last modified date
2011-10-28
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
JAVA 5 J9 COMMO
Fixed component ID
620500127
Applicable component levels
R500 PSY
UP
Rate this page:
Average rating
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.