- Saved searches
- Use saved searches to filter your results more quickly
- JacocoDebug task intermittently fails with «java.lang.ExceptionInInitializerError (no error message)» on build #15830
- JacocoDebug task intermittently fails with «java.lang.ExceptionInInitializerError (no error message)» on build #15830
- Comments
- Expected Behavior
- Current Behavior
- Context
- Steps to Reproduce
- Your Environment
- Saved searches
- Use saved searches to filter your results more quickly
- java.lang.ExceptionInInitializerError (no error message) #7831
- java.lang.ExceptionInInitializerError (no error message) #7831
- Comments
- Не получается выполнить команды Gradle
- hohserg
- VeniVidiVici
- Camerman
- WantaSanchez
- Camerman
- Camerman
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JacocoDebug task intermittently fails with «java.lang.ExceptionInInitializerError (no error message)» on build #15830
JacocoDebug task intermittently fails with «java.lang.ExceptionInInitializerError (no error message)» on build #15830
Comments
Expected Behavior
Build should be successful every time
Current Behavior
Our build intermittently fails on pipelines with this error (3-4 times in 20 builds). We don’t get any further message on why this error occurred. We get the following error —
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':module-name:jacocoDebug'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > java.lang.ExceptionInInitializerError (no error message)
Context
This is an intermittent issue, and since we don’t get enough information on why this happens, I am unable to find out the exact cause. Our pipelines and local build randomly fail because of this issue.
I am using Jacoco dependency version as 0.8.6 in our android project and also tried «android.forceJacocoOutOfProcess=true» flag but still getting this issue.
Steps to Reproduce
So far I’ve unable to reproduce it with exact steps. It’s an intermittent error and occurs randomly on local and pipeline builds.
Your Environment
java -version java version "1.8.0_271" Java(TM) SE Runtime Environment (build 1.8.0_271-b09) Java HotSpot(TM) Client VM (build 25.271-b09, mixed mode, sharing)
------------------------------------------------------------ Gradle 6.1.1 ------------------------------------------------------------ Build time: 2020-01-24 22:30:24 UTC Revision: a8c3750babb99d1894378073499d6716a1a1fa5d Kotlin: 1.3.61 Groovy: 2.5.8 Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019 JVM: 1.8.0_242-release (JetBrains s.r.o 25.242-b01) OS: Windows 10 10.0 amd64
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.ExceptionInInitializerError (no error message) #7831
java.lang.ExceptionInInitializerError (no error message) #7831
Comments
Currently unable to use gradle to build any of my projects:
# gradle -v ------------------------------------------------------------ Gradle 4.4.1 ------------------------------------------------------------ Build time: 2012-12-21 00:00:00 UTC Revision: none Groovy: 2.4.15 Ant: Apache Ant(TM) version 1.10.5 compiled on August 27 2018 JVM: 1.8.0_91 (Oracle Corporation 25.91-b14) OS: Linux 4.18.0-kali2-amd64 amd64
# gradle --no-daemon --scan --info --stacktrace clean -Dorg.gradle.java.home=/opt/jdk1.8.0_91 Initialized native services in: /root/.gradle/native FAILURE: Build failed with an exception. * What went wrong: java.lang.ExceptionInInitializerError (no error message) * Try: Run with --debug option to get more log output. Run with --scan to get full insights. * Exception is: java.lang.ExceptionInInitializerError at org.gradle.internal.classloader.FilteringClassLoader.(FilteringClassLoader.java:48) at org.gradle.initialization.DefaultClassLoaderRegistry.restrictTo(DefaultClassLoaderRegistry.java:40) at org.gradle.initialization.DefaultClassLoaderRegistry.restrictToGradleApi(DefaultClassLoaderRegistry.java:36) at org.gradle.initialization.DefaultClassLoaderRegistry.(DefaultClassLoaderRegistry.java:30) at org.gradle.internal.service.scopes.GlobalScopeServices.createClassLoaderRegistry(GlobalScopeServices.java:207) 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.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.internal.service.ReflectionBasedServiceMethod.invoke(ReflectionBasedServiceMethod.java:35) at org.gradle.internal.service.DefaultServiceRegistry$FactoryMethodService.invokeMethod(DefaultServiceRegistry.java:795) at org.gradle.internal.service.DefaultServiceRegistry$FactoryService.create(DefaultServiceRegistry.java:748) at org.gradle.internal.service.DefaultServiceRegistry$ManagedObjectProvider.getInstance(DefaultServiceRegistry.java:574) at org.gradle.internal.service.DefaultServiceRegistry$SingletonService.get(DefaultServiceRegistry.java:623) at org.gradle.internal.service.DefaultServiceRegistry.applyConfigureMethod(DefaultServiceRegistry.java:199) at org.gradle.internal.service.DefaultServiceRegistry.findProviderMethods(DefaultServiceRegistry.java:180) at org.gradle.internal.service.DefaultServiceRegistry.addProvider(DefaultServiceRegistry.java:255) at org.gradle.internal.service.ServiceRegistryBuilder.build(ServiceRegistryBuilder.java:52) at org.gradle.launcher.cli.BuildActionsFactory.runBuildInProcess(BuildActionsFactory.java:129) at org.gradle.launcher.cli.BuildActionsFactory.createAction(BuildActionsFactory.java:90) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.createAction(CommandLineActionFactory.java:296) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:286) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:264) at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:33) at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:257) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:191) at org.gradle.launcher.Main.doAction(Main.java:33) at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) 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.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60) at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37) at org.gradle.launcher.GradleMain.main(GradleMain.java:23) Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodError: java.lang.invoke.MethodHandles.privateLookupIn(Ljava/lang/Class;Ljava/lang/invoke/MethodHandles$Lookup;)Ljava/lang/invoke/MethodHandles$Lookup; at org.gradle.internal.classloader.ClassLoaderUtils.(ClassLoaderUtils.java:46) . 39 more Caused by: java.lang.NoSuchMethodError: java.lang.invoke.MethodHandles.privateLookupIn(Ljava/lang/Class;Ljava/lang/invoke/MethodHandles$Lookup;)Ljava/lang/invoke/MethodHandles$Lookup; at org.gradle.internal.classloader.ClassLoaderUtils.(ClassLoaderUtils.java:43) . 39 more * Get more help at https://help.gradle.org
The text was updated successfully, but these errors were encountered:
Не получается выполнить команды Gradle
При выполнении команды setupDecompWorkspace или setupDevWorkspace я на выходе получаю одно и то же сообщение:
Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.9/userguide/gradle_daemon.html Please read the following process output to find out more: ----------------------- FAILURE: Build failed with an exception. * What went wrong: java.lang.ExceptionInInitializerError (no error message) * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org
Версии gradle и jdk менял, java стоит восьмая, память уже и больше и меньше выделял, сносил ide и java и ставил заново. SDK во всех полях указаны. В чём может быть проблема? Уже все форумы облазил.
hohserg
VeniVidiVici
Санта Барбарис
Умение самостоятельно искать ответы на вопросы в интернете упрощает жизнь в разы, однако вот: [1.12.2] Cannot start daemon process
Camerman
WantaSanchez
Опоздун
Camerman
Camerman
buildscript < repositories < maven < url = 'https://files.minecraftforge.net/maven' >jcenter() mavenCentral() > dependencies < classpath 'net.minecraftforge.gradle:ForgeGradle:3.+' >> apply plugin: 'net.minecraftforge.gradle' // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. apply plugin: 'eclipse' apply plugin: 'maven-publish' version = '1.0' group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'modid' sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. minecraft < // The mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD Snapshot are built nightly. // stable_# Stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not always work. // Simply re-run your setup task after changing the mappings to update your workspace. //mappings channel: 'snapshot', version: '20171003-1.12' mappings channel: 'snapshot', version: '20171003-1.12' // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Default run configurations. // These can be tweaked, removed, or duplicated as needed. runs < client < workingDirectory project.file('run') // Recommended logging data for a userdev environment property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' >server < // Recommended logging data for a userdev environment property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' >> > dependencies < // Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed // that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied. // The userdev artifact is a special name and will get all sorts of transformations applied to it. minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2854' // You may put jars on which you depend on in ./libs or you may define them like so.. // compile "some.group:artifact:version:classifier" // compile "some.group:artifact:version" // Real examples // compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env // compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env // The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. // provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // These dependencies get remapped to your current MCP mappings // deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev' // For more info. // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html >// Example for how to get properties into the manifest for reading by the runtime.. jar < manifest < attributes([ "Specification-Title": "examplemod", "Specification-Vendor": "examplemodsareus", "Specification-Version": "1", // We are version 1 of ourselves "Implementation-Title": project.name, "Implementation-Version": "$", "Implementation-Vendor" :"examplemodsareus", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")* ]) > > // Example configuration to allow publishing using the maven-publish task // This is the preferred method to reobfuscate your jar file jar.finalizedBy('reobfJar') // However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing //publish.dependsOn('reobfJar') publishing < publications < mavenJava(MavenPublication) < artifact jar >> repositories < maven < url "file:///$/mcmodsrepo" > > >
# Sets default memory used for gradle commands. Can be overridden by user or command line properties. # This is required to provide enough memory for the Minecraft decompilation process. org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false