APAR status
Closed as program error.
Error description
Error Message: The following error occurs when using the IBM SDK to run classes compiled by OpenJDK 7 (or later with -target 7): Exception in thread "main" java.lang.NoClassDefFoundError: java.lang.AbstractStringBuilder . Stack Trace: Exception in thread "main" java.lang.NoClassDefFoundError: java.lang.AbstractStringBuilder at java.lang.J9VMInternals.prepareClassImpl(Native Method) at java.lang.J9VMInternals.prepare(J9VMInternals.java:283) at java.lang.Class.getMethod(Class.java:1204) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:50 7) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java :499) Caused by: java.lang.ClassNotFoundException: java.lang.AbstractStringBuilder at java.net.URLClassLoader.findClass(URLClassLoader.java:600) at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:786) at java.lang.ClassLoader.loadClass(ClassLoader.java:760) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:326) at java.lang.ClassLoader.loadClass(ClassLoader.java:741) ... 5 more .
Local fix
There are three possible workarounds for this issue: - Compile with IBM SDK - Compile with -bootclasspath <JCL from IBM SDK> - Compile for Java 8+
Problem summary
The issue was caused by javac including the package-private class java.lang.AbstractStringBuilder in the stack map attribute used by the bytecode verifier. This happens when there can be either a java.lang.StringBuilder or a java.lang.StringBuffer on the stack, and javac resolves the ambiguity to the closest common supertype.
Problem conclusion
The package-private class java.lang.AbstractStringBuilder has been added. . This APAR will be fixed in the following Java Releases: 8 SR5 (8.0.5.0) . 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
IV99769
Reported component name
J9 COMMON CODE
Reported component ID
620700127
Reported release
270
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2017-09-11
Closed date
2017-09-11
Last modified date
2017-09-11
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
J9 COMMON CODE
Fixed component ID
620700127
Applicable component levels
R270 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":"7.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]
Document Information
Modified date:
22 February 2022