Tasks built against 1.0-milestone-8 fail if run against 1.0-milestone-7


(andrew.oberstar) #1

In our internal plugins JAR, I’m running into an issue where any tasks that were compiled against 1.0-milestone-8, fail with the following exception when run by a 1.0-milestone-7 build. Running with 1.0-milestone-8 works fine.

I can compile the same tasks against 1.0-milestone-7 and they will run fine against either 1.0-milestone-7 or 1.0-milestone-8.

I’m not using any internal classes in these tasks, so I’m not sure what the deal is…

org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'csfwsmonitor'.
 at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54)
 at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:127)
 at org.gradle.configuration.BuildScriptProcessor.evaluate(BuildScriptProcessor.java:38)
 at org.gradle.configuration.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:43)
 at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:475)
 at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:74)
 at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:23)
 at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:21)
 at org.gradle.configuration.DefaultBuildConfigurer$1.execute(DefaultBuildConfigurer.java:38)
 at org.gradle.configuration.DefaultBuildConfigurer$1.execute(DefaultBuildConfigurer.java:35)
 at org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:451)
 at org.gradle.api.internal.project.AbstractProject.allprojects(AbstractProject.java:446)
 at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
 at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:137)
 at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:108)
 at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:76)
 at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:45)
 at org.gradle.launcher.daemon.protocol.Build.run(Build.java:67)
 at org.gradle.launcher.daemon.protocol.Build.run(Build.java:63)
 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:122)
 at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:45)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
 at org.gradle.launcher.daemon.server.exec.CatchAndForwardDaemonFailureAsResult.execute(CatchAndForwardDaemonFailureAsResult.java:24)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
 at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:24)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
 at org.gradle.launcher.daemon.server.exec.ReturnResult.execute(ReturnResult.java:32)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
 at org.gradle.launcher.daemon.server.exec.ForwardClientInput$4.call(ForwardClientInput.java:112)
 at org.gradle.launcher.daemon.server.exec.ForwardClientInput$4.call(ForwardClientInput.java:110)
 at org.gradle.util.Swapper.swap(Swapper.java:38)
 at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:110)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
 at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:47)
 at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
 at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:48)
 at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
 at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy.doBuild(StartBuildOrRespondWithBusy.java:37)
 at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
 at org.gradle.launcher.daemon.server.exec.HandleStop.execute(HandleStop.java:34)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
 at org.gradle.launcher.daemon.server.exec.CatchAndForwardDaemonFailure.execute(CatchAndForwardDaemonFailure.java:34)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
 at org.gradle.launcher.daemon.server.exec.HandleClientDisconnectBeforeSendingCommand.execute(HandleClientDisconnectBeforeSendingCommand.java:21)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
 at org.gradle.launcher.daemon.server.exec.StopConnectionAfterExecution.execute(StopConnectionAfterExecution.java:22)
 at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
 at org.gradle.launcher.daemon.server.exec.DefaultDaemonCommandExecuter.executeCommand(DefaultDaemonCommandExecuter.java:49)
 at org.gradle.launcher.daemon.server.Daemon$1$1.run(Daemon.java:113)
 at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
Caused by: org.gradle.api.GradleException: Could not generate a proxy class for class common.gradle.drools.tasks.DroolsCompile.
 at org.gradle.api.internal.AbstractClassGenerator.generate(AbstractClassGenerator.java:187)
 at org.gradle.api.internal.project.taskfactory.TaskFactory.createTaskObject(TaskFactory.java:90)
 at org.gradle.api.internal.project.taskfactory.TaskFactory.createTask(TaskFactory.java:55)
 at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory.createTask(AnnotationProcessingTaskFactory.java:64)
 at org.gradle.api.internal.project.taskfactory.DependencyAutoWireTaskFactory.createTask(DependencyAutoWireTaskFactory.java:39)
 at org.gradle.api.internal.tasks.DefaultTaskContainer.add(DefaultTaskContainer.java:49)
 at org.gradle.api.internal.project.AbstractProject.task(AbstractProject.java:913)
 at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:158)
 at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:93)
 at org.gradle.api.internal.project.DefaultProject_Decorated.invokeMethod(Unknown Source)
 at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.groovy:72)
 at build_665mpinn0dqi0il7ill1sr5uae.run(C:\Workspaces\test\build.gradle:18)
 at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:52)
 ... 54 more
