Open Ratnajitd opened 10 years ago
I think you can skipTests and try to run the build again.
Best Regards, Sonal Nube Technologies http://www.nubetech.co
http://in.linkedin.com/in/sonalgoyal
On Tue, Nov 4, 2014 at 6:33 PM, Ratnajitd notifications@github.com wrote:
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@3d16e9d https://github.com/B/crux/commit/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@3895c73 https://github.com/B/crux/commit/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@338e6e2 https://github.com/B/crux/commit/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@726b408 https://github.com/B/crux/commit/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@437ec25 https://github.com/B/crux/commit/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@1f213e4 https://github.com/B/crux/commit/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 https://github.com/B/crux/commit/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 but was [junit] java.lang.Exception: Unexpected exception, expected but was [junit] Caused by: java.lang.AssertionError: expected: 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
— Reply to this email directly or view it on GitHub https://github.com/sonalgoyal/crux/issues/33.
Hi
When I ran the skip test, I got the same error see below,
[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.156 sec
[junit]
[junit] Testcase: testGetOffset took 0.137 sec
[junit] Testcase: testGetLength took 0 sec
[junit] Testcase: testGetLengthWhenLengthZero took 0 sec
[junit] Testcase: testGetLengthWhenLengthNull took 0.001 sec
[junit] Testsuite: co.nubetech.crux.common.functions.TestCeil
[junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
0.131 sec
[junit]
[junit] Testcase: testExecuteWithCorrectValues took 0.114 sec
[junit] Testcase: testExecuteWithInCorrectType took 0 sec
[junit] Testcase: testExecuteWithNullValue took 0 sec
[junit] Testsuite: co.nubetech.crux.common.functions.TestConversion
[junit] Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
0.138 sec
[junit] ------------- Standard Output ---------------
[junit] 2014-11-07 16:08:06,568 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert:
[B@75d8ac9d
[junit] 2014-11-07 16:08:06,572 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {
class.name=java.lang.Integer}
[junit] 2014-11-07 16:08:06,575 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert:
[B@331ae2ce
[junit] 2014-11-07 16:08:06,575 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {
class.name=java.lang.Boolean}
[junit] 2014-11-07 16:08:06,576 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert:
[B@85deafc
[junit] 2014-11-07 16:08:06,576 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {
class.name=java.lang.Float}
[junit] 2014-11-07 16:08:06,577 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert:
[B@57690d7a
[junit] 2014-11-07 16:08:06,577 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {
class.name=java.lang.Double}
[junit] 2014-11-07 16:08:06,577 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert:
[B@66ec16c
[junit] 2014-11-07 16:08:06,578 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {
class.name=java.lang.Double}
[junit] 2014-11-07 16:08:06,581 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert:
[B@5f0101fb
[junit] 2014-11-07 16:08:06,581 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {
class.name=java.lang.String}
[junit] 2014-11-07 16:08:06,582 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert:
[B@eb6dcf9
[junit] 2014-11-07 16:08:06,582 DEBUG
co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: {
class.name=java.lang.Long}
[junit] ------------- ---------------- ---------------
[junit]
[junit] Testcase: testExecuteWithIntValues took 0.116 sec
[junit] Testcase: testExecuteWithBooleanValues took 0.001 sec
[junit] Testcase: testExecuteWithFloatValues took 0 sec
[junit] Testcase: testExecuteWithDoubleValues took 0 sec
[junit] Testcase: testExecuteWithWrongValues took 0.003 sec
[junit] Caused an ERROR
[junit] Unexpected exception,
expected
How is it possible to skip the test and run the build? Kindly help
Thanks Ratnajit
On Wed, Nov 5, 2014 at 11:01 AM, Sonal notifications@github.com wrote:
I think you can skipTests and try to run the build again.
Best Regards, Sonal Nube Technologies http://www.nubetech.co
http://in.linkedin.com/in/sonalgoyal
On Tue, Nov 4, 2014 at 6:33 PM, Ratnajitd notifications@github.com wrote:
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@3d16e9d https://github.com/B/crux/commit/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@3895c73 https://github.com/B/crux/commit/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@338e6e2 https://github.com/B/crux/commit/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@726b408 https://github.com/B/crux/commit/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@437ec25 https://github.com/B/crux/commit/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@1f213e4 https://github.com/B/crux/commit/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 https://github.com/B/crux/commit/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 but was [junit] java.lang.Exception: Unexpected exception, expected but was [junit] Caused by: java.lang.AssertionError: expected: 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
— Reply to this email directly or view it on GitHub https://github.com/sonalgoyal/crux/issues/33.
— Reply to this email directly or view it on GitHub https://github.com/sonalgoyal/crux/issues/33#issuecomment-61761955.
It is still running junits which are failing.
Mvn -DskipTests=true compile should work.
I am sorry we are not supporting crux actively right now.
On Friday, November 7, 2014, Ratnajitd notifications@github.com wrote:
Hi
When I ran the skip test, I got the same error see below,
[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.156 sec [junit] [junit] Testcase: testGetOffset took 0.137 sec [junit] Testcase: testGetLength took 0 sec [junit] Testcase: testGetLengthWhenLengthZero took 0 sec [junit] Testcase: testGetLengthWhenLengthNull took 0.001 sec [junit] Testsuite: co.nubetech.crux.common.functions.TestCeil [junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.131 sec [junit] [junit] Testcase: testExecuteWithCorrectValues took 0.114 sec [junit] Testcase: testExecuteWithInCorrectType took 0 sec [junit] Testcase: testExecuteWithNullValue took 0 sec [junit] Testsuite: co.nubetech.crux.common.functions.TestConversion [junit] Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.138 sec [junit] ------------- Standard Output --------------- [junit] 2014-11-07 16:08:06,568 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@75d8ac9d [junit] 2014-11-07 16:08:06,572 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: { class.name=java.lang.Integer} [junit] 2014-11-07 16:08:06,575 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@331ae2ce [junit] 2014-11-07 16:08:06,575 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: { class.name=java.lang.Boolean} [junit] 2014-11-07 16:08:06,576 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@85deafc [junit] 2014-11-07 16:08:06,576 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: { class.name=java.lang.Float} [junit] 2014-11-07 16:08:06,577 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@57690d7a [junit] 2014-11-07 16:08:06,577 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: { class.name=java.lang.Double} [junit] 2014-11-07 16:08:06,577 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@66ec16c [junit] 2014-11-07 16:08:06,578 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: { class.name=java.lang.Double} [junit] 2014-11-07 16:08:06,581 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@5f0101fb [junit] 2014-11-07 16:08:06,581 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: { class.name=java.lang.String} [junit] 2014-11-07 16:08:06,582 DEBUG co.nubetech.crux.common.functions.Conversion.execute:41 - Value to convert: [B@eb6dcf9 [junit] 2014-11-07 16:08:06,582 DEBUG co.nubetech.crux.common.functions.Conversion.execute:42 - Properties: { class.name=java.lang.Long} [junit] ------------- ---------------- --------------- [junit] [junit] Testcase: testExecuteWithIntValues took 0.116 sec [junit] Testcase: testExecuteWithBooleanValues took 0.001 sec [junit] Testcase: testExecuteWithFloatValues took 0 sec [junit] Testcase: testExecuteWithDoubleValues took 0 sec [junit] Testcase: testExecuteWithWrongValues took 0.003 sec [junit] Caused an ERROR [junit] Unexpected exception, expected
but was [junit] java.lang.Exception: Unexpected exception, expected but was [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 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 Total time: 13 seconds
How is it possible to skip the test and run the build? Kindly help
Thanks Ratnajit
On Wed, Nov 5, 2014 at 11:01 AM, Sonal <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:
I think you can skipTests and try to run the build again.
Best Regards, Sonal Nube Technologies http://www.nubetech.co
http://in.linkedin.com/in/sonalgoyal
On Tue, Nov 4, 2014 at 6:33 PM, Ratnajitd <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:
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@3d16e9d https://github.com/B/crux/commit/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@3895c73 https://github.com/B/crux/commit/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@338e6e2 https://github.com/B/crux/commit/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@726b408 https://github.com/B/crux/commit/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@437ec25 https://github.com/B/crux/commit/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@1f213e4 https://github.com/B/crux/commit/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 https://github.com/B/crux/commit/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 but was [junit] java.lang.Exception: Unexpected exception, expected but was [junit] Caused by: java.lang.AssertionError: expected: 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
— Reply to this email directly or view it on GitHub https://github.com/sonalgoyal/crux/issues/33.
— Reply to this email directly or view it on GitHub https://github.com/sonalgoyal/crux/issues/33#issuecomment-61761955.
— Reply to this email directly or view it on GitHub https://github.com/sonalgoyal/crux/issues/33#issuecomment-62125569.
Best Regards, Sonal Nube Technologies http://www.nubetech.co
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 but was
[junit] java.lang.Exception: Unexpected exception, expected but was
[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