avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo Arguello (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AVRO-1489) Avro fails to build with OpenJDK 8
Date Sun, 30 Mar 2014 14:45:15 GMT
Ricardo Arguello created AVRO-1489:
--------------------------------------

             Summary: Avro fails to build with OpenJDK 8
                 Key: AVRO-1489
                 URL: https://issues.apache.org/jira/browse/AVRO-1489
             Project: Avro
          Issue Type: Bug
          Components: build, java
    Affects Versions: 1.7.6
         Environment: OS: Linux
Distro: Fedora release 21 (Rawhide)

$ rpm -q java-1.8.0-openjdk-devel
java-1.8.0-openjdk-devel-1.8.0.0-1.0.b132.fc21.x86_64

$ java -version
openjdk version "1.8.0"
OpenJDK Runtime Environment (build 1.8.0-b132)
OpenJDK 64-Bit Server VM (build 25.0-b70, mixed mode)
            Reporter: Ricardo Arguello
            Priority: Blocker


Avro 1.7.6 fails to build with OpenJDK 1.8:

----------------------------------
$ mvn clean install
...
[INFO] 
[INFO] --- maven-bundle-plugin:2.1.0:bundle (default-bundle) @ avro-protobuf ---
[INFO] Expanding: /var/tmp/avro-svn/avro-1.7.6/lang/java/protobuf/target/avro-protobuf-1.7.6.jar
into /var/tmp/avro-svn/avro-1.7.6/lang/java/protobuf/target/classes
[INFO] 
[INFO] --- maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @ avro-protobuf ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ avro-protobuf ---
[INFO] Installing /var/tmp/avro-svn/avro-1.7.6/lang/java/protobuf/target/avro-protobuf-1.7.6.jar
to /home/ricardo/.m2/repository/org/apache/avro/avro-protobuf/1.7.6/avro-protobuf-1.7.6.jar
[INFO] Installing /var/tmp/avro-svn/avro-1.7.6/lang/java/protobuf/pom.xml to /home/ricardo/.m2/repository/org/apache/avro/avro-protobuf/1.7.6/avro-protobuf-1.7.6.pom
[INFO] 
[INFO] --- maven-bundle-plugin:2.1.0:install (default-install) @ avro-protobuf ---
[INFO] Installing org/apache/avro/avro-protobuf/1.7.6/avro-protobuf-1.7.6.jar
[INFO] Writing OBR metadata
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Avro Thrift Compatibility 1.7.6
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ avro-thrift ---
[INFO] Deleting /var/tmp/avro-svn/avro-1.7.6/lang/java/thrift/target
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ avro-thrift ---
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ avro-thrift ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/tmp/avro-svn/avro-1.7.6/lang/java/thrift/src/main/resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ avro-thrift ---
[INFO] Compiling 3 source files to /var/tmp/avro-svn/avro-1.7.6/lang/java/thrift/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /var/tmp/avro-svn/avro-1.7.6/lang/java/thrift/src/main/java/org/apache/avro/thrift/ThriftData.java:[105,72]
error: incompatible types: Object cannot be converted to TFieldIdEnum
[ERROR] /var/tmp/avro-svn/avro-1.7.6/lang/java/thrift/src/main/java/org/apache/avro/thrift/ThriftData.java:[174,61]
error: incompatible types: Object cannot be converted to FieldMetaData
[INFO] 2 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Avro Toplevel .............................. SUCCESS [  0.988 s]
[INFO] Apache Avro Java .................................. SUCCESS [  1.772 s]
[INFO] Apache Avro ....................................... SUCCESS [01:21 min]
[INFO] Apache Avro Compiler .............................. SUCCESS [  4.703 s]
[INFO] Apache Avro Maven Plugin .......................... SUCCESS [  5.151 s]
[INFO] Apache Avro IPC ................................... SUCCESS [01:10 min]
[INFO] Trevni Java ....................................... SUCCESS [  0.275 s]
[INFO] Trevni Java Core .................................. SUCCESS [  5.313 s]
[INFO] Apache Avro Mapred API ............................ SUCCESS [03:48 min]
[INFO] Trevni Java Avro .................................. SUCCESS [ 37.286 s]
[INFO] Trevni Specification .............................. SUCCESS [  0.502 s]
[INFO] Apache Avro Tools ................................. SUCCESS [ 16.186 s]
[INFO] Apache Avro Protobuf Compatibility ................ SUCCESS [  2.736 s]
[INFO] Apache Avro Thrift Compatibility .................. FAILURE [  0.536 s]
[INFO] Apache Avro Maven Archetypes ...................... SKIPPED
[INFO] Apache Avro Maven Service Archetype ............... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:36 min
[INFO] Finished at: 2014-03-30T14:39:48+00:00
[INFO] Final Memory: 129M/305M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project avro-thrift: Compilation failure: Compilation failure:
[ERROR] /var/tmp/avro-svn/avro-1.7.6/lang/java/thrift/src/main/java/org/apache/avro/thrift/ThriftData.java:[105,72]
error: incompatible types: Object cannot be converted to TFieldIdEnum
[ERROR] /var/tmp/avro-svn/avro-1.7.6/lang/java/thrift/src/main/java/org/apache/avro/thrift/ThriftData.java:[174,61]
error: incompatible types: Object cannot be converted to FieldMetaData
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :avro-thrift
----------------------------------



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message