Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45430

FATAL: Bad <init> method call from inside of a branch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • job-dsl-plugin
    • None
    • Windows 7 64-bit
      Jenkins 2.60.3
      Job DSL v1.64

      After updating JobDSL from v1.63 to 1.64, the seed job crashes with the following message (after downgrading to v1.63, the seed job runs as expected without error) :
      FATAL: Bad <init> method call from inside of a branch
      Exception Details:
      Location:
      javaposse/jobdsl/dsl/ScriptRequest.<init>(Ljava/lang/String;Ljava/net/URL;Z)V @137: invokespecial
      Reason:
      Error exists in the bytecode
      Bytecode:
      0x0000000: b800 1b3a 0407 bd00 0459 032b 123a b800
      0x0000010: 7553 5904 2c12 4cb8 0075 5359 051d b800
      0x0000020: 7bb2 0092 b800 7553 5906 0112 3ab8 0075
      0x0000030: 5359 10ff 1202 b800 322a 5fab 0000 013a
      0x0000040: 0000 0007 aad3 b1ff 0000 0041 c3aa 61ff
      0x0000050: 0000 0054 d502 1156 0000 007a dbb0 aa09
      0x0000060: 0000 00a0 401e 3f75 0000 00d0 4301 d1a0
      0x0000070: 0000 00eb 69f7 c93e 0000 011b 5f5a 5903
      0x0000080: 32b8 0038 c000 3a5f 57b7 003c a700 f35f
      0x0000090: 5a59 0332 b800 38c0 003a 5f59 0432 123d
      0x00000a0: b800 41c0 003d 5f59 0532 b800 475f 57b7
      0x00000b0: 004a a700 cd5f 5a59 0332 b800 38c0 003a
      0x00000c0: 5f59 0432 124c b800 41c0 004c 5f59 0532
      0x00000d0: b800 475f 57b7 004f a700 a75f 5a59 0332
      0x00000e0: b800 38c0 003a 5f59 0432 123d b800 41c0
      0x00000f0: 003d 5f59 0532 b800 475f 5906 32b8 0038
      0x0000100: c000 3a5f 57b7 0052 a700 775f 5a59 0332
      0x0000110: b800 38c0 003a 5f04 123d b800 56c0 003d
      0x0000120: b700 59a7 005c 5f5a 5903 32b8 0038 c000
      0x0000130: 3a5f 5904 3212 4cb8 0041 c000 4c5f 5905
      0x0000140: 32b8 0047 5f59 0632 b800 38c0 003a 5f57
      0x0000150: b700 5ca7 002c 5f5a 5903 32b8 0038 c000
      0x0000160: 3a5f 5904 3212 4cb8 0041 c000 4c5f 57b7
      0x0000170: 005f a700 0dbb 0061 5912 63b7 0064 bf57
      0x0000180: b1
      Stackmap Table:
      full_frame(@124,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@143,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@181,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@219,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@267,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@294,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@342,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@373,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@383,{Object2,Object58,Object76,Integer,Object104},{Object106})

      java.lang.VerifyError: Bad <init> method call from inside of a branch
      Exception Details:
      Location:
      javaposse/jobdsl/dsl/ScriptRequest.<init>(Ljava/lang/String;Ljava/net/URL;Z)V @137: invokespecial
      Reason:
      Error exists in the bytecode
      Bytecode:
      0x0000000: b800 1b3a 0407 bd00 0459 032b 123a b800
      0x0000010: 7553 5904 2c12 4cb8 0075 5359 051d b800
      0x0000020: 7bb2 0092 b800 7553 5906 0112 3ab8 0075
      0x0000030: 5359 10ff 1202 b800 322a 5fab 0000 013a
      0x0000040: 0000 0007 aad3 b1ff 0000 0041 c3aa 61ff
      0x0000050: 0000 0054 d502 1156 0000 007a dbb0 aa09
      0x0000060: 0000 00a0 401e 3f75 0000 00d0 4301 d1a0
      0x0000070: 0000 00eb 69f7 c93e 0000 011b 5f5a 5903
      0x0000080: 32b8 0038 c000 3a5f 57b7 003c a700 f35f
      0x0000090: 5a59 0332 b800 38c0 003a 5f59 0432 123d
      0x00000a0: b800 41c0 003d 5f59 0532 b800 475f 57b7
      0x00000b0: 004a a700 cd5f 5a59 0332 b800 38c0 003a
      0x00000c0: 5f59 0432 124c b800 41c0 004c 5f59 0532
      0x00000d0: b800 475f 57b7 004f a700 a75f 5a59 0332
      0x00000e0: b800 38c0 003a 5f59 0432 123d b800 41c0
      0x00000f0: 003d 5f59 0532 b800 475f 5906 32b8 0038
      0x0000100: c000 3a5f 57b7 0052 a700 775f 5a59 0332
      0x0000110: b800 38c0 003a 5f04 123d b800 56c0 003d
      0x0000120: b700 59a7 005c 5f5a 5903 32b8 0038 c000
      0x0000130: 3a5f 5904 3212 4cb8 0041 c000 4c5f 5905
      0x0000140: 32b8 0047 5f59 0632 b800 38c0 003a 5f57
      0x0000150: b700 5ca7 002c 5f5a 5903 32b8 0038 c000
      0x0000160: 3a5f 5904 3212 4cb8 0041 c000 4c5f 57b7
      0x0000170: 005f a700 0dbb 0061 5912 63b7 0064 bf57
      0x0000180: b1
      Stackmap Table:
      full_frame(@124,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@143,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@181,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@219,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@267,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@294,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@342,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@373,{UninitializedThis,Object58,Object76,Integer,Object104},{Object106,UninitializedThis})
      full_frame(@383,{Object2,Object58,Object76,Integer,Object104},{Object106})

      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
      at java.lang.Class.getDeclaredConstructors(Unknown Source)
      at org.codehaus.groovy.reflection.CachedClass$2$1.run(CachedClass.java:71)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:69)
      at org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:66)
      at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:49)
      at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:36)
      at org.codehaus.groovy.reflection.CachedClass.getConstructors(CachedClass.java:282)
      at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:220)
      at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:230)
      at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createNormalMetaClass(MetaClassRegistry.java:171)
      at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createWithCustomLookup(MetaClassRegistry.java:161)
      at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.create(MetaClassRegistry.java:144)
      at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:270)
      at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:313)
      at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:258)
      at org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:883)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallConstructorSite(CallSiteArray.java:87)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:271)
      at javaposse.jobdsl.plugin.ScriptRequestGenerator$_getScriptRequests_closure2.doCall(ScriptRequestGenerator.groovy:49)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
      at groovy.lang.Closure.call(Closure.java:414)
      at groovy.lang.Closure.call(Closure.java:430)
      at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
      at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1890)
      at org.codehaus.groovy.runtime.dgm$159.invoke(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      at javaposse.jobdsl.plugin.ScriptRequestGenerator.getScriptRequests(ScriptRequestGenerator.groovy:41)
      at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:289)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735)
      at hudson.model.Build$BuildExecution.build(Build.java:206)
      at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)
      at hudson.model.Run.execute(Run.java:1735)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:405)

            daspilker Daniel Spilker
            nify Nico Falk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: