ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
5

Building rosjava fails at task ':apache_xmlrpc_common:compileJava'

asked 2012-04-14 03:14:13 -0600

andreasw gravatar image

updated 2012-04-14 03:15:16 -0600

Hi,

I'm currently setting up an Ubuntu 11.10 with ROS Electric to use rosjava. The build tools are ant 1.8, maven 2.2 and rosws.

Installing rosjava as described link:here unfortunately fails at building the task ':apache_xmlrpc_common:compileJava' with error message:

Building > :apache_xmlrpc_common:compileJava > Resolving dependencies ':apache:apache_xmlrpc_common:compileJava FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':apache_xmlrpc_common:compileJava'. java.lang.NullPointerException (no error message)

I've got no clue how to fix this; is there anything I missed?

Thanks in advance!

Best regards, Andreas

edit retag flag offensive close merge delete

8 Answers

Sort by ยป oldest newest most voted
2

answered 2012-04-16 07:48:50 -0600

bblodget gravatar image

If you are using "openjdk-7-jdk" try reverting back to "openjdk-6-jdk". This resolved the issue for me.

edit flag offensive delete link more

Comments

Removing openjdk-7 didn't work for me. Instead @SergioGutierrez's solution worked with this version of rosandroid

130s gravatar image 130s  ( 2013-03-11 14:25:19 -0600 )edit
6

answered 2012-05-08 02:24:43 -0600

SergioGutierrez gravatar image

Hello again,

Problem solved, it had nothing to do with the build.gradle file, I was using the jre installed from ubuntu software center "OpenJDK Java 7 Runtime", the problem was gone when I installed gradle from apt "sudo apt-get install gradle", wich installs also the necessary java software like javac, after installing I only had to add at the end of the etc/bash.bashrc the JAVA_HOME to "JAVA_HOME=/usr/lib/jvm/default-java", export the variable with "export JAVA_HOME", the PATH to "PATH=$PATH:$JAVA_HOME/bin", export the variable PATH "export PATH", and then all worked nicely.

Best regards.

edit flag offensive delete link more
0

answered 2012-07-10 11:49:21 -0600

andreasw gravatar image

updated 2012-07-10 11:49:49 -0600

I just had the same problem again on Ubuntu 11.04 with pre-installed openjdk-6-jdk.

After installing SUN's Java 6 as described here install perfromed flawlessly, but 2 of 121 tests failed.

I don't know if this will pose any problems.

edit flag offensive delete link more
0

answered 2012-05-07 04:42:27 -0600

SergioGutierrez gravatar image

Hello everyone,

I have exactly the same error when building rosjava_core, but changing the jdk didn't work out for me, this is my first contact with rosjava and in order to fix it I'm wondering if it has something to do with gradle dependencies more exactly with apache_xmlrpc_common build.gradle.

I would appreciate any help.

Thank you in advance.

Sergio.

edit flag offensive delete link more
0

answered 2012-06-28 05:04:11 -0600

kpayson gravatar image

I too received the same error. I reverted to openjdk-6-jdk as we as resetting my PATH and JAVA_HOME environment variables with no results. Again, the error i received was

Building > :apache_xmlrpc_common:compileJava > Resolving dependencies ':apache:apache_xmlrpc_common:compileJava

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':apache_xmlrpc_common:compileJava'. > java.lang.NullPointerException (no error message)
edit flag offensive delete link more
0

answered 2012-04-16 21:57:45 -0600

andreasw gravatar image

Thank you very much!

edit flag offensive delete link more
0

answered 2012-06-28 05:05:42 -0600

kpayson gravatar image

I am using fuerte on Ubuntu 12.04 32 bit.

I too received the same error. I reverted to openjdk-6-jdk as we as resetting my PATH and JAVA_HOME environment variables with no results. Again, the error i received was

Building > :apache_xmlrpc_common:compileJava > Resolving dependencies ':apache:apache_xmlrpc_common:compileJava

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':apache_xmlrpc_common:compileJava'. > java.lang.NullPointerException (no error message)
edit flag offensive delete link more
0

answered 2012-06-13 06:20:17 -0600

Kristiyan Georgiev gravatar image

I have exactly the same error when building rosjava_core, but changing the jdk or getting the gradle, didn't work out for me.

Thank you in advance.

Kris

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-04-14 03:14:13 -0600

Seen: 1,359 times

Last updated: Jul 10 '12