IBM Support

WebSphere Application Server Liberty Profile: An OSGi application fails with java.lang.VerifyError

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.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"8.5.5;8.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21652384