• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • jacoco-plugin
    • Jenkins 2.1.49
      Jacococ 3.0.3
      Java 11

      Task :test FAILED
      Exception in thread "main" java.lang.reflect.InvocationTargetException
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:566)
       at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
       at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
      Caused by: java.lang.RuntimeException: Class java/lang/UnknownError could not be instrumented.
       at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:140)
       at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:101)
       at org.jacoco.agent.rt.internal_c13123e.PreMain.createRuntime(PreMain.java:55)
       at org.jacoco.agent.rt.internal_c13123e.PreMain.premain(PreMain.java:47)
       ... 6 more
      Caused by: java.lang.NoSuchFieldException: $jacocoAccess
       at java.base/java.lang.Class.getField(Class.java:2000)
       at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:138)
       ... 9 more
      FATAL ERROR in native method: processing of -javaagent failed
      Exception in thread "main" java.lang.reflect.InvocationTargetException
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:566)
       at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
       at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
      Caused by: java.lang.RuntimeException: Class java/lang/UnknownError could not be instrumented.
       at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:140)
       at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:101)
       at org.jacoco.agent.rt.internal_c13123e.PreMain.createRuntime(PreMain.java:55)
       at org.jacoco.agent.rt.internal_c13123e.PreMain.premain(PreMain.java:47)
       ... 6 more
      Caused by: java.lang.NoSuchFieldException: $jacocoAccess
       at java.base/java.lang.Class.getField(Class.java:2000)
       at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:138)
       ... 9 more
      FATAL ERROR in native method: processing of -javaagent failed
      Process 'Gradle Test Executor 2' finished with non-zero exit value 134
      org.gradle.process.internal.ExecException: Process 'Gradle Test Executor 2' finished with non-zero exit value 134
       at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:395)
       at org.gradle.process.internal.worker.DefaultWorkerProcess.onProcessStop(DefaultWorkerProcess.java:138)
       at org.gradle.process.internal.worker.DefaultWorkerProcess.access$000(DefaultWorkerProcess.java:41)
       at org.gradle.process.internal.worker.DefaultWorkerProcess$1.executionFinished(DefaultWorkerProcess.java:91)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:566)
       at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
       at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
       at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:42)
       at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:230)
       at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:149)
       at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:140)
       at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37)
       at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
       at com.sun.proxy.$Proxy59.executionFinished(Unknown Source)
       at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:212)
       at org.gradle.process.internal.DefaultExecHandle.finished(DefaultExecHandle.java:340)
       at org.gradle.process.internal.ExecHandleRunner.completed(ExecHandleRunner.java:102)
       at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:82)
       at org.gradle.internal.operations.CurrentBuildOperationPreservingRunnable.run(CurrentBuildOperationPreservingRunnable.java:42)
       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:1128)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
       at java.lang.Thread.run(Thread.java:834)
      

          [JENKINS-54431] Error with Java 11 and jacoco-plugin 3.0.3

          Dirk D. created issue -

          Oleg Nenashev added a comment -

          It looks like an issue with JaCoCo libraries: https://github.com/jacoco/jacoco/pull/629 

          IIUC an update is required

           

          Oleg Nenashev added a comment - It looks like an issue with JaCoCo libraries: https://github.com/jacoco/jacoco/pull/629   IIUC an update is required  
          Oleg Nenashev made changes -
          Epic Link New: JENKINS-40689 [ 177392 ]

          centic added a comment -

          This is not related to jacoco-plugin/Jenkins itself, it seems to be rather caused by core JaCoCo running as part of your Gradle build.

          So you should update JaCoCo there to the latest version which should to fix this.

          centic added a comment - This is not related to jacoco-plugin/Jenkins itself, it seems to be rather caused by core JaCoCo running as part of your Gradle build. So you should update JaCoCo there to the latest version which should to fix this.
          centic made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Baptiste Mathus made changes -
          Labels Original: gradle jacoco java11 New: gradle jacoco java11 java11-compatibility
          Oliver Gondža made changes -
          Description Original: Task :test FAILED
          Exception in thread "main" java.lang.reflect.InvocationTargetException
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
          Caused by: java.lang.RuntimeException: Class java/lang/UnknownError could not be instrumented.
           at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:140)
           at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:101)
           at org.jacoco.agent.rt.internal_c13123e.PreMain.createRuntime(PreMain.java:55)
           at org.jacoco.agent.rt.internal_c13123e.PreMain.premain(PreMain.java:47)
           ... 6 more
          Caused by: java.lang.NoSuchFieldException: $jacocoAccess
           at java.base/java.lang.Class.getField(Class.java:2000)
           at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:138)
           ... 9 more
          FATAL ERROR in native method: processing of -javaagent failed
          Exception in thread "main" java.lang.reflect.InvocationTargetException
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
          Caused by: java.lang.RuntimeException: Class java/lang/UnknownError could not be instrumented.
           at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:140)
           at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:101)
           at org.jacoco.agent.rt.internal_c13123e.PreMain.createRuntime(PreMain.java:55)
           at org.jacoco.agent.rt.internal_c13123e.PreMain.premain(PreMain.java:47)
           ... 6 more
          Caused by: java.lang.NoSuchFieldException: $jacocoAccess
           at java.base/java.lang.Class.getField(Class.java:2000)
           at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:138)
           ... 9 more
          FATAL ERROR in native method: processing of -javaagent failed
          Process 'Gradle Test Executor 2' finished with non-zero exit value 134
          org.gradle.process.internal.ExecException: Process 'Gradle Test Executor 2' finished with non-zero exit value 134
           at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:395)
           at org.gradle.process.internal.worker.DefaultWorkerProcess.onProcessStop(DefaultWorkerProcess.java:138)
           at org.gradle.process.internal.worker.DefaultWorkerProcess.access$000(DefaultWorkerProcess.java:41)
           at org.gradle.process.internal.worker.DefaultWorkerProcess$1.executionFinished(DefaultWorkerProcess.java:91)
           at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:566)
           at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
           at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
           at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:42)
           at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:230)
           at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:149)
           at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:140)
           at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37)
           at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
           at com.sun.proxy.$Proxy59.executionFinished(Unknown Source)
           at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:212)
           at org.gradle.process.internal.DefaultExecHandle.finished(DefaultExecHandle.java:340)
           at org.gradle.process.internal.ExecHandleRunner.completed(ExecHandleRunner.java:102)
           at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:82)
           at org.gradle.internal.operations.CurrentBuildOperationPreservingRunnable.run(CurrentBuildOperationPreservingRunnable.java:42)
           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:1128)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
           at java.lang.Thread.run(Thread.java:834)
          New: {noformat}
          Task :test FAILED
          Exception in thread "main" java.lang.reflect.InvocationTargetException
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
          Caused by: java.lang.RuntimeException: Class java/lang/UnknownError could not be instrumented.
           at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:140)
           at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:101)
           at org.jacoco.agent.rt.internal_c13123e.PreMain.createRuntime(PreMain.java:55)
           at org.jacoco.agent.rt.internal_c13123e.PreMain.premain(PreMain.java:47)
           ... 6 more
          Caused by: java.lang.NoSuchFieldException: $jacocoAccess
           at java.base/java.lang.Class.getField(Class.java:2000)
           at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:138)
           ... 9 more
          FATAL ERROR in native method: processing of -javaagent failed
          Exception in thread "main" java.lang.reflect.InvocationTargetException
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
          Caused by: java.lang.RuntimeException: Class java/lang/UnknownError could not be instrumented.
           at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:140)
           at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:101)
           at org.jacoco.agent.rt.internal_c13123e.PreMain.createRuntime(PreMain.java:55)
           at org.jacoco.agent.rt.internal_c13123e.PreMain.premain(PreMain.java:47)
           ... 6 more
          Caused by: java.lang.NoSuchFieldException: $jacocoAccess
           at java.base/java.lang.Class.getField(Class.java:2000)
           at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:138)
           ... 9 more
          FATAL ERROR in native method: processing of -javaagent failed
          Process 'Gradle Test Executor 2' finished with non-zero exit value 134
          org.gradle.process.internal.ExecException: Process 'Gradle Test Executor 2' finished with non-zero exit value 134
           at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:395)
           at org.gradle.process.internal.worker.DefaultWorkerProcess.onProcessStop(DefaultWorkerProcess.java:138)
           at org.gradle.process.internal.worker.DefaultWorkerProcess.access$000(DefaultWorkerProcess.java:41)
           at org.gradle.process.internal.worker.DefaultWorkerProcess$1.executionFinished(DefaultWorkerProcess.java:91)
           at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:566)
           at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
           at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
           at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:42)
           at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:230)
           at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:149)
           at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:140)
           at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37)
           at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
           at com.sun.proxy.$Proxy59.executionFinished(Unknown Source)
           at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:212)
           at org.gradle.process.internal.DefaultExecHandle.finished(DefaultExecHandle.java:340)
           at org.gradle.process.internal.ExecHandleRunner.completed(ExecHandleRunner.java:102)
           at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:82)
           at org.gradle.internal.operations.CurrentBuildOperationPreservingRunnable.run(CurrentBuildOperationPreservingRunnable.java:42)
           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:1128)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
           at java.lang.Thread.run(Thread.java:834)
          {noformat}
          Oleg Nenashev made changes -
          Labels Original: gradle jacoco java11 java11-compatibility New: gradle jacoco java11

            ognjenb Ognjen Bubalo
            dirandh Dirk D.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: