i was compiling an android app with gradle in my VPS and i got this error:
Running gradle assembleRelease
on builds/2014428_12146137
Note: in order to honour the org.gradle.jvmargs and/or org.gradle.java.home values specified for this build, it is necessary to fork a new JVM.
To avoid the slowdown associated with this extra process, you might want to consider running Gradle with the daemon enabled.
Please see the user guide chapter on the daemon at http://gradle.org/docs/1.4/userguide/gradle_daemon.html.
BUILD FAILED
Total time: 3.798 secs
{ [Error: Command failed: java.lang.OutOfMemoryError: Java heap space
at java.util.ArrayList.<init>(ArrayList.java:144)
at org.codehaus.groovy.reflection.GeneratedMetaMethod$DgmMethodRecord.loadDgmInfo(GeneratedMetaMethod.java:193)
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.registerMethods(MetaClassRegistryImpl.java:155)
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:83)
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:61)
at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:29)
at org.gradle.api.internal.AbstractClassGenerator.generate(AbstractClassGenerator.java:100)
at org.gradle.api.internal.ClassGeneratorBackedInstantiator.newInstance(ClassGeneratorBackedInstantiator.java:36)
at org.gradle.initialization.DefaultGradleLauncherFactory.doNewInstance(DefaultGradleLauncherFactory.java:126)
at org.gradle.initialization.DefaultGradleLauncherFactory.newInstance(DefaultGradleLauncherFactory.java:99)
at org.gradle.initialization.DefaultGradleLauncherFactory.newInstance(DefaultGradleLauncherFactory.java:46)
at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:38)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:45)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:42)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:24)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.StartStopIfBuildAndStop.execute(StartStopIfBuildAndStop.java:33)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.ReturnResult.execute(ReturnResult.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:70)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:68)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:68)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:59)
FAILURE: Build aborted because of an internal error.
* What went wrong:
Build aborted because of an unexpected internal error. Please file an issue at: http://forums.gradle.org.
* Try:
Run with --debug option to get additional debug info.
* Exception is:
groovy.lang.MissingMethodException: No signature of method: org.gradle.util.MutableURLClassLoader.invokeMethod() is applicable for argument types: (java.lang.String, [Ljava.lang.Object;) values: [defineClass, [org.gradle.initialization.SettingsScript_Decorated, ...]]
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23)
at org.gradle.groovy.scripts.internal.AsmBackedEmptyScriptGenerator.generateEmptyScriptClass(AsmBackedEmptyScriptGenerator.java:80)
at org.gradle.groovy.scripts.internal.AsmBackedEmptyScriptGenerator.generate(AsmBackedEmptyScriptGenerator.java:34)
at org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler.loadFromDir(DefaultScriptCompilationHandler.java:167)
at org.gradle.groovy.scripts.internal.FileCacheBackedScriptClassCompiler.compile(FileCacheBackedScriptClassCompiler.java:58)
at org.gradle.groovy.scripts.internal.ShortCircuitEmptyScriptCompiler.compile(ShortCircuitEmptyScriptCompiler.java:35)
at org.gradle.groovy.scripts.internal.CachingScriptClassCompiler.compile(CachingScriptClassCompiler.java:36)
at org.gradle.groovy.scripts.DefaultScriptCompilerFactory$ScriptCompilerImpl.compile(DefaultScriptCompilerFactory.java:60)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:114)
at org.gradle.initialization.ScriptEvaluatingSettingsProcessor.applySettingsScript(ScriptEvaluatingSettingsProcessor.java:68)
at org.gradle.initialization.ScriptEvaluatingSettingsProcessor.process(ScriptEvaluatingSettingsProcessor.java:59)
at org.gradle.initialization.PropertiesLoadingSettingsProcessor.process(PropertiesLoadingSettingsProcessor.java:38)
at org.gradle.initialization.SettingsHandler.loadSettings(SettingsHandler.java:101)
at org.gradle.initialization.SettingsHandler.findSettingsAndLoadIfAppropriate(SettingsHandler.java:92)
at org.gradle.initialization.SettingsHandler.findAndLoadSettings(SettingsHandler.java:45)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:134)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:38)
at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:39)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:45)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:42)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:24)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.StartStopIfBuildAndStop.execute(StartStopIfBuildAndStop.java:33)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.ReturnResult.execute(ReturnResult.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:70)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:68)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:68)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:59)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:45)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator.runCommand(DaemonStateCoordinator.java:186)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy.doBuild(StartBuildOrRespondWithBusy.java:49)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.HandleStop.execute(HandleStop.java:36)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.CatchAndForwardDaemonFailure.execute(CatchAndForwardDaemonFailure.java:32)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:126)
at org.gradle.launcher.daemon.server.exec.DefaultDaemonCommandExecuter.executeCommand(DefaultDaemonCommandExecuter.java:48)
at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.handleCommand(DefaultIncomingConnectionHandler.java:155)
at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.receiveAndHandleCommand(DefaultIncomingConnectionHandler.java:128)
at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.run(DefaultIncomingConnectionHandler.java:116)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
] killed: false, code: 1, signal: null }
I have in gradle.properties this:
org.gradle.jvmargs=-XX:MaxPermSize=1024m
and in gradlew this:
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\" \"-Xmx1024m\" \"-Xms256m\" \"-XX:MaxPermSize=1024m\""
fi
I dont know why crash..help.
EDIT: (I am root, i dont know if this affect..)
with --debug
Running gradle assembleRelease --debug
on builds/2014428_122049683
12:21:07.621 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer#2a2096d7, org.gradle.logging.internal.logback.LogbackLoggingConfigurer#418f12dc, org.gradle.logging.internal.JavaUtilLoggingConfigurer#181f4b24]
12:21:07.687 [DEBUG] [org.gradle.internal.nativeplatform.services.NativeServices] Native-platform is not available.
12:21:07.697 [DEBUG] [org.gradle.internal.nativeplatform.services.NativeServices] Native-platform terminal is not available. Continuing with fallback.
12:21:08.726 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer#2a2096d7, org.gradle.logging.internal.logback.LogbackLoggingConfigurer#418f12dc, org.gradle.logging.internal.JavaUtilLoggingConfigurer#181f4b24]
12:21:08.727 [INFO] [org.gradle.BuildLogger] Starting Build
12:21:08.728 [DEBUG] [org.gradle.BuildLogger] Gradle user home: /root/.gradle
12:21:08.728 [DEBUG] [org.gradle.BuildLogger] Current dir: /root/ci/cifirext/builds/2014428_122049683
12:21:08.729 [DEBUG] [org.gradle.BuildLogger] Settings file: null
12:21:08.730 [DEBUG] [org.gradle.BuildLogger] Build file: null
12:21:08.752 [DEBUG] [org.gradle.initialization.BuildSourceBuilder] Starting to build the build sources.
12:21:08.753 [DEBUG] [org.gradle.initialization.BuildSourceBuilder] Gradle source dir does not exist. We leave.
12:21:08.754 [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] Found env project properties: []
12:21:08.755 [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] Found system project properties: []
12:21:08.947 [DEBUG] [org.gradle.api.internal.artifacts.mvnsettings.DefaultLocalMavenRepositoryLocator] No local repository in Settings file defined. Using default path: /root/.m2/repository
12:21:09.307 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on buildscript class cache for settings file '/root/ci/cifirext/builds/2014428_122049683/settings.gradle' (/root/.gradle/caches/1.4/scripts/settings_1lm5jovqikr5c3t58051j823ue/SettingsScript/buildscript).
12:21:09.308 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
12:21:09.310 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryCache] Invalidating buildscript class cache for settings file '/root/ci/cifirext/builds/2014428_122049683/settings.gradle' (/root/.gradle/caches/1.4/scripts/settings_1lm5jovqikr5c3t58051j823ue/SettingsScript/buildscript) as it was not closed cleanly.
12:21:09.311 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for settings file '/root/ci/cifirext/builds/2014428_122049683/settings.gradle' (/root/.gradle/caches/1.4/scripts/settings_1lm5jovqikr5c3t58051j823ue/SettingsScript/buildscript).
12:21:09.312 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on buildscript class cache for settings file '/root/ci/cifirext/builds/2014428_122049683/settings.gradle' (/root/.gradle/caches/1.4/scripts/settings_1lm5jovqikr5c3t58051j823ue/SettingsScript/buildscript).
12:21:09.313 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
12:21:09.314 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryCache] Invalidating buildscript class cache for settings file '/root/ci/cifirext/builds/2014428_122049683/settings.gradle' (/root/.gradle/caches/1.4/scripts/settings_1lm5jovqikr5c3t58051j823ue/SettingsScript/buildscript) as it was not closed cleanly.
12:21:09.319 [INFO] [org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler] Compiling settings file '/root/ci/cifirext/builds/2014428_122049683/settings.gradle' using BuildScriptClasspathScriptTransformer.
12:21:09.567 [DEBUG] [org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler] Timing: Writing script to cache at /root/.gradle/caches/1.4/scripts/settings_1lm5jovqikr5c3t58051j823ue/SettingsScript/buildscript/classes took: 0.251 secs
12:21:09.572 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for settings file '/root/ci/cifirext/builds/2014428_122049683/settings.gradle' (/root/.gradle/caches/1.4/scripts/settings_1lm5jovqikr5c3t58051j823ue/SettingsScript/buildscript).
12:21:09.573 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on buildscript class cache for settings file '/root/ci/cifirext/builds/2014428_122049683/settings.gradle' (/root/.gradle/caches/1.4/scripts/settings_1lm5jovqikr5c3t58051j823ue/SettingsScript/buildscript).
12:21:09.573 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
12:21:09.665 [LIFECYCLE] [org.gradle.BuildResultLogger]
12:21:09.665 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
12:21:09.666 [LIFECYCLE] [org.gradle.BuildResultLogger]
12:21:09.667 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 2.453 secs
12:21:09.670 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for settings file '/root/ci/cifirext/builds/2014428_122049683/settings.gradle' (/root/.gradle/caches/1.4/scripts/settings_1lm5jovqikr5c3t58051j823ue/SettingsScript/buildscript).
12:21:09.700 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer#2a2096d7, org.gradle.logging.internal.logback.LogbackLoggingConfigurer#418f12dc, org.gradle.logging.internal.JavaUtilLoggingConfigurer#181f4b24]
{ [Error: Command failed: 12:21:08.181 [ERROR] [system.err] java.lang.OutOfMemoryError: Java heap space
12:21:08.183 [ERROR] [system.err] at java.util.ArrayList.<init>(ArrayList.java:144)
12:21:08.184 [ERROR] [system.err] at org.codehaus.groovy.reflection.GeneratedMetaMethod$DgmMethodRecord.loadDgmInfo(GeneratedMetaMethod.java:193)
12:21:08.184 [ERROR] [system.err] at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.registerMethods(MetaClassRegistryImpl.java:155)
12:21:08.186 [ERROR] [system.err] at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:83)
12:21:08.186 [ERROR] [system.err] at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:61)
12:21:08.187 [ERROR] [system.err] at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:29)
12:21:08.187 [ERROR] [system.err] at org.gradle.api.internal.AbstractClassGenerator.generate(AbstractClassGenerator.java:100)
12:21:08.188 [ERROR] [system.err] at org.gradle.api.internal.ClassGeneratorBackedInstantiator.newInstance(ClassGeneratorBackedInstantiator.java:36)
12:21:08.188 [ERROR] [system.err] at org.gradle.initialization.DefaultGradleLauncherFactory.doNewInstance(DefaultGradleLauncherFactory.java:126)
12:21:08.189 [ERROR] [system.err] at org.gradle.initialization.DefaultGradleLauncherFactory.newInstance(DefaultGradleLauncherFactory.java:99)
12:21:08.189 [ERROR] [system.err] at org.gradle.initialization.DefaultGradleLauncherFactory.newInstance(DefaultGradleLauncherFactory.java:46)
12:21:08.190 [ERROR] [system.err] at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:38)
12:21:08.190 [ERROR] [system.err] at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:25)
12:21:08.191 [ERROR] [system.err] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
12:21:08.192 [ERROR] [system.err] at org.gradle.api.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
12:21:08.192 [ERROR] [system.err] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)
12:21:08.193 [ERROR] [system.err] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)
12:21:08.193 [ERROR] [system.err] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)
12:21:08.194 [ERROR] [system.err] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)
12:21:08.194 [ERROR] [system.err] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
12:21:08.195 [ERROR] [system.err] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
12:21:08.195 [ERROR] [system.err] at org.gradle.launcher.Main.doAction(Main.java:48)
12:21:08.196 [ERROR] [system.err] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
12:21:08.196 [ERROR] [system.err] at org.gradle.launcher.Main.main(Main.java:39)
12:21:08.196 [ERROR] [system.err] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:21:08.197 [ERROR] [system.err] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
12:21:08.198 [ERROR] [system.err] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12:21:08.198 [ERROR] [system.err] at java.lang.reflect.Method.invoke(Method.java:606)
12:21:08.199 [ERROR] [system.err] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)
12:21:08.199 [ERROR] [system.err] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
12:21:08.200 [ERROR] [system.err] at org.gradle.launcher.GradleMain.main(GradleMain.java:26)
12:21:09.659 [ERROR] [org.gradle.BuildExceptionReporter]
12:21:09.662 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build aborted because of an internal error.
12:21:09.662 [ERROR] [org.gradle.BuildExceptionReporter]
12:21:09.663 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
12:21:09.663 [ERROR] [org.gradle.BuildExceptionReporter] Build aborted because of an unexpected internal error. Please file an issue at: http://forums.gradle.org.
] killed: false, code: 1, signal: null }
I was using a older version of debian repositories, i updated the version to the last(1.11 at this moment) and now works fine..
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744337 say that error in libjarjar-java.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745815 - it fixed. Just update packages.
Related
Do anybody has a good link to create outbox patten using debezium ?
Steps mentioned in below URL is not seems to be working .
https://github.com/debezium/debezium-examples/tree/master/outbox
Error Trace :
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Debezium Outbox Demo - Build Aggregator 1.0.0-SNAPSHOT:
[INFO]
[INFO] Debezium Outbox Demo - Build Aggregator ............ SUCCESS [ 1.729 s]
[INFO] Debezium Outbox Demo - Order Service ............... FAILURE [ 43.897 s]
[INFO] Debezium Outbox Demo - Shipment Service ............ FAILURE [ 45.137 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.723 s (Wall Clock)
[INFO] Finished at: 2021-03-06T01:04:50+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.12.0.Final:build (default) on project outbox-order-service: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Cannot find the native-image in the GRAALVM_HOME, JAVA_HOME and System PATH. Install it using gu install native-image
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.getNativeImageExecutable(NativeImageBuildStep.java:627)
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.getNativeImage(NativeImageBuildStep.java:343)
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:112)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
[ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
[ERROR] at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:920)
[ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
[ERROR] at java.base/java.lang.Thread.run(Thread.java:832)
[ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] -> [Help 1]
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.12.0.Final:build (default) on project outbox-shipment-service: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Cannot find the native-image in the GRAALVM_HOME, JAVA_HOME and System PATH. Install it using gu install native-image
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.getNativeImageExecutable(NativeImageBuildStep.java:627)
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.getNativeImage(NativeImageBuildStep.java:343)
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:112)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
[ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
[ERROR] at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:920)
[ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
[ERROR] at java.base/java.lang.Thread.run(Thread.java:832)
[ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :outbox-order-service
All the information is actually in the error message:
Cannot find the native-image in the GRAALVM_HOME, JAVA_HOME and System PATH. Install it using gu install native-image
You're trying to build the application as a GraalVM native binary, but don't have the required tooling installed for that. So either install the native-image tool (see the related Quarkus guide for details), or build as a JVM application instead (by setting QUARKUS_BUILD to jvm).
I'm trying to upgrade the dependencies for a Java application that my team maintains. The application is based on SpringBoot and used to declare spring-boot-starter-parent:1.5.6.RELEASE as its parent.
After the upgrade, the application declares spring-boot-starter-parent:2.1.8.RELEASE as its parent. Here's the diff of my pom.xml file:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
- <version>1.5.6.RELEASE</version>
+ <version>2.1.8.RELEASE</version>
<relativePath/>
</parent>
Now mvn -X clean test now fails with the following exception:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project scimapi: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\musikpolice\Documents\git\scimapi\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_191\jre\bin\java" -jar C:\Users\musikpolice\AppData\Local\Temp\surefire4062831518056119279\surefirebooter1476719102492403846.jar C:\Users\musikpolice\AppData\Local\Temp\surefire4062831518056119279 2019-10-01T11-33-46_847-jvmRun1 surefire6827784388561767102tmp surefire_04733578287828383905tmp"
[ERROR] Process Exit Code: 0
[ERROR] Crashed tests:
[ERROR] com.mycompany.scim.controllers.SomeControllerTest
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_191\jre\bin\java" -jar C:\Users\musikpolice\AppData\Local\Temp\surefire4062831518056119279\surefirebooter1476719102492403846.jar C:\Users\musikpolice\AppData\Local\Temp\surefire4062831518056119279 2019-10-01T11-33-46_847-jvmRun1 surefire6827784388561767102tmp surefire_04733578287828383905tmp"
[ERROR] Process Exit Code: 0
[ERROR] Crashed tests:
[ERROR] com.mycompany.scim.controllers.SomeControllerTest
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:954)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
The C:\Users\musikpolice\Documents\git\scimapi\target\surefire-reports directory mentioned in the test output does not exist. I cannot find the dump files referenced in the output either.
My Maven/Java versions are as follows:
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T14:33:14-04:00)
Maven home: C:\ProgramData\chocolatey\lib\maven\apache-maven-3.5.4\bin\..
Java version: 1.8.0_191, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_191\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
I am not explicitly declaring a version of the maven-surefire-plugin in the Builds > Plugins section of pom.xml, but adding an explicit reference to version 2.22.2 of that plugin did not resolve the problem.
It's worth noting that adding an #Ignored annotation to com.mycompany.scim.controllers.SomeControllerTest doesn't fix the problem - the next test in line just fails in the same way.
Interestingly, the code compiles and all tests pass in IntelliJ. I only run into this issue when running the build with Maven, which tells me that the problem is likely some mismatched versions of elements in my toolchain, but I don't really know what else to troubleshoot.
Note: I am now aware of The forked VM terminated without saying properly goodbye. VM crash or System.exit called, I tried many of the solutions expressed there and none of them work or make any difference. I documented in this question what I tried and what happened. I don't believe this is a duplicate of that question, essentially, because no answer is accepted so we can't know what the cause behind the error really was and many different problems could cause this same error (not all crashes are the same).
I'm sort of reviving a project that was left in a broken state when I try to run the tests I get this error:
[ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
I can't go back to a known working state, because, well, I don't know when that happened and under what conditions.
This is the full output from the command:
> mvn test
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< com.example:projectxserver >--------------------
[INFO] Building projectxserver 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact org.hibernate:hibernate-validator:jar:6.0.17.Final has been relocated to org.hibernate.validator:hibernate-validator:jar:6.0.17.Final
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) # projectxserver ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 15 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # projectxserver ---
[WARNING] ***********************************************************************************************************************************************************************
[WARNING] * Required filename-based automodules detected: [javax.servlet-api-4.0.1.jar, javax.inject-1.jar]. Please don't publish this project to a public artifact repository! *
[WARNING] ***********************************************************************************************************************************************************************
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) # projectxserver ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) # projectxserver ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) # projectxserver ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM 1. See FAQ web page and the dump file C:\Users\pupeno\Documents\projectx\code\projectxserver\target\surefire-reports\2019-09-26T05-51-30_012-jvmRun1.dumpstream
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.748 s
[INFO] Finished at: 2019-09-26T05:51:32+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project projectxserver: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\pupeno\Documents\projectx\code\projectxserver\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was cmd.exe /X /C "C:\Users\pupeno\scoop\apps\oraclejdk\current\bin\java #C:\Users\pupeno\AppData\Local\Temp\surefire12697495595942050464\surefireargs12476787747337053319 C:\Users\pupeno\AppData\Local\Temp\surefire12697495595942050464 2019-09-26T05-51-30_012-jvmRun1 surefire10872047683044717734tmp surefire_013239801033816370074tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was cmd.exe /X /C "C:\Users\pupeno\scoop\apps\oraclejdk\current\bin\java #C:\Users\pupeno\AppData\Local\Temp\surefire12697495595942050464\surefireargs12476787747337053319 C:\Users\pupeno\AppData\Local\Temp\surefire12697495595942050464 2019-09-26T05-51-30_012-jvmRun1 surefire10872047683044717734tmp surefire_013239801033816370074tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:567)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Not sure what information is relevant at this point, I'm happy to add whatever is needed to this question.
I tried OpenJDK 11, 12 and OracleJDK 12 as well as maven-sure-fire-plugin 2.22.2 and 3.0.0-M3. All give the same error.
I tried mvn clean and re-built. I tried removing my whole Maven repo, the .m2 directory.
I also tried adding <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine> as explained in The forked VM terminated without saying properly goodbye. VM crash or System.exit called as well as <argLine>-Xmx2048m -XX:MaxPermSize=1024m</argLine> just to make sure, but the error remained the same. I tried this only with Oracle JDK 12.
I also tried:
<configuration>
<forkCount>3</forkCount>
<reuseForks>true</reuseForks>
<argLine>-Xmx2048m -XX:MaxPermSize=1024m</argLine>
</configuration>
just in case the other two parameters were relevant and it failed with this error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project dashmanserver: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test failed: java.lang.ClassNotFoundException: org.apache.maven.plugin.surefire.StartupReportConfiguration -> [Help 1]
I tried adding <testFailureIgnore>true</testFailureIgnore> but I get the same error.
Have the same issue; build works on one machine but on another machine it does not work.
Maven log on failing machine mentions a "dumpstream" file, e.g. \xxx\target\surefire-reports\2020-05-12T17-21-34_124.dumpstream
Peeking into that reveals:
# Created at 2020-05-12T17:21:35.135
Ursache: java.lang.ClassNotFoundException: LastName\/m2\repository\javax\servlet\javax/servlet-api\4/0/1\javax/servlet-api-4/0/1/jar;C:\Users\FirstName
So it turns out that I have "c:\users\FirstName LastName" as user directory, e.g. a space in my username, and I would assume that since servlet-api 4.0.1 does not have a module-info.class so there's some lookup in MANIFEST.MF I believe or whatever.
The other machine where the build is running fine is with a user directory that does not have a space in its name.
Weird thing is that it happens only when running tests, and it does not seem to matter whether useModulePath is true or false for maven-surefire-plugin
Im getting the below exception when executing the sonarQube on a project. when I try to run sonarQube on our project, we get the below unsupportedClassVersion Exception
D:\Repos\testPA\testPA>mvn sonar:sonar
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building testPA 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- sonar-maven-plugin:3.0.1:sonar (default-cli) # testPA ---
[WARNING] Error injecting: org.sonarsource.scanner.maven.SonarQubeMojo
java.lang.TypeNotPresentException: Type org.sonarsource.scanner.maven.SonarQubeM
ojo not present
at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:115
)
at org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46)
at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClas
s.java:48)
at com.google.inject.internal.ProviderInternalFactory.provision(Provider
InternalFactory.java:86)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.prov
ision(InternalFactoryToInitializableAdapter.java:54)
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInt
ernalFactory.java:70)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.p
rovision(ProvisionListenerStackCallback.java:113)
at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanSchedul
er.java:176)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.p
rovision(ProvisionListenerStackCallback.java:122)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(P
rovisionListenerStackCallback.java:68)
at com.google.inject.internal.ProviderInternalFactory.circularGet(Provid
erInternalFactory.java:68)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(
InternalFactoryToInitializableAdapter.java:46)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:10
09)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.ja
va:1059)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1005)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:5
1)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:263)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:255)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfigu
redMojo(DefaultMavenPluginManager.java:464)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:119)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: java.lang.UnsupportedClassVersionError: org/sonarsource/scanner/maven
/SonarQubeMojo : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(Cl
assRealm.java:401)
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(
SelfFirstStrategy.java:42)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadCl
ass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm
.java:254)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm
.java:239)
at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:107
)
... 41 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.454 s
[INFO] Finished at: 2016-02-23T16:17:46+05:30
[INFO] Final Memory: 6M/12M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:
3.0.1:sonar (default-cli) on project testPA: Execution default-cli of goal
org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar failed: Unable to
load the mojo 'sonar' in the plugin 'org.sonarsource.scanner.maven:sonar-maven-p
lugin:3.0.1' due to an API incompatibility: org.codehaus.plexus.component.reposi
tory.exception.ComponentLookupException: org/sonarsource/scanner/maven/SonarQube
Mojo : Unsupported major.minor version 51.0
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.codehaus.mojo:sonar-maven-plugin:3.0.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/vb/.m2/repository/org/sonarsource/sca
nner/maven/sonar-maven-plugin/3.0.1/sonar-maven-plugin-3.0.1.jar
[ERROR] urls[1] = file:/C:/Users/vb/.m2/repository/org/apache/maven/sh
ared/maven-dependency-tree/2.2/maven-dependency-tree-2.2.jar
[ERROR] urls[2] = file:/C:/Users/vb/.m2/repository/org/codehaus/plexus
/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[3] = file:/C:/Users/vb/.m2/repository/org/eclipse/aether/
aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
[ERROR] urls[4] = file:/C:/Users/vb/.m2/repository/org/sonatype/plexus
/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar
[ERROR] urls[5] = file:/C:/Users/vb/.m2/repository/org/sonatype/plexus
/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[6] = file:/C:/Users/vb/.m2/repository/org/codehaus/plexus
/plexus-utils/3.0.22/plexus-utils-3.0.22.jar
[ERROR] urls[7] = file:/C:/Users/vb/.m2/repository/org/sonarsource/son
ar-runner/sonar-runner-api/2.5.1/sonar-runner-api-2.5.1.jar
[ERROR] urls[8] = file:/C:/Users/vb/.m2/repository/commons-lang/common
s-lang/2.6/commons-lang-2.6.jar
[ERROR] urls[9] = file:/C:/Users/vb/.m2/repository/com/google/guava/gu
ava/18.0/guava-18.0.jar
[ERROR] urls[10] = file:/C:/Users/vb/.m2/repository/com/google/code/fi
ndbugs/jsr305/2.0.3/jsr305-2.0.3.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContaine
rException
We have installed Sonarqube 5.3 and when I try to execute sonar via command prompt, I get the above exception. Im able to launch sonarQube via http://localhost:9000 and able to view the sonarqube ui fine.
As of sonar-runner-api 2.8 it appears you need JDK 8.
Yes, you need JDK 7 or newer (see How to fix: Unsupported major.minor version 51.0 error?).
You can still build your project with JDK 6 or older, but SonarQube analysis should be executed by JDK 7 or newer.
I downloaded the Gluon plugin for Netbeans to deploy JavaFX application to Android. It ran successfully on the desktop but when I execute the android task, it throws an error:
Executing: gradle :android
:compileJava UP-TO-DATE
:compileRetrolambdaMain UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:compileAndroidJava UP-TO-DATE
:compileRetrolambdaAndroid SKIPPED
:compileTestJava UP-TO-DATE
:compileRetrolambdaTest SKIPPED
:compileRetrolambda UP-TO-DATE
:mergeClassesIntoJar
:validateManifest
:collectMultiDexComponents
:shrinkMultiDexComponents
:createMainDexList
[ant:java] Java Result: 1
:dex FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':dex'.
> org.gradle.api.GradleException (no error message)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4 mins 29.297 secs
Here's my software configuration:
I used JDK8u45 (I also set the path for JAVA_HOME)
I used Netbeans 8.0.2 for the IDE
I downloaded the Android SDK with API21 in it (I also set the path for ANDROID_HOME)
I downloaded Gradle2.4 (I also set the path for GRADLE_HOME)
I used Windows XP for the OS (32 bit)
What could be the cause of that error?
Here's the build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.0.0-b9'
}
}
apply plugin: 'org.javafxports.jfxmobile'
repositories {
jcenter()
}
mainClassName = 'com.gluon.GlounMainApp'
jfxmobile {
android {
manifest = 'src/android/AndroidManifest.xml'
}
ios {
infoPList = file('src/ios/Default-Info.plist')
}
}
Here's the stacktrace:
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task':dex'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
ortingAction.java:33)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
at org.gradle.launcher.Main.doAction(Main.java:33)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.ja
va:30)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:58)
Caused by: org.gradle.api.GradleException:
at org.javafxports.jfxmobile.plugin.android.task.Dex.dex(Dex.groovy:45)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
... 47 more
Here's the --debug output:
Finished executing task ':dex'
11:36:09.171 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :dex FAILED
11:36:09.187 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :dex (Thread[main,5,main]) completed. Took 0.391 secs.
11:36:09.203 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 1 mins 18.97 secs, idle: 0.421secs 11:36:09.265 [ERROR] [org.gradle.BuildExceptionReporter]
11:36:09.265 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
11:36:09.281 [ERROR] [org.gradle.BuildExceptionReporter]
11:36:09.296 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
11:36:09.312 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':dex'.
11:36:09.312 [ERROR] [org.gradle.BuildExceptionReporter] > org.gradle.api.Gradle
Exception (no error message)
11:36:09.328 [ERROR] [org.gradle.BuildExceptionReporter]
11:36:09.343 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
11:36:09.343 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
11:36:09.359 [LIFECYCLE] [org.gradle.BuildResultLogger]
11:36:09.375 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
11:36:09.390 [LIFECYCLE] [org.gradle.BuildResultLogger]
11:36:09.390 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 2 mins 13.48
4 secs
11:36:09.406 [DEBUG] [org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonManager ]
Stopping 0 compiler daemon(s).
11:36:09.421 [INFO] [org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonManager ]
Stopped 0 compiler daemon(s).
11:36:09.421 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for build file 'C:\HelloGluon\build.gradle' (C:\gradle\caches\2.2.1\scripts\build_80spgxfpvahlvz1v3mywr9rd1\ProjectScript\buil
dscript).
11:36:09.437 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for build file 'C:\HelloGluon\build.gradle'
(C:\gradle\caches\2.2.1\scripts\build_80spgxfpvahlvz1v3mywr9rd1\ProjectScript\no_buildscript).
11:36:09.453 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache ]
Closing cache fileHashes.bin (C:\HelloGluon\.gradle\2.2.1\taskArtifacts\fileHashe
s.bin)
11:36:09.453 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache ]
Closing cache fileSnapshots.bin (C:\HelloGluon\.gradle\2.2.1\taskArtifacts\fileSn
apshots.bin)
11:36:09.468 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache ]
Closing cache taskArtifacts.bin (C:\HelloGluon\.gradle\2.2.1\taskArtifacts\taskArtifacts.bin)
11:36:09.484 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache ]
Closing cache outputFileStates.bin (C:\HelloGluon\.gradle\2.2.1\taskArtifacts\outputFileStates.bin)
11:36:09.484 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on task history cache (C:\HelloGluon\.gradle\2.2.1\taskArtifacts).
11:36:09.500 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Plugin
Resolution Cache (C:\gradle\caches\2.2.1\plugin-resolution) was closed 0 times.
11:36:09.500 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache ]
Closing cache artifact-at-repository.bin (C:\gradle\caches\modules-2\metadata-2.14\artifact-at-repository.bin)
11:36:09.515 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache ]
Closing cache module-metadata.bin (C:\gradle\caches\modules-2\metadata-2.14\module-metadata.bin)
11:36:09.531 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (C:\gradle\caches\modules-2).
11:36:09.531 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory ]
In-memory dependency metadata cache closed. Repos cached: 4, cache instances: 1,modules served from cache: 0, artifacts: 0
11:36:09.546 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine. store.CachedStoreFactory ]
Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
11:36:09.562 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory ]
Resolved configuration cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
11:36:09.562 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory ]
Deleted 2 resolution results binary files in 0.016 secs
I had the same problem now it's solved .Now I am able to compile and make my android apk .
So these are the steps I followed
Make sure you have updated your sdk manager -> support library
to latest version (23.1.1) it was the latest for me when I posted this
answer. This will update
H:\sdk\extras\android\support\multidex files
Make sure you add your android sdk location in build.gradle
androidSdk='H:/ADT BUNDLE/sdk'
like this
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.0.0-b9'
}
}
apply plugin: 'org.javafxports.jfxmobile'
repositories {
jcenter()
}
mainClassName = 'com.fff.Fff'
jfxmobile {
android {
manifest = 'src/android/AndroidManifest.xml'
androidSdk='H:/ADT BUNDLE/sdk'
}
}
If you are working in a 32 bit PC
Set environment variable name JAVA_OPTIONS with value Xmx1024M
If you are working in a 64 bit PC
make sure you install JDK that is 64 bit and not 32 bit JDK