Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

General error during class generation: Method code too large #8

Open
progvp opened this issue Sep 10, 2018 · 2 comments
Open

General error during class generation: Method code too large #8

progvp opened this issue Sep 10, 2018 · 2 comments

Comments

@progvp
Copy link

progvp commented Sep 10, 2018

On latest version of mail-check and Jenkins 2.121.3, Ubuntu server 18.04 LTS I get this error:

`org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during class generation: Method code too large!

java.lang.RuntimeException: Method code too large! at groovyjarjarasm.asm.MethodWriter.a(Unknown Source) at groovyjarjarasm.asm.ClassWriter.toByteArray(Unknown Source) at org.codehaus.groovy.control.CompilationUnit$17.call(CompilationUnit.java:827) at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1065) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688) at groovy.lang.GroovyShell.parse(GroovyShell.java:700) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:131) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:125) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:560) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:521) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:330) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)

Can you help me with that?

@dcloud9
Copy link

dcloud9 commented Oct 24, 2018

Looks like you hit a Open bug in Jenkins - https://issues.jenkins-ci.org/browse/JENKINS-37984. Either wait for a fix or try improving the Stages by streamlining some of the bash commands that can be wrapped into shell scripts and call within each stage.

@AlistairC-UK
Copy link

Hi, as part of our journey from a monolithic architecture to microservices we are stripping out all of the build and test steps from the monolithic pipeline. The end goal is for it to just assemble the microservice artifacts and terraform modules in the pipeline for each environment, removing all build and test steps, this should improve things over the next couple of releases. I'm surprised you have hit this bug as when we do, we refactor some of the jenkinsfile, so you must be hitting it at a different level from us. I'll raise a ticket to refactor it some more for the next release to give more headroom on the size.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants