build failed : compileJava FAILED

5,265 views
Skip to first unread message

Hsing Min Wang

unread,
Jan 6, 2014, 2:56:56 AM1/6/14
to simianar...@googlegroups.com
Hi everybody,
  I'm new in SimianArrmy. I try build project on EC2 server (CentOS). I get this error message:

07:55:03.134 [INFO] [org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler] Compiling with JDK 6 Java compiler API.
07:55:06.347 [ERROR] [system.err] /home/march/SimianArmy/src/main/java/com/netflix/simianarmy/basic/LocalDbRecorder.java:35: cannot find symbol
07:55:06.354 [ERROR] [system.err] symbol  : class Utils
07:55:06.358 [ERROR] [system.err] location: package org.mapdb
07:55:06.359 [ERROR] [system.err] import org.mapdb.Utils;
07:55:06.359 [ERROR] [system.err]                 ^
07:55:08.558 [ERROR] [system.err] /home/march/SimianArmy/src/main/java/com/netflix/simianarmy/basic/LocalDbRecorder.java:79: cannot find symbol
07:55:08.558 [ERROR] [system.err] symbol  : variable Utils
07:55:08.563 [ERROR] [system.err] location: class com.netflix.simianarmy.basic.LocalDbRecorder
07:55:08.563 [ERROR] [system.err]         dbFile = (dbFilename == null)? Utils.tempDbFile() : new File(dbFilename);
07:55:08.565 [ERROR] [system.err]                                        ^
07:55:09.034 [ERROR] [system.err] 2 errors
07:55:09.041 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@2d58f9d3, org.gradle.logging.internal.logback.LogbackLoggingConfigurer@2c79a2e7, org.gradle.logging.internal.JavaUtilLoggingConfigurer@65b60280]
07:55:09.042 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on task artifact state cache (/home/march/SimianArmy/.gradle/1.5/taskArtifacts).
07:55:09.043 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
07:55:09.043 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':compileJava'
07:55:09.046 [LIFECYCLE] [org.gradle.TaskExecutionLogger] :compileJava FAILED
07:55:09.083 [ERROR] [org.gradle.BuildExceptionReporter]
07:55:09.086 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
07:55:09.087 [ERROR] [org.gradle.BuildExceptionReporter]
07:55:09.091 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
07:55:09.092 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':compileJava'.


Any idea why this is happening?


Cory Bennett

unread,
Jan 6, 2014, 12:36:57 PM1/6/14
to simianar...@googlegroups.com
Hello, I recently changed the build.gradle file to be less specific
for the mapdb dependency.

In build.gradle please replace:
org.mapdb:mapdb:latest.release

with:
org.mapdb:mapdb:0.9.5

I will look into getting this resolved in the source.
Thanks
-Cory
> --
> You received this message because you are subscribed to the Google Groups
> "Simian Army Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to simianarmy-use...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Message has been deleted

Hsing Min Wang

unread,
Jan 6, 2014, 9:31:35 PM1/6/14
to simianar...@googlegroups.com
Hi cbennett,
the error is fixed. but I get another error, like this:

[march@ip-172-31-25-34 SimianArmy]$ ./gradlew build
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar UP-TO-DATE
:javadoc UP-TO-DATE
:javadocJar UP-TO-DATE
:sourcesJar UP-TO-DATE
:war UP-TO-DATE
:signArchives SKIPPED
:assemble UP-TO-DATE
:checkstyleMain UP-TO-DATE
:compileTestJava
/home/march/SimianArmy/src/test/java/com/netflix/simianarmy/aws/janitor/rule/volume/TestOldDetachedVolumeRule.java:98: warning: [deprecation] toDateMidnight() in org.joda.time.DateTime has been deprecated
        DateTime userDate = new DateTime(now.plusDays(3).toDateMidnight());
                                                        ^
/home/march/SimianArmy/src/test/java/com/netflix/simianarmy/aws/janitor/rule/snapshot/TestNoGeneratedAMIRule.java:80: warning: [deprecation] toDateMidnight() in org.joda.time.DateTime has been deprecated
        DateTime userDate = new DateTime(now.plusDays(3).toDateMidnight());
                                                        ^
2 warnings
:compileTestJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileTestJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED



cbennett於 2014年1月7日星期二UTC+8上午1時36分57秒寫道:

Mark McIntyre

unread,
Jan 8, 2014, 1:19:07 PM1/8/14
to simianar...@googlegroups.com
i am also getting a similar error when trying to run the janitor monkey. i made the modification to the build.gradle and still get the error.

---
[ec2-user SimianArmy]$ ./gradlew jettyRun
:compileJava
/home/ec2-user/SimianArmy-old/src/main/java/com/netflix/simianarmy/basic/LocalDbRecorder.java:35: cannot find symbol
symbol  : class Utils
location: package org.mapdb
import org.mapdb.Utils;
                ^
/home/ec2-user/SimianArmy-old/src/main/java/com/netflix/simianarmy/basic/LocalDbRecorder.java:77: cannot find symbol
symbol  : variable Utils
location: class com.netflix.simianarmy.basic.LocalDbRecorder
        dbFile = (dbFilename == null)? Utils.tempDbFile() : new File(dbFilename);
                                       ^
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* 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: 57.39 secs
---

this was the line in build.gradle i changed:

---
    // for DB support outside of AWS (SimpleDB not available)
    //compile 'org.mapdb:mapdb:latest.release'
    compile 'org.mapdb:mapdb:0.9.5'
---

is there another suggestion?

mark

Cory Bennett

unread,
Jan 8, 2014, 4:19:50 PM1/8/14
to simianar...@googlegroups.com
Hi Mark and Hsing,

Marek has provided some patches to the simian army to take care of
both the mapdb and joda errors you were seeing. Please merge in the
latest changes from github to your branch.

Thanks
-Cory

Mark McIntyre

unread,
Jan 13, 2014, 8:27:13 AM1/13/14
to simianar...@googlegroups.com
looks like all is back to normal again. thanks for the patches.

mark

Mark McIntyre

unread,
Jan 13, 2014, 3:08:40 PM1/13/14
to simianar...@googlegroups.com
well, spoke too soon. here's what i am getting now:

[ec2-user SimianArmy]$ ./gradlew build
The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
error: warnings found and -Werror specified
1 error
1 warning
:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* 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: 46.69 secs

Cory Bennett

unread,
Jan 13, 2014, 4:21:36 PM1/13/14
to simianar...@googlegroups.com
Hi Mark,

We just merged in a gradle config change to eliminate the
warning/error, so update and the build should work this time. The
error only happened when you build with java 1.7, but there is no
reason for us to require java 1.6, so we have removed that
requirement.

Thanks,
-Cory
Reply all
Reply to author
Forward
0 new messages