real-logic / simple-binary-encoding

Simple Binary Encoding (SBE) - High Performance Message Codec
Apache License 2.0
3.11k stars 521 forks source link

Java Build Failed #127

Closed structurechart closed 10 years ago

structurechart commented 10 years ago

[hchan@localhost simple-binary-encoding]$ ant -lib ./test/lib/ Buildfile: build.xml

clean:

init: [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/main/java/classes [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/test/java/classes [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/dist [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/docs/java [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/docs/cpp [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/reports [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/reports/unit [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/reports/checkstyle [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/main/cpp/obj [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/test/cpp/gtest/obj

checkstyle: [checkstyle] Running Checkstyle 5.6 on 65 files [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/PrimitiveType.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/PrimitiveValue.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/SbeTool.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/codec/java/CodecUtil.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/codec/java/DirectBuffer.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/codec/java/JavaUtil.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/generation/CodeGenerator.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/generation/OutputManager.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/generation/TargetCodeGenerator.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/generation/cpp98/Cpp98Generator.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token

I am using Ant 1.7.1 if it matters.

mjpt777 commented 10 years ago

Builds fine with Ant 1.9.3. You really need to upgrade! :-)

You also need to be build with Java 7 or greater.

structurechart commented 10 years ago

I am using Java 7.

I will try Ant 1.9.3. Thanks.

structurechart commented 10 years ago

Same thing: [hchan@localhost simple-binary-encoding]$ /home/hchan/apache-ant-1.9.3/bin/ant -lib ./test/lib/ Buildfile: build.xml

clean: [delete] Deleting directory /home/hchan/git/simple-binary-encoding/target

init: [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/main/java/classes [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/test/java/classes [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/dist [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/docs/java [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/docs/cpp [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/reports [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/reports/unit [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/reports/checkstyle [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/main/cpp/obj [mkdir] Created dir: /home/hchan/git/simple-binary-encoding/target/test/cpp/gtest/obj

checkstyle: [checkstyle] Running Checkstyle 5.6 on 65 files [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/PrimitiveType.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/PrimitiveValue.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/SbeTool.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/codec/java/CodecUtil.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/codec/java/DirectBuffer.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token [checkstyle] /home/hchan/git/simple-binary-encoding/main/java/uk/co/real_logic/sbe/codec/java/JavaUtil.java:0: Got an exception - java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token

structurechart commented 10 years ago

nevermind. setting ANT_HOME to ant 1.9.3 folder solves the issue. thanks!