Error while installing rosjava

asked 2017-11-06 03:16:12 -0600

stevensu1838 gravatar image

updated 2017-11-07 00:53:21 -0600

gvdhoorn gravatar image

I am on my way to install rosjava and I followed exactly the tutorial in book ROS Projects (URL Link).

I’ve been trying to install it for many times but there are still errors coming out. From your expertise, any idea why it is not working? Thank you so much for your great support.

Here are the commands I tried:

$ sudo apt-get install ros-indigo-rosjava
$ mkdir -p ~/rosjava/src
$ cd ~/rosjava/src
$ wstool init -j4 ~/rosjava/src https://raw.githubusercontent.com/rosjava/rosjava/indigo/rosjava.rosinstall
$ source /opt/ros/indigo/setup.bash
$ cd ~/rosjava
$ rosdep update 
$ rosdep install --from-paths src -i -y
$ catkin_make

And here is the error output:

Downloading https://services.gradle.org/distributions/gradle-2.2.1-all.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 java.util.ArrayList.contains(ArrayList.java:281)
    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:239)
    at sun.security.validator.Validator.validate(Validator.java:260)
    at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)
    at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)
    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1459)
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:213)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:961)
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:897)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1033)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1342)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1369)
    ... 13 more
Caused by: java.security.InvalidKeyException: EC parameters error
    at sun.security.ec.ECParameters.getAlgorithmParameters(ECParameters.java:284)
    at sun.security.ec.ECPublicKeyImpl.<init>(ECPublicKeyImpl.java:59)
    at sun.security.pkcs11.P11Key$P11ECPublicKey.getEncodedInternal(P11Key.java:1021 ...
(more)
edit retag flag offensive close merge delete

Comments

I've already added it, but please include the error directly in your question next time. Without the error message, your question does not make much sense (as we don't know what "errors are still coming out').

gvdhoorn gravatar image gvdhoorn  ( 2017-11-07 00:52:42 -0600 )edit

As we're seeing SSL errors: are you behind a proxy that is doing some kind of MitM?

gvdhoorn gravatar image gvdhoorn  ( 2017-11-07 00:58:58 -0600 )edit

Hi, Thank you so much for adding the error. May I please ask how do you mean by saying behind a proxy that is doing some kind of MitM? I am so sorry that I am a beginner of ROS and Linux. Thanks a lot.

stevensu1838 gravatar image stevensu1838  ( 2017-11-08 01:50:46 -0600 )edit

Are you in a university or a company that requires you to use a HTTP/HTTPS proxy server? If so, it may be interfering with your network traffic in a way that makes the download fail.

It's just one option though, so may not be the cause here.

gvdhoorn gravatar image gvdhoorn  ( 2017-11-08 03:20:56 -0600 )edit