java.lang.VerifyError: JVMVRFY041

Document ID : KB000124396
Last Modified Date : 11/01/2019
Show Technical Document Details
Issue:
After updating the Liberty and IBM Java Runtime to:

IBM Liberty Version 18.0.0.4
IBM Java Version  8.0.5.26 (1.8.0_191)

Liberty JVM couldn't started. Introscope Java Agent Version is 10.5.1.8.

The below exceptions are reported in the console.log

CWWKE0005E: The runtime environment could not be launched.
CWWKE0018E: An exception occurred while launching the runtime environment: java.lang.VerifyError: JVMVRFY041 invokespecial of wrong initializer; class=com/ibm/ws/kernel/launch/internal/ServerCommandListener, method=init(ILjava/io/File;)V, pc=620
Exception Details:
  Location:
    com/ibm/ws/kernel/launch/internal/ServerCommandListener.init(ILjava/io/File;)V @620: JBinvokespecial
  Reason:
    Type 'com/wily/introscope/agent/probe/io/ManagedFileOutputStream' (current frame, stack[1]) is not assignable to 'java/io/FileOutputStream'

    
Or

CWWKE0018E: An exception occurred while launching the runtime environment: java.lang.VerifyError: JVMVRFY041 invokespecial of wrong initializer; class=com/ibm/ws/kernel/launch/internal/ServerCommandListener, method=asyncResponse(Ljava/lang/String;Ljava/nio/channels/SocketChannel;)V, pc=103
Exception Details:
  Location:
    com/ibm/ws/kernel/launch/internal/ServerCommandListener.asyncResponse(Ljava/lang/String;Ljava/nio/channels/SocketChannel;)V @103: JBinvokespecial
  Reason:
    Type 'com/wily/introscope/agent/probe/lang/ManagedThread' (current frame, stack[1]) is not assignable to 'java/lang/Thread'
Cause:
Defect  # DE389854
Resolution:
This defect is fixed in 10.7 SP3

Workaround:

1. Stop the appserver
2. Open the core/config/toggles-typical or full pbd
3. Turn off FileSystemTracing and ThreadTracing as below:

#TurnOn: FileSystemTracing
#TurnOn: ThreadTracing

4. Start the appserver

 
Additional Information:
https://comm.support.ca.com/kb/unable-to-start-the-appserver-javalangverifyerror-jvmvrfy012-stack-shape-inconsistent/KB000006668

https://comm.support.ca.com/kb/javalangVerifyError-when-instrumenting-Confluence-Wiki/KB000045196