Ask Your Question
3

rosjava test failed to pass

asked 2012-05-18 10:37:09 -0600

ira gravatar image

updated 2012-05-19 11:30:16 -0600

Hi,

I followed the instruction on this page http://docs.rosjava.googlecode.com/hg/rosjava_core/html/index.html tried to install and build rosjava. Everything went well until the test step. I executed the command "./gradlew test" and got the following failing message:

Test org.ros.internal.message.MessageSerializationTest FAILED
131 tests completed, 16 failures

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rosjava:test'.
> There were failing tests. See the report at /home/iratao/my_workspace/rosjava_core/rosjava/build/reports/tests.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Does anyone has an idea about this failure?

edit retag flag offensive close merge delete

Comments

1

same problem here. It seems that the path to /std_msgs/msg/ is not know. At least the report says that 16 messages could not be found.

Markus Eich gravatar image Markus Eich  ( 2012-05-21 01:51:17 -0600 )edit
1

Could you add which tests are failing to your post?

damonkohler gravatar image damonkohler  ( 2012-05-21 06:01:28 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-05-25 05:37:16 -0600

damonkohler gravatar image

I pushed a fix for this yesterday. Please pull and try again.

edit flag offensive delete link more

Comments

Hi Damon. I am still getting two failure cases for DefaultNodeTest.testCreatePublic and NtpTimeProviderTest.testNtpUbuntuCom. for both I am getting java.lang.AssertionError

aknirala gravatar image aknirala  ( 2012-05-25 08:30:32 -0600 )edit

That's expected if you don't have internet access.

damonkohler gravatar image damonkohler  ( 2012-05-26 09:21:05 -0600 )edit

I am also failing on org.ros.time.NtpTimeProviderTest, and I definitely have internet access. Suggestions?

jarvisschultz gravatar image jarvisschultz  ( 2012-05-28 10:43:20 -0600 )edit

It's probably just timing out. It's safe to ignore. The test should be rewritten anyway.

damonkohler gravatar image damonkohler  ( 2012-05-29 07:07:50 -0600 )edit

It seems you are right, everything appears to be working even with this test failure.

jarvisschultz gravatar image jarvisschultz  ( 2012-05-29 10:23:52 -0600 )edit
1

answered 2012-05-21 12:54:03 -0600

azimmerman gravatar image

I'm having very similar problems, these are the failed tests. In each case, the error is a NoSuchElementException, for example "java.util.NoSuchElementException: Resource does not exist: /std_msgs/msg/Bool.msg"

(I'd post this as a comment but I don't have enough points yet to do so)

MessageSerializationTest.testBool
MessageSerializationTest.testDuration
MessageSerializationTest.testFloat32
MessageSerializationTest.testFloat64
MessageSerializationTest.testInt16
MessageSerializationTest.testInt32
MessageSerializationTest.testInt64
MessageSerializationTest.testInt8
MessageSerializationTest.testNestedMessage
MessageSerializationTest.testNestedMessageArray
MessageSerializationTest.testString
MessageSerializationTest.testTime
MessageSerializationTest.testUInt16
MessageSerializationTest.testUInt32
MessageSerializationTest.testUInt64
MessageSerializationTest.testUint8
NtpTimeProviderTest.testSanity
edit flag offensive delete link more

Comments

I also got same cases failed. Could this be realted to latest gradle (and its wrapper), I manually have to modify org.gradle.wrapper.Download.java file so that it accepts the proxy needed for downloading : http://services.gradle.org/distributions/gradle-1.0-milestone-9-bin.zip during./gradle install

aknirala gravatar image aknirala  ( 2012-05-24 12:49:14 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2012-05-18 10:37:09 -0600

Seen: 557 times

Last updated: May 25 '12