How to fix "Expected Stack Frame at This Place" in Jenkins Plugin

I support the jenkins plugin, which has been in public use for two years. Recently, it has stopped working, showing the JVM "Expected Stack Stack" error at this location.

There are several topics that discuss this issue, but none of the answers really provide a useful solution. One suggested solution is to configure the JVM with the -XX option: -UseSplitVerifier. However, this is impractical, using each jenkins server installation to update the JVM configuration.

What I have done so far is to install the Java compilation version in 7 and update all MVN dependencies to their latest version and perform clean rebuilds. So far, no progress has been made. I still get this error:

javax.servlet.ServletException: java.lang.VerifyError: Expecting a stackmap frame at branch target 53
Exception Details:
  Location:
    com/loadimpact/ApiTokenClient.isValidToken()Z @0: aload_0
  Reason:
    Expected stackmap frame at this location.
  Bytecode:
    0x0000000: 2ab4 00db 12ac b901 5902 0004 bd01 5f59
    0x0000010: 03b2 0163 53b9 0167 0200 b901 cf01 004c
    0x0000020: 2bb6 017f b901 d301 00b2 01d7 a600 0704
    0x0000030: a700 0403 ac4c 2ab4 00d7 bb01 d959 b701
    0x0000040: da13 01dc b601 e02b b601 e3b6 01e5 b601
    0x0000050: e803 ac                                
  Exception Handler Table:
    bci [0, 52] => handler: 53

    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
    at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)

- Ubuntu 15.04, OpenJDK Runtime Environment (build 1.8.0_45-internal-b14), Jenkins ( 1.611).

() jenkins

<parent>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>1.610</version>
</parent>

, : , , (.. Jenkins)?

+4

Source: https://habr.com/ru/post/1584874/


All Articles