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_too...
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.
This could just be a transient error. Have you tried again?
yes, I have tried it many times...
Do you have a proxy server configured?
yes, i have a proxy server configured, system-wide
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.
then it could very well be that the java runtime that gradle uses does not use that proxy, and hence cannot access the internet.
The hostname part is 'services.gradle.org'. The rest is part of the URL.
could you tell me how to change the proxy for java runtime? I use this link: http://ubuntuforums.org/showthread.ph... 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 ?