Troubleshooting
Problem
Attempts to use Java classes in an OSGi application might fail intermittently.
Symptom
The following error is reported in the messages.log file or an FFDC file:
java.lang.VerifyError: JVMVRFY012 stack shape inconsistent
Environment
OSGi applications deployed to the Liberty profile with IBM Java Version 7 SR5 are affected and require the workaround described under 'Resolving the problem'.
The problem has been fixed in IBM Java Version 7 SR6.
Resolving The Problem
To work around the problem, use the server management script to specify the following JVM option:
-Xjit:exclude={org/objectweb/asm/Frame.a(Lorg/objectweb/asm/ClassWriter;I[II)Z}
For details on how to add JVM options by using the server management script, see Customizing the Liberty profile environment.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21652384