Got error with "gradlew clean fastbuild" in Windows 7

381 views
Skip to first unread message

QiongDai

unread,
May 20, 2014, 12:09:16 PM5/20/14
to db...@googlegroups.com
Hi Javor,

I'm exploring and trying to set up the DbFit development  for a potential new adapter. At this initial stage, I don't think I will need VM.

For the security reason that might have been set up by the org I'm working with, which I guessed after a few failed tries, I couldn't not check out the master branch from the URL,   https://github.com/dbfit/dbfit.git because the error,

"Enable to connect to a repository at URL 'https://github.com/dbfit/dbfit.git', etc.

I tried the check out with both GIT and SVN. All failed.

So, I simply downloaded the dbfit-master.zip at https://github.com/dbfit/dbfit# to try.

The problem is when I tried at Command Prompt in order to get a fast feedback according to https://github.com/dbfit/dbfit/blob/master/CONTRIBUTING.md#blob_contributors_box,

dbfit-master> gradlew clean fastbuild

I got

"Downloading https://services.gradle.org/distributions/gradle-1.12-bin.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
..."

Please note my classpath does include the dot (.)  and ..\jdk1.7.0_10\jre\lib\rt.jar;jdk1.7.0_10\lib\tools.jar.

Did I have missed any classpath I should include? Could you please help?

Thank you.

Qiong

Jake Benilov

unread,
May 20, 2014, 3:16:21 PM5/20/14
to db...@googlegroups.com
QiongDai,

All those errors (including the UnknownHostException) look like they relate to network connectivity. It's more than likely that you'll need to configure some proxy server settings in order for this to work.

The gradle build is bootstrapping (ie it's downloading gradle from the internet if it's not already installed locally). Looking at what you posted, doing this might be enough.

Regards,
Jake

QiongDai

unread,
May 20, 2014, 10:50:19 PM5/20/14
to db...@googlegroups.com
Hi Jake,

I think you are right. I just did it at my home PC and that error is gone. So I think all these exceptions and the failure of the checkout with both SVN and GIT all caused by what I thought the security setting in the org I'm working with.

Could anyone please tell me exactly how to configure the proxy server settings? Exactly in which file, I should set it. I had done some exploration and still couldn't get it. 

Another option would be you pack everything in another new master.zip in order for the faster build to avoid the downloading. Working ok in my home PC is not good enough, I have to get it work in my office or via its network.

Thank you.

Qiong

  

QiongDai

unread,
May 23, 2014, 2:44:06 PM5/23/14
to db...@googlegroups.com
Hello,

Finally, I got rid of the thrown exceptions with downloading https://services.gradle.org/distributions/gradle-1.12-bin.zip when trying dbfit-master> gradlew clean fastbuild

Now I have other exceptions,
:dbfit-java:postgres:clean UP-TO-DATE
:dbfit-java:sqlserver:clean UP-TO-DATE
:dbfit-java:teradata:clean UP-TO-DATE
:dbfit-java:core:compileJava

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':dbfit-java:core:compile'.
> Could not resolve dummy:fitnesse-standalone:20140317.
  Required by:
      com.neuri.dbfit:core:3.0.1
   > Could not GET 'http://repo1.maven.org/maven2/dummy/fitnesse-standalone/20140317/fitnesse-standalone-20140317.pom'.
      > repo1.maven.org
   > Could not GET 'http://mvnrepository.com/dummy/fitnesse-standalone/20140317/fitnesse-standalone-20140317.pom'.
      > mvnrepository.com
   > Could not GET 'https://aws.amazon.com/s3/ivy.xml/'. Received status code 407 from server: Proxy Authentication Required
> Could not resolve dummy:fitlibrary:20081102.
  Required by:
      com.neuri.dbfit:core:3.0.1
   > Could not GET 'http://repo1.maven.org/maven2/dummy/fitlibrary/20081102/fitlibrary-20081102.pom'.
      > repo1.maven.org
   > Could not GET 'http://mvnrepository.com/dummy/fitlibrary/20081102/fitlibrary-20081102.pom'.
      > mvnrepository.com
   > Could not GET 'https://aws.amazon.com/s3/ivy.xml/'. Received status code 407 from server: Proxy Authentication Required
> Could not resolve org.reflections:reflections:0.9.9-RC1.
  Required by:
      com.neuri.dbfit:core:3.0.1
   > Could not GET 'http://repo1.maven.org/maven2/org/reflections/reflections/0.9.9-RC1/reflections-0.9.9-RC1.pom'.
      > repo1.maven.org
   > Could not GET 'http://mvnrepository.com/org/reflections/reflections/0.9.9-RC1/reflections-0.9.9-RC1.pom'.
      > mvnrepository.com

...

It seems those http URLs do not exist at all in the specified web sites.

Could you please advise? Thank you.



Yavor Nikolov

unread,
May 23, 2014, 2:59:23 PM5/23/14
to db...@googlegroups.com
Hi,
In your output I see: "Received status code 407 from server: Proxy Authentication Required"
Which seems to be related to your network restrictions and proxy settings.

Regards,
Yavor


--
You received this message because you are subscribed to the Google Groups "dbfit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dbfit+un...@googlegroups.com.
To post to this group, send email to db...@googlegroups.com.
Visit this group at http://groups.google.com/group/dbfit.
For more options, visit https://groups.google.com/d/optout.

QiongDai

unread,
May 23, 2014, 3:13:52 PM5/23/14
to db...@googlegroups.com
Yavor,

Thank you.

I'm not sure whether this is caused by my side or by the Gradle itself, as indicated at
http://forums.gradle.org/gradle/topics/unable_to_connect_maven_repo_by_using_proxy

Qiong

QiongDai

unread,
May 23, 2014, 3:17:38 PM5/23/14
to db...@googlegroups.com
Yavor,

Please ignore my previous comment. It works now. I missed one line in the gradle.properties.

Thank you. Have great weekend.

gli00001

unread,
Oct 15, 2015, 1:40:02 AM10/15/15
to dbfit
Hi Qiong,
    Do you mind sharing your fix? I am facing similar issue now, could not download ivy.xml, etc
Thanks!

QiongDai

unread,
Oct 15, 2015, 11:48:03 AM10/15/15
to dbfit
Hi gli0001,

In the gradle.properties file, please make sure you have specified each value for each line of both systemProp.https and systemProp.http although all the 4 lines for either systemProp.https or systemProp.http are simply repeating those for systemProp.https or systemProp.http. 

The reason why I got the error was I only specified values for  

systemProp.https.proxyHost=

systemProp.https.proxyPort=

systemProp.https.proxyUser=

systemProp.https.proxyPassword=


not for

systemProp.http.proxyHost=

systemProp.http.proxyPort=

systemProp.http.proxyUser=

systemProp.http.proxyPassword=



After I added the values for each line of


systemProp.http.proxyHost=

systemProp.http.proxyPort=

systemProp.http.proxyUser=

systemProp.http.proxyPassword=


my problem was gone.

Regards,

Qiong 

gli00001

unread,
Oct 15, 2015, 9:47:06 PM10/15/15
to dbfit
Thanks Qiong!
in my corp we do not have proxy server, I had managed to copy/download required jars from the official dbFit build/corp maven repo,
then I put them in a   folder and refer to it using flatDir in the build.gradle, I could not  get rid of the  missing ivy.xml error so I simply commented that out
since I feel it should not really matter. then I was lucky enough to have a successful build. 

Cheers,
Li
Reply all
Reply to author
Forward
0 new messages