Michael Wu created EAGLE-101: -------------------------------- Summary: cannot compile eagle successfully with jdk1.8 Key: EAGLE-101 URL: https://issues.apache.org/jira/browse/EAGLE-101 Project: Eagle Issue Type: Bug Environment: 1. mac 2. jenkins CI job Reporter: Michael Wu Priority: Trivial
While using jdk1.8 to compile the project, there are constantly errors thrown as following: [INFO] --- maven-scala-plugin:2.15.0:compile (scala-compile-first) @ eagle-stream-process-base --- [INFO] Checking for multiple versions of scala [WARNING] Expected all dependencies to require Scala version: 2.10.0 [WARNING] org.apache.kafka:kafka_2.10:0.8.1.2.2.0.0-2041 requires scala version: 2.10.4 [WARNING] Multiple versions of scala libraries detected! [INFO] includes = [**/*.java,**/*.scala,] [INFO] excludes = [] [INFO] /Users/ziwu/test/incubator-eagle/eagle-core/eagle-data-process/eagle-stream-process-base/src/main/java:-1: info: compiling [INFO] /Users/ziwu/test/incubator-eagle/eagle-core/eagle-data-process/eagle-stream-process-base/src/main/scala:-1: info: compiling [INFO] Compiling 17 source files to /Users/ziwu/test/incubator-eagle/eagle-core/eagle-data-process/eagle-stream-process-base/target/classes at 1451275265312 [ERROR] error: error while loading CharSequence, class file '/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/lib/rt.jar(java/lang/CharSequence.class)' is broken [INFO] (class java.lang.RuntimeException/bad constant pool tag 18 at byte 10) [ERROR] error: error while loading AnnotatedElement, class file '/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/lib/rt.jar(java/lang/reflect/AnnotatedElement.class)' is broken [INFO] (class java.lang.RuntimeException/bad constant pool tag 18 at byte 76) [ERROR] error: error while loading ConcurrentMap, class file '/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/lib/rt.jar(java/util/concurrent/ConcurrentMap.class)' is broken [INFO] (class java.lang.RuntimeException/bad constant pool tag 18 at byte 61) [ERROR] three errors found [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Eagle Parent ................................ SUCCESS [ 0.494 s] [INFO] eagle core ......................................... SUCCESS [ 0.012 s] [INFO] eagle-query-parent ................................. SUCCESS [ 0.099 s] [INFO] eagle-common ....................................... SUCCESS [ 2.992 s] [INFO] eagle-data-process-parent .......................... SUCCESS [ 0.009 s] [INFO] eagle-stream-process-base .......................... FAILURE [ 2.843 s] [INFO] eagle-embed-parent ................................. SKIPPED [INFO] eagle-embed-server ................................. SKIPPED [INFO] eagle-embed-hbase .................................. SKIPPED [INFO] eagle-antlr ........................................ SKIPPED [INFO] eagle-entity-base .................................. SKIPPED [INFO] eagle-client-base .................................. SKIPPED [INFO] eagle-alert-parent ................................. SKIPPED [INFO] eagle-alert-base ................................... SKIPPED [INFO] eagle-metric ....................................... SKIPPED [INFO] eagle-alert-process ................................ SKIPPED [INFO] eagle-stream-process-api ........................... SKIPPED [INFO] eagle-job-common ................................... SKIPPED [INFO] eagle-storm-jobrunning-spout ....................... SKIPPED [INFO] eagle-query-base ................................... SKIPPED [INFO] eagle-storage-base ................................. SKIPPED [INFO] eagle-storage-hbase ................................ SKIPPED [INFO] eagle-service-base ................................. SKIPPED [INFO] eagle-alert-service ................................ SKIPPED [INFO] eagle-storage-jdbc ................................. SKIPPED [INFO] eagle-machinelearning-parent ....................... SKIPPED [INFO] eagle-machinelearning-base ......................... SKIPPED [INFO] eagle-security-parent .............................. SKIPPED [INFO] eagle-security-common .............................. SKIPPED [INFO] eagle-security-hbase-web ........................... SKIPPED [INFO] eagle-security-hive-web ............................ SKIPPED [INFO] eagle-security-hdfs-web ............................ SKIPPED [INFO] eagle-security-userprofile-parent .................. SKIPPED [INFO] eagle-security-userprofile-common .................. SKIPPED [INFO] eagle-webservice ................................... SKIPPED [INFO] eagle-security-hdfs-auditlog ....................... SKIPPED [INFO] eagle-security-userprofile-detection ............... SKIPPED [INFO] eagle-security-userprofile-training ................ SKIPPED [INFO] eagle-security-hive ................................ SKIPPED [INFO] eagle-security-hdfs-securitylog .................... SKIPPED [INFO] eagle-security-hbase-securitylog ................... SKIPPED [INFO] eagle-metric-collection ............................ SKIPPED [INFO] eagle-external-parent .............................. SKIPPED [INFO] eagle-log4jkafka ................................... SKIPPED [INFO] eagle-topology-assembly ............................ SKIPPED [INFO] eagle-assembly ..................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.890 s [INFO] Finished at: 2015-12-28T12:01:07+08:00 [INFO] Final Memory: 40M/705M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.scala-tools:maven-scala-plugin:2.15.0:compile (scala-compile-first) on project eagle-stream-process-base: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1) -> [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 <goals> -rf :eagle-stream-process-base After that, by changing jdk version to 1.7.x, the compilation passes. So, this seems to be a jdk version compatibility bug. -- This message was sent by Atlassian JIRA (v6.3.4#6332)