tests failing in rosjava installation

asked 2013-11-20 10:53:39 -0500

Albatross gravatar image

I'm having lots of issues getting rosjava to run on my machine. I'm using ubuntu 13.04 and ros hydro. Just recently I was able to get the pubsub tutorial working, but I want to make sure my installation is actually correct before going much further.

Here is what I did to install:

git clone <a href="https://github.com/rosjava/rosjava_core">https://github.com/rosjava/rosjava_core</a>
cd rosjava_core
git checkout -b hydro origin/hydro
./gradlew install

This seems to work fine so far, but the tests fail. Is this normal, or is something wrong with my installation?

./gradlew test

Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be removed in Gradle 2.0. Please read <a href="http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html">http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html</a> for information on the replacement for dynamic properties.
Deprecated dynamic property: "mavenRepository" on "org.ros.gradle_plugins.RosPluginExtension_Decorated@486090fa", value: "https://github.com/ros...".
Deprecated dynamic property "mavenRepository" created in multiple locations.
:apache_xmlrpc_common:compileJava UP-TO-DATE
:apache_xmlrpc_common:processResources UP-TO-DATE
:apache_xmlrpc_common:classes UP-TO-DATE
:apache_xmlrpc_common:jar UP-TO-DATE
:apache_xmlrpc_client:compileJava UP-TO-DATE
:apache_xmlrpc_client:processResources UP-TO-DATE
:apache_xmlrpc_client:classes UP-TO-DATE
:apache_xmlrpc_client:compileTestJava UP-TO-DATE
:apache_xmlrpc_client:processTestResources UP-TO-DATE
:apache_xmlrpc_client:testClasses UP-TO-DATE
:apache_xmlrpc_client:test UP-TO-DATE
:apache_xmlrpc_common:compileTestJava UP-TO-DATE
:apache_xmlrpc_common:processTestResources UP-TO-DATE
:apache_xmlrpc_common:testClasses UP-TO-DATE
:apache_xmlrpc_common:test UP-TO-DATE
:apache_xmlrpc_server:compileJava UP-TO-DATE
:apache_xmlrpc_server:processResources UP-TO-DATE
:apache_xmlrpc_server:classes UP-TO-DATE
:apache_xmlrpc_server:compileTestJava UP-TO-DATE
:apache_xmlrpc_server:processTestResources UP-TO-DATE
:apache_xmlrpc_server:testClasses UP-TO-DATE
:apache_xmlrpc_server:test UP-TO-DATE
:message_generation_tests:compileJava UP-TO-DATE
:message_generation_tests:processResources UP-TO-DATE
:message_generation_tests:classes UP-TO-DATE
:message_generation_tests:compileTestJava UP-TO-DATE
:message_generation_tests:processTestResources UP-TO-DATE
:message_generation_tests:testClasses UP-TO-DATE
:message_generation_tests:test

org.ros.internal.message.RawMessageSerializationTest > testBool FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:58

org.ros.internal.message.RawMessageSerializationTest > testInt8 FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:67

org.ros.internal.message.RawMessageSerializationTest > testUint8 FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:74

org.ros.internal.message.RawMessageSerializationTest > testInt16 FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:81

org.ros.internal.message.RawMessageSerializationTest > testUInt16 FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:88

org.ros.internal.message.RawMessageSerializationTest > testInt32 FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:95

org.ros.internal.message.RawMessageSerializationTest > testUInt32 FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:102

org.ros.internal.message.RawMessageSerializationTest > testInt64 FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:109

org.ros.internal.message.RawMessageSerializationTest > testUInt64 FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:116

org.ros.internal.message.RawMessageSerializationTest > testFloat32 FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:123

org.ros.internal.message.RawMessageSerializationTest > testFloat64 FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:130

org.ros.internal.message.RawMessageSerializationTest > testString FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:137

org.ros.internal.message.RawMessageSerializationTest > testTime FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:144

org.ros.internal.message.RawMessageSerializationTest > testDuration FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:151

org.ros.internal.message.RawMessageSerializationTest > testNestedMessage FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:160

org.ros.internal.message.RawMessageSerializationTest > testNestedMessageArray FAILED
    java.util.NoSuchElementException at RawMessageSerializationTest.java:170

org.ros.internal.message.MessageTest ...
(more)
edit retag flag offensive close merge delete

Comments

I am having the same issue here but am not able to run the pubsub tutorial because the std_msgs package is missing. The absence of this package seems to be causing the test failures as well, since they occur in the lines referencing those types. Did you find a fix for this in the meantime?

lrohr gravatar imagelrohr ( 2014-03-12 04:47:32 -0500 )edit

There was alot of movement coming up to hydro. Damon fixed some test related problems in master, but it may not have been backported to hydro. This may be relevant here.

Daniel Stonier gravatar imageDaniel Stonier ( 2014-03-13 16:33:48 -0500 )edit

I'm having the same problem.

Elvish Champion gravatar imageElvish Champion ( 2014-04-19 19:35:59 -0500 )edit

These will probably be resolved with the indigo release which will branch from master again.

Daniel Stonier gravatar imageDaniel Stonier ( 2014-05-15 16:14:12 -0500 )edit