Caused by: java.lang.NoClassDefFoundError: org/gradle/internal/service/ServiceRegistry
 at org.gradle.api.internal.AbstractClassGenerator.generate(AbstractClassGenerator.java:94)
 ... 66 more
Caused by: java.lang.ClassNotFoundException: org.gradle.internal.service.ServiceRegistry
 ... 67 more

(sree_nag) #2

Having the same error. I recently migrated to 64 bit linux, and gradle has been throwing this error ever since. at different lines.


(Luke Daley) #3

@Andrew: was this with the final m8? There was an issue in the snapshot releases but I thought we fixed this in the final.


(Luke Daley) #4

@Sree: Can you please provide some more information.

We need Gradle version, JDK version , OS version etc.


(andrew.oberstar) #5

Yes, this was m8 final. I can run the test again tomorrow and see what happens.


(andrew.oberstar) #6

Same exact plugin code. The project is using 1.0-milestone-8, but we compile against the JARs of a different version of Gradle:

  • compile against m7 works at runtime against m7, m8, m9 - compile against m8 works at runtime against m8, m9, but FAILS agsinst m7 - compile against m9 works at runtime against m8, m9, but FAILS against m7

I’m on Windows (originally saw the issue on XP, still happening on 7)

------------------------------------------------------------
Gradle 1.0-milestone-8
------------------------------------------------------------
  Gradle build time: Monday, February 13, 2012 11:53:32 PM UTC
Groovy: 1.8.4
Ant: Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Ivy: 2.2.0
JVM: 1.6.0_22 (Sun Microsystems Inc. 17.1-b03)
OS: Windows 7 6.1 x86

(Peter Niederwieser) #7

What you are asking for is binary forward compatibility. That’s not something we aim for. We do, however, aim for binary backwards compatibility. This means that you should be fine as long as you compile against the lowest Gradle version that you wish to support.


(andrew.oberstar) #8

Thanks for the clarification.


(sree_nag) #9

Luke, My issue I suspect is different, but I see the same NullPointerException as above. I tried different jvms and gradle releases but I get the same exception every time. Here is my build environment.

★ snagisetty@snagisetty:android-wrapper $ gradle -version

------------------------------------------------------------ Gradle 1.0-milestone-9 ------------------------------------------------------------

Gradle build time: Tuesday, March 13, 2012 4:10:09 PM UTC Groovy: 1.8.6 Ant: Apache Ant™ version 1.8.2 compiled on December 20 2010 Ivy: 2.2.0 JVM: 1.6.0_22 (Sun Microsystems Inc. 20.0-b11) OS: Linux 2.6.32-220.7.1.el6.x86_64 amd64

★ snagisetty@snagisetty:android-wrapper $ java -version java version “1.6.0_22” OpenJDK Runtime Environment (IcedTea6 1.10.6) (rhel-1.43.1.10.6.el6_2-x86_64) OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode) ★ snagisetty@snagisetty:android-wrapper $ uname --all Linux snagisetty 2.6.32-220.7.1.el6.x86_64 #1 SMP Wed Mar 7 00:52:02 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux ★ snagisetty@snagisetty:android-wrapper $


(sree_nag) #10

And here is my build.gradle

buildscript {
  repositories {
    mavenCentral()
  }
  dependencies {
    classpath 'org.gradle.api.plugins:gradle-android-plugin:1.1.0'
  }
}
  apply plugin: 'android'
apply plugin: 'eclipse'
apply plugin: 'idea'

(Luke Daley) #11

