Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9115

General error during class generation

    XMLWordPrintableJSON

Details

    Description

      Upgrading to Groovy 2.5.7 from 2.5.6 I'm getting the following compiler crash

      General error during class generation: ASM reporting processing error for nextflow.k8s.client.K8sClient#podCreate with signature nextflow.k8s.client.K8sResponseJson podCreate(java.util.Map, java.nio.file.Path) in K8sClient.groovy:149. /Users/pditommaso/Projects/nextflow/modules/nextflow/src/main/groovy/nextflow/k8s/client/K8sClient.groovy
      
      groovy.lang.GroovyRuntimeException: ASM reporting processing error for nextflow.k8s.client.K8sClient#podCreate with signature nextflow.k8s.client.K8sResponseJson podCreate(java.util.Map, java.nio.file.Path) in K8sClient.groovy:149. /Users/pditommaso/Projects/nextflow/modules/nextflow/src/main/groovy/nextflow/k8s/client/K8sClient.groovy
              at org.codehaus.groovy.classgen.AsmClassGenerator.visitConstructorOrMethod(AsmClassGenerator.java:455)
              at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:132)
              at org.codehaus.groovy.classgen.AsmClassGenerator.visitMethod(AsmClassGenerator.java:576)
              at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1103)
              at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:54)
              at org.codehaus.groovy.classgen.AsmClassGenerator.visitClass(AsmClassGenerator.java:269)
              at org.codehaus.groovy.control.CompilationUnit$18.call(CompilationUnit.java:854)
              at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1084)
              at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:645)
              at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:623)
              at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:600)
              at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
              at org.gradle.api.internal.tasks.compile.ApiGroovyCompiler.execute(ApiGroovyCompiler.java:179)
              at org.gradle.api.internal.tasks.compile.ApiGroovyCompiler.execute(ApiGroovyCompiler.java:57)
              at org.gradle.api.internal.tasks.compile.GroovyCompilerFactory$DaemonSideCompiler.execute(GroovyCompilerFactory.java:77)
              at org.gradle.api.internal.tasks.compile.GroovyCompilerFactory$DaemonSideCompiler.execute(GroovyCompilerFactory.java:65)
              at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerCallable.call(AbstractDaemonCompiler.java:88)
              at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerCallable.call(AbstractDaemonCompiler.java:76)
              at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:42)
              at org.gradle.workers.internal.WorkerDaemonServer.execute(WorkerDaemonServer.java:46)
              at org.gradle.workers.internal.WorkerDaemonServer.execute(WorkerDaemonServer.java:30)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:101)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
              at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
              at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:155)
              at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:137)
              at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
              at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
              at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
              at groovyjarjarasm.asm.Frame.merge(Frame.java:1268)
              at groovyjarjarasm.asm.Frame.merge(Frame.java:1233)
              at groovyjarjarasm.asm.MethodWriter.computeAllFrames(MethodWriter.java:1607)
              at groovyjarjarasm.asm.MethodWriter.visitMaxs(MethodWriter.java:1543)
              at org.codehaus.groovy.classgen.AsmClassGenerator.visitConstructorOrMethod(AsmClassGenerator.java:436)
      
      

      Unfortunately, I was unable to isolate the issue. The code raising the error is at this link.

      Attachments

        1. bytecode.diff.PNG
          76 kB
          Daniel Sun

        Issue Links

          Activity

            People

              daniel_sun Daniel Sun
              pablo72 paolo di tommaso
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m