java.lang.VerifyError when instrumenting Confluence Wiki

Document ID : KB000045196
Last Modified Date : 14/02/2018
Show Technical Document Details

Problem:
You find the below exception in the confluence log when starting Confluence Wiki apps with the java agent
...
com.atlassian.spring.container.ComponentNotFoundException: Failed to find component: Error creating bean with name 'xhtmlSoapService' defined in class path resource [x]: Cannot resolve reference to bean 'xhtmlSoapServiceTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xhtmlSoapServiceTarget': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminSoapService': Instantiation of bean failed; nested exception is java.lang.VerifyError: Call to wrong method
Exception Details:
Location:
com/atlassian/confluence/rpc/soap/services/AdminSoapService.createTempFile(Ljava/lang/String;Ljava/lang/String;[B)Ljava/io/File; @16: invokespecial
Reason:
Type 'java/io/FileOutputStream' (constant pool 295) is not assignable to 'com/wily/introscope/agent/probe/io/ManagedFileOutputStream' (constant pool 645)
Bytecode:

0000000: 2b2c b800 893a 0401 3a05 bb01 2759 1904
0000010: b702 853a 0519 052d b600 8c19 05b6 008d
0000020: 1905 b600 8e19 05c6 0008 1905 b600 8ea7
0000030: 002d 3a06 a700 283a 06b2 0010 128f 1906
0000040: b900 9003 0019 06bf 3a07 1905 c600 0819
0000050: 05b6 008e a700 053a 0819 07bf 1904 b0
..

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

#TurnOn: FileSystemTracing

4. Start the appserver