@Sree: I’m not sure this is the same issue at all as the original topic has no NullPointerException.


(sree_nag) #12

Here is the gradle build log.

09:31:45.603 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] Class com.android.ant.NewSetupTask$3 loaded from ant loader (parentFirst)
09:31:45.604 [INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:setup] No library dependencies.
09:31:45.604 [INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:setup]
09:31:45.605 [INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:setup] ------------------
09:31:45.605 [INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:setup] API<=15: Adding annotations.jar to the classpath.
09:31:45.605 [INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:setup]
09:31:45.606 [INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:setup] ------------------
09:31:45.606 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] Adding reference: project.libraries.libs
09:31:45.608 [DEBUG] [org.gradle.configuration.BuildScriptProcessor] Timing: Running the build script took 1.576 secs
09:31:45.614 [ERROR] [org.gradle.BuildExceptionReporter]
09:31:45.616 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
09:31:45.616 [ERROR] [org.gradle.BuildExceptionReporter]
09:31:45.616 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
09:31:45.617 [ERROR] [org.gradle.BuildExceptionReporter] Build file '/home/snagisetty/android-wrapper/build.gradle' line: 10
09:31:45.617 [ERROR] [org.gradle.BuildExceptionReporter]
09:31:45.618 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
09:31:45.618 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'android-wrapper'.
09:31:45.620 [ERROR] [org.gradle.BuildExceptionReporter] > java.lang.NullPointerException
09:31:45.620 [ERROR] [org.gradle.BuildExceptionReporter]
09:31:45.621 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
09:31:45.621 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'android-wrapper'.
09:31:45.622 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54)
09:31:45.622 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:127)
09:31:45.622 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.configuration.BuildScriptProcessor.evaluate(BuildScriptProcessor.java:38)
09:31:45.623 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.configuration.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:43)
09:31:45.623 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:478)
09:31:45.624 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:75)
09:31:45.624 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:23)
09:31:45.624 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:21)
09:31:45.625 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.configuration.DefaultBuildConfigurer$1.execute(DefaultBuildConfigurer.java:38)
09:31:45.625 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.configuration.DefaultBuildConfigurer$1.execute(DefaultBuildConfigurer.java:35)
09:31:45.625 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:454)
09:31:45.626 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.project.AbstractProject.allprojects(AbstractProject.java:449)
09:31:45.626 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
09:31:45.627 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:139)
09:31:45.627 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:110)
09:31:45.627 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:78)
09:31:45.628 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:42)
09:31:45.628 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:28)
09:31:45.628 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionReportingAction.java:32)
09:31:45.629 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionReportingAction.java:21)
09:31:45.629 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:238)
09:31:45.630 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:222)
09:31:45.630 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.Main.doAction(Main.java:48)
09:31:45.630 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:53)
09:31:45.631 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:51)
09:31:45.631 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.exec.Execution.execute(Execution.java:28)
09:31:45.631 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.exec.EntryPoint.run(EntryPoint.java:39)
09:31:45.632 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.Main.main(Main.java:39)
09:31:45.632 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:51)
09:31:45.633 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:33)
09:31:45.633 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
09:31:45.633 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: : java.lang.NullPointerException
09:31:45.634 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
09:31:45.634 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:71)
09:31:45.634 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:86)
09:31:45.635 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.project.DefaultAntBuilder.super$3$invokeMethod(DefaultAntBuilder.groovy)
09:31:45.635 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.project.DefaultAntBuilder.invokeMethod(DefaultAntBuilder.groovy:37)
09:31:45.635 [ERROR] [org.gradle.BuildExceptionReporter]
      at com.jvoegele.gradle.plugins.android.AndroidSetup_r14.setup(AndroidSetup_r14.groovy:49)
09:31:45.636 [ERROR] [org.gradle.BuildExceptionReporter]
      at com.jvoegele.gradle.plugins.android.AndroidSetup$setup.call(Unknown Source)
