APAR status
Closed as program error.
Error description
Error Message: N/A . Stack Trace: failed to create a new instance of class <className> java.lang.InstantiationException at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newIns tance(InstantiationExceptionConstructorAccessorImpl.java:60) at java.lang.reflect.Constructor.newInstance(Constructor.java:437) at com.ibm.jtc.jax.xml.bind.v2.ClassFactory.create0(ClassFactory.ja va:143) at com.ibm.jtc.jax.xml.bind.v2.ClassFactory.create(ClassFactory.jav a:152) at com.ibm.jtc.jax.xml.bind.v2.runtime.unmarshaller.UnmarshallingCo ntext.createInstance(UnmarshallingContext.java:688) .
Local fix
This issue can be worked around using @XmlTransient annotation on the abstract class.
Problem summary
During context creation, JAXB considers the java.util.List element types to be a Leaf class which makes the marshaller to ignore the actual xsi:type and the unmarshaller to instantiate the abstract class.
Problem conclusion
The JDK has been updated to check for sub classes of the given class before setting it to a Leaf element. . This APAR will be fixed in the following Java Releases: 8 SR5 FP11 (8.0.5.11) . Contact your IBM Product's Service Team for these Service Refreshes and Fix Packs. For those running stand-alone, information about the available Service Refreshes and Fix Packs can be found at: https://www.ibm.com/developerworks/java/jdk/
Temporary fix
Comments
APAR Information
APAR number
IJ02609
Reported component name
JAVA CLASS LIBS
Reported component ID
620700130
Reported release
800
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2017-12-13
Closed date
2018-05-10
Last modified date
2018-05-10
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 CLASS LIBS
Fixed component ID
620700130
Applicable component levels
R800 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]
Document Information
Modified date:
21 February 2022