Robotics StackExchange | Archived questions

problem creating rosjava packages using catkin_create_rosjava_pkg on indigo

Following the tutorial in the link below, to create a rosjava package in catkin style:

http://wiki.ros.org/rosjava_build_tools/Tutorials/indigo/Creating%20Rosjava%20Packages

After entering catkin_create_rosjava_pkg,

then it shows:

Downloading http://services.gradle.org/distributions/gradle-2.2.1-all.zip

Exception in thread "main" java.lang.RuntimeException: java.net.UnknownHostException: services.gradle.org
    at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)
    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:55)
Caused by: java.net.UnknownHostException: services.gradle.org
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at java.net.Socket.connect(Socket.java:528)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    at sun.net.www.http.HttpClient.New(HttpClient.java:308)
    at sun.net.www.http.HttpClient.New(HttpClient.java:326)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
    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)
    ... 3 more
[error] __init__() takes at least 3 arguments (2 given) : <type 'exceptions.TypeError'>

But if i open the link on the browser, i can download the packages, but i don't know how to let the catkin_make find the gradle.

Any help will be grateful.

Asked by erikcong80 on 2015-10-07 08:54:49 UTC

Comments

This could just be a transient error. Have you tried again?

Asked by gvdhoorn on 2015-10-07 09:01:31 UTC

yes, I have tried it many times...

Asked by erikcong80 on 2015-10-07 09:36:25 UTC

Do you have a proxy server configured?

Asked by gvdhoorn on 2015-10-07 09:39:37 UTC

yes, i have a proxy server configured, system-wide

Asked by erikcong80 on 2015-10-07 09:40:40 UTC

Do you know a way, how to check out the internet access to this link on ubuntu? I tried traceroute using mtr //services.gradle.org/distributions/gradle-2.2.1-all.zip, it says failed to resolve host: name or service not known.

Asked by erikcong80 on 2015-10-07 10:02:08 UTC

yes, i have a proxy server configured, system-wide

then it could very well be that the java runtime that gradle uses does not use that proxy, and hence cannot access the internet.

Asked by gvdhoorn on 2015-10-07 10:09:33 UTC

I tried traceroute using mtr //services.gradle.org/distributions/gradle-2.2.1-all.zip, it says failed to resolve host: name or service not known.

The hostname part is 'services.gradle.org'. The rest is part of the URL.

Asked by gvdhoorn on 2015-10-07 10:10:05 UTC

could you tell me how to change the proxy for java runtime? I use this link: http://ubuntuforums.org/showthread.php?t=1540018 and configure the proxy for java runtime, but it does not help. Maybe to configure at the place inside catkin_create_rosjava_pkg where the downloading of the link is called ?

Asked by erikcong80 on 2015-10-07 10:54:36 UTC

I don't have any experience with configuring / using proxy servers with the JRE I'm afraid. Have you made sure that it is actually an issue with gradle not using your proxy?

Asked by gvdhoorn on 2015-10-07 11:03:05 UTC

i think it is for catkin, the gradle is not installed. I have another question, what is it actually doing behind when i type catkin_create_rosjava_pkg [packageName] ? where is this main function? Maybe it needs a proxy setting

Asked by erikcong80 on 2015-10-07 11:30:41 UTC

Answers