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

How to fix "Invoking "make -j2 -l2"failed" creating rosjava packages (catkin style) in ros indigo?

asked 2017-06-05 13:01:49 -0500

eduardo_lasca gravatar image

Hello, i'm trying to work with rosjava in ros indigo. I'm following some tutorials to learn how rosjava works, specially with Eclipse like in "Robot Operating System - The Complete Reference - Volume 1" book (page 478). When i tried to create a rosjava package like in the book i had some error. Than i tried to follow this tutorial: http://wiki.ros.org/rosjava_build_too...

and i had exactly this message in the terminal when execute "catkin_make" after created a ROSJAVA project (catkin_create_rosjava_project rosjava_gradle_subproject_a step)

Base path: /home/robo/ws_rosjava
Source space: /home/robo/ws_rosjava/src
Build space: /home/robo/ws_rosjava/build
Devel space: /home/robo/ws_rosjava/devel
Install space: /home/robo/ws_rosjava/install
####
#### Running command: "make cmake_check_build_system" in "/home/robo/ws_rosjava/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/robo/ws_rosjava/devel
-- Using CMAKE_PREFIX_PATH: /home/robo/ws_rosjava/devel;/home/robo/rosjava/devel;/opt/ros/indigo
-- This workspace overlays: /home/robo/ws_rosjava/devel;/home/robo/rosjava/devel;/opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/robo/ws_rosjava/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.19
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 2 packages in topological order:
-- ~~  - rosjava_catkin_package_a
-- ~~  - rosjava_catkin_package_b
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'rosjava_catkin_package_a'
-- ==> add_subdirectory(rosjava_catkin_package_a)
-- +++ processing catkin package: 'rosjava_catkin_package_b'
-- ==> add_subdirectory(rosjava_catkin_package_b)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/robo/ws_rosjava/build
####
#### Running command: "make -j2 -l2" in "/home/robo/ws_rosjava/build"
####
Scanning dependencies of target gradle-rosjava_catkin_package_a
[100%] Gradling tasks for rosjava_catkin_package_a
Downloading https://services.gradle.org/distributions/gradle-2.2.1-bin.zip

Exception in thread "main" javax.net.ssl.SSLException: java.security.ProviderException: java.security.InvalidKeyException: EC parameters error
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1914)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1872)
    at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1855)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1376)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1353)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1348)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
    at org.gradle.wrapper.Download.downloadInternal(Download.java:56)
    at org.gradle.wrapper.Download.download(Download.java:42)
    at org.gradle.wrapper.Install$1.call(Install.java:57)
    at org.gradle.wrapper.Install$1.call(Install.java:44)
    at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
    at org.gradle.wrapper.Install.createDist(Install.java:44)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56)
Caused by: java.security.ProviderException: java.security.InvalidKeyException: EC parameters error
    at sun.security.pkcs11.P11Key$P11ECPublicKey.getEncodedInternal(P11Key.java:1024)
    at sun.security.pkcs11.P11Key.equals(P11Key.java:158)
    at java.util.ArrayList.indexOf(ArrayList.java:298)
    at ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-06-17 03:02:16 -0500

rhnbmpl gravatar image

Install oracle Java 8, it worked for me then.

edit flag offensive delete link more

Comments

@rhnbmpl hey, I am wordering which version of Ubuntu are you using? I got the same error

hulkbv gravatar image hulkbv  ( 2017-06-28 05:55:20 -0500 )edit
1

I'm using Ubuntu 14.04.1

rhnbmpl gravatar image rhnbmpl  ( 2017-06-28 05:57:26 -0500 )edit

@rhnbmpl Thanks a lot for quick reply. But is there any conflict between Ubuntu 14.04 and jdk 8 since then. Do you remember the way to install it? I install like this link but it still shows the same error. [ https://gist.github.com/ardyantoherma... ]

hulkbv gravatar image hulkbv  ( 2017-06-28 06:30:24 -0500 )edit
1

Install oracle-jdk8 not openjdk8. Here is the link to install it. There has been no conflict till now.

rhnbmpl gravatar image rhnbmpl  ( 2017-06-28 06:40:21 -0500 )edit

@rhnbmpl installing oracle-jdk8 definitely solves the above error. But I still struggle to build the android package. Do you have any tips how to build it? Here is the link I've followed

hulkbv gravatar image hulkbv  ( 2017-06-28 09:16:00 -0500 )edit

I recommend first installing the ros environment. After making android core and android interactions, you can open those projects in android studio and make your project on top of those.

rhnbmpl gravatar image rhnbmpl  ( 2017-06-28 22:57:30 -0500 )edit

thanks a lot, @rhnbmpl

hulkbv gravatar image hulkbv  ( 2017-06-29 05:34:26 -0500 )edit

Hey @rhnbmpl, I have another error when add a new project into the android_core. It shows:

~/android_core/src/android_core/docs/build.gradle' line: 24

Could not find property 'compile' on configuration container.

Have you got this error before? Do you know how to fix it? Cheers,

hulkbv gravatar image hulkbv  ( 2017-07-01 04:37:26 -0500 )edit

Question Tools

3 followers

Stats

Asked: 2017-06-05 12:59:22 -0500

Seen: 1,052 times

Last updated: Jun 05 '17