Hi,
We are trying to install crux. I have just tried to build the crux using apache-ant-1.9.4. But the same is failing, see below the error message.
[root@localhost crux-HBase0.20.3]# /var/tmp/apache-ant-1.9.4/bin/ant test
Buildfile: /var/tmp/crux-HBase0.20.3/build.xml
clean:
[delete] Deleting directory /var/tmp/crux-HBase0.20.3/build
compile_src:
[mkdir] Created dir: /var/tmp/crux-HBase0.20.3/build/WEB-INF/classes
[javac] /var/tmp/crux-HBase0.20.3/build.xml:39: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 95 source files to /var/tmp/crux-HBase0.20.3/build/WEB-INF/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'fieldName()' in type 'TOJSON': class file for agilejson.TOJSON not found
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'base64()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'prefixLength()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'prefixLength()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'prefixLength()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HTableDescriptor.class): warning: Cannot find annotation method 'fieldName()' in type 'TOJSON'
[javac] Note: /var/tmp/crux-HBase0.20.3/src/co/nubetech/crux/common/functions/DateFunction.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 7 warnings
compile_test:
[javac] /var/tmp/crux-HBase0.20.3/build.xml:98: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 62 source files to /var/tmp/crux-HBase0.20.3/build/WEB-INF/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'fieldName()' in type 'TOJSON': class file for agilejson.TOJSON not found
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'base64()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'prefixLength()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'prefixLength()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'prefixLength()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HTableDescriptor.class): warning: Cannot find annotation method 'fieldName()' in type 'TOJSON'
[javac] 7 warnings
build:
[copy] Copying 3572 files to /var/tmp/crux-HBase0.20.3/build
[copy] Copying 5 files to /var/tmp/crux-HBase0.20.3/build/WEB-INF/classes
test:
[junit] Testsuite: co.nubetech.crux.action.TestSaveReportAction
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.181 sec
[junit]
[junit] Testcase: testGetLengthWhenLengthZero took 0.141 sec
[junit] Testcase: testGetLengthWhenLengthNull took 0 sec
[junit] Testcase: testGetLength took 0.001 sec
[junit] Testcase: testGetOffset took 0.025 sec
[junit] Testsuite: co.nubetech.crux.common.functions.TestCeil
[junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.126 sec
[junit]
[junit] Testcase: testExecuteWithNullValue took 0.11 sec
[junit] Testcase: testExecuteWithCorrectValues took 0 sec
[junit] Testcase: testExecuteWithInCorrectType took 0 sec
[junit] Testsuite: co.nubetech.crux.common.functions.TestConversion
[junit] Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.142 sec
[junit] ------------- Standard Output ---------------
[junit] 2014-11-04 18:08:55,746 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@3d16e9d8
[junit] 2014-11-04 18:08:55,750 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.Float}
[junit] 2014-11-04 18:08:55,753 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@3895c737
[junit] 2014-11-04 18:08:55,753 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.Double}
[junit] 2014-11-04 18:08:55,754 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@338e6e25
[junit] 2014-11-04 18:08:55,754 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.Double}
[junit] 2014-11-04 18:08:55,758 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@726b4082
[junit] 2014-11-04 18:08:55,759 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.String}
[junit] 2014-11-04 18:08:55,759 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@437ec256
[junit] 2014-11-04 18:08:55,760 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.Integer}
[junit] 2014-11-04 18:08:55,761 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@1f213e42
[junit] 2014-11-04 18:08:55,761 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.Boolean}
[junit] 2014-11-04 18:08:55,761 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@5aad1d4
[junit] 2014-11-04 18:08:55,761 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.Long}
[junit] ------------- ---------------- ---------------
[junit]
[junit] Testcase: testExecuteWithFloatValues took 0.116 sec
[junit] Testcase: testExecuteWithDoubleValues took 0 sec
[junit] Testcase: testExecuteWithWrongValues took 0.003 sec
[junit] Caused an ERROR
[junit] Unexpected exception, expected<co.nubetech.crux.util.CruxException> but was<java.lang.AssertionError>
[junit] java.lang.Exception: Unexpected exception, expected<co.nubetech.crux.util.CruxException> but was<java.lang.AssertionError>
[junit] Caused by: java.lang.AssertionError: expected:<12.8> but was:
[junit] at co.nubetech.crux.common.functions.TestConversion.testExecuteWithWrongValues(TestConversion.java:88)
[junit]
[junit] Testcase: testExecuteWithStringValues took 0.001 sec
[junit] Testcase: testExecuteWithIntValues took 0.001 sec
[junit] Testcase: testExecuteWithBooleanValues took 0 sec
[junit] Testcase: testExecuteWithLongValues took 0 sec
BUILD FAILED
/var/tmp/crux-HBase0.20.3/build.xml:111: Test co.nubetech.crux.common.functions.TestConversion failed
Please see the last line that the build failed. Kindly provide us some answers on how to resovle the issue.
Thanks
Ratnajit
Hi,
We are trying to install crux. I have just tried to build the crux using apache-ant-1.9.4. But the same is failing, see below the error message.
[root@localhost crux-HBase0.20.3]# /var/tmp/apache-ant-1.9.4/bin/ant test
Buildfile: /var/tmp/crux-HBase0.20.3/build.xml
clean:
[delete] Deleting directory /var/tmp/crux-HBase0.20.3/build
compile_src:
[mkdir] Created dir: /var/tmp/crux-HBase0.20.3/build/WEB-INF/classes
[javac] /var/tmp/crux-HBase0.20.3/build.xml:39: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 95 source files to /var/tmp/crux-HBase0.20.3/build/WEB-INF/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'fieldName()' in type 'TOJSON': class file for agilejson.TOJSON not found
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'base64()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'prefixLength()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'prefixLength()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'prefixLength()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HTableDescriptor.class): warning: Cannot find annotation method 'fieldName()' in type 'TOJSON'
[javac] Note: /var/tmp/crux-HBase0.20.3/src/co/nubetech/crux/common/functions/DateFunction.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 7 warnings
compile_test:
[javac] /var/tmp/crux-HBase0.20.3/build.xml:98: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 62 source files to /var/tmp/crux-HBase0.20.3/build/WEB-INF/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'fieldName()' in type 'TOJSON': class file for agilejson.TOJSON not found
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'base64()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'prefixLength()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'prefixLength()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HColumnDescriptor.class): warning: Cannot find annotation method 'prefixLength()' in type 'TOJSON'
[javac] /var/tmp/crux-HBase0.20.3/WebContent/WEB-INF/lib/hbase-0.20.3.jar(org/apache/hadoop/hbase/HTableDescriptor.class): warning: Cannot find annotation method 'fieldName()' in type 'TOJSON'
[javac] 7 warnings
build:
[copy] Copying 3572 files to /var/tmp/crux-HBase0.20.3/build
[copy] Copying 5 files to /var/tmp/crux-HBase0.20.3/build/WEB-INF/classes
test:
[junit] Testsuite: co.nubetech.crux.action.TestSaveReportAction
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.181 sec
[junit]
[junit] Testcase: testGetLengthWhenLengthZero took 0.141 sec
[junit] Testcase: testGetLengthWhenLengthNull took 0 sec
[junit] Testcase: testGetLength took 0.001 sec
[junit] Testcase: testGetOffset took 0.025 sec
[junit] Testsuite: co.nubetech.crux.common.functions.TestCeil
[junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.126 sec
[junit]
[junit] Testcase: testExecuteWithNullValue took 0.11 sec
[junit] Testcase: testExecuteWithCorrectValues took 0 sec
[junit] Testcase: testExecuteWithInCorrectType took 0 sec
[junit] Testsuite: co.nubetech.crux.common.functions.TestConversion
[junit] Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.142 sec
[junit] ------------- Standard Output ---------------
[junit] 2014-11-04 18:08:55,746 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@3d16e9d8
[junit] 2014-11-04 18:08:55,750 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.Float}
[junit] 2014-11-04 18:08:55,753 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@3895c737
[junit] 2014-11-04 18:08:55,753 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.Double}
[junit] 2014-11-04 18:08:55,754 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@338e6e25
[junit] 2014-11-04 18:08:55,754 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.Double}
[junit] 2014-11-04 18:08:55,758 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@726b4082
[junit] 2014-11-04 18:08:55,759 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.String}
[junit] 2014-11-04 18:08:55,759 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@437ec256
[junit] 2014-11-04 18:08:55,760 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.Integer}
[junit] 2014-11-04 18:08:55,761 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@1f213e42
[junit] 2014-11-04 18:08:55,761 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.Boolean}
[junit] 2014-11-04 18:08:55,761 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@5aad1d4
[junit] 2014-11-04 18:08:55,761 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {class.name=java.lang.Long}
[junit] ------------- ---------------- ---------------
[junit]
[junit] Testcase: testExecuteWithFloatValues took 0.116 sec
[junit] Testcase: testExecuteWithDoubleValues took 0 sec
[junit] Testcase: testExecuteWithWrongValues took 0.003 sec
[junit] Caused an ERROR
[junit] Unexpected exception, expected<co.nubetech.crux.util.CruxException> but was<java.lang.AssertionError>
[junit] java.lang.Exception: Unexpected exception, expected<co.nubetech.crux.util.CruxException> but was<java.lang.AssertionError>
[junit] Caused by: java.lang.AssertionError: expected:<12.8> but was:
[junit] at co.nubetech.crux.common.functions.TestConversion.testExecuteWithWrongValues(TestConversion.java:88)
[junit]
[junit] Testcase: testExecuteWithStringValues took 0.001 sec
[junit] Testcase: testExecuteWithIntValues took 0.001 sec
[junit] Testcase: testExecuteWithBooleanValues took 0 sec
[junit] Testcase: testExecuteWithLongValues took 0 sec
BUILD FAILED
/var/tmp/crux-HBase0.20.3/build.xml:111: Test co.nubetech.crux.common.functions.TestConversion failed
Please see the last line that the build failed. Kindly provide us some answers on how to resovle the issue.
Thanks
Ratnajit