09:31:45.636 [ERROR] [org.gradle.BuildExceptionReporter]
      at com.jvoegele.gradle.plugins.android.AndroidPlugin.androidSetup(AndroidPlugin.groovy:89)
09:31:45.637 [ERROR] [org.gradle.BuildExceptionReporter]
      at com.jvoegele.gradle.plugins.android.AndroidPlugin.apply(AndroidPlugin.groovy:77)
09:31:45.637 [ERROR] [org.gradle.BuildExceptionReporter]
      at com.jvoegele.gradle.plugins.android.AndroidPlugin.apply(AndroidPlugin.groovy)
09:31:45.637 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.plugins.DefaultProjectsPluginContainer.providePlugin(DefaultProjectsPluginContainer.java:107)
09:31:45.638 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.plugins.DefaultProjectsPluginContainer.addPluginInternal(DefaultProjectsPluginContainer.java:71)
09:31:45.638 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.plugins.DefaultProjectsPluginContainer.apply(DefaultProjectsPluginContainer.java:37)
09:31:45.638 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyPlugin(DefaultObjectConfigurationAction.java:101)
09:31:45.639 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$200(DefaultObjectConfigurationAction.java:32)
09:31:45.639 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.run(DefaultObjectConfigurationAction.java:72)
09:31:45.639 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:114)
09:31:45.640 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.project.AbstractProject.apply(AbstractProject.java:858)
09:31:45.640 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.Project$apply.call(Unknown Source)
09:31:45.641 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.groovy:35)
09:31:45.641 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.api.Script$apply.callCurrent(Unknown Source)
09:31:45.641 [ERROR] [org.gradle.BuildExceptionReporter]
      at build_s8sds61rm81h7khuf7o8nvhh9.run(/home/snagisetty/android-wrapper/build.gradle:10)
09:31:45.642 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:52)
09:31:45.642 [ERROR] [org.gradle.BuildExceptionReporter]
      ... 30 more
09:31:45.642 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NullPointerException
09:31:45.643 [ERROR] [org.gradle.BuildExceptionReporter]
      at com.android.ant.NewSetupTask.sanitizePaths(NewSetupTask.java:745)
09:31:45.643 [ERROR] [org.gradle.BuildExceptionReporter]
      at com.android.ant.NewSetupTask.processReferencedLibraries(NewSetupTask.java:573)
09:31:45.643 [ERROR] [org.gradle.BuildExceptionReporter]
      at com.android.ant.NewSetupTask.execute(NewSetupTask.java:300)
09:31:45.644 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
09:31:45.644 [ERROR] [org.gradle.BuildExceptionReporter]
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
09:31:45.644 [ERROR] [org.gradle.BuildExceptionReporter]
      ... 52 more
09:31:45.645 [ERROR] [org.gradle.BuildExceptionReporter]
09:31:45.645 [LIFECYCLE] [org.gradle.BuildResultLogger]
09:31:45.646 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
09:31:45.646 [LIFECYCLE] [org.gradle.BuildResultLogger]
09:31:45.646 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 2.866 secs
09:31:45.647 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for build file '/home/snagisetty/android-wrapper/build.gradle' (/home/snagisetty/.gradle/caches/1.0-milestone-8/scripts/build_s8sds61rm81h7khuf7o8nvhh9/ProjectScript/no_buildscript).
09:31:45.648 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for build file '/home/snagisetty/android-wrapper/build.gradle' (/home/snagisetty/.gradle/caches/1.0-milestone-8/scripts/build_s8sds61rm81h7khuf7o8nvhh9/ProjectScript/buildscript).

(sree_nag) #13

Luke, as shown above, the log shows a NullPointerException and pretty much the same stack trace. It definitely has something to do with android plugin and my new 64 bit centos 6 box, but not getting any clues as to why it is failing. It worked in every other environment though.


(Luke Daley) #14

This has nothing to do with the original topic. Please raise a new topic.