Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Installing Groovy and Grails support, problem connecting to repository

  1. #1
    Join Date
    May 2006
    Location
    Maryland. US
    Posts
    8

    Default Installing Groovy and Grails support, problem connecting to repository

    I have just installed STS 2.8.0 on a Windows 7 machine. I am using JDK 1.6.0_26. I am installing in a non-shared directory (F:/Applications). The install seems to go ok, but when I go to the extensions tab on the Dashboard and try to install Grails and Groovy support, I get the following error:

    Problems occurred while performing installation: Communication with repository at http://dist.springsource.com/milesto...rty/scala/e3.7 failed.
    Communication with repository at http://dist.springsource.com/milesto...rty/scala/e3.7 failed.
    Read timed out

    This problem doesn't seem to happen with extensions that are installed from other repositories (i.e. FindBugs).

    Is this a security issue with Windows 7 or something else?

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,640

    Default

    Hi!

    Do you get this error every time? I don't think its a security issue and I am wondering why you are getting this when trying to install Grails and Groovy (totally unrelated to the Scala update site that is mentioned in the problem you mentioned). And does it fail to install Groovy/Grails or is it just popping up the error message and does the job of installing Groovy & Grails?

    -Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  3. #3
    Join Date
    Oct 2011
    Posts
    5

    Default

    Quote Originally Posted by meinholz View Post
    I have just installed STS 2.8.0 on a Windows 7 machine. I am using JDK 1.6.0_26. I am installing in a non-shared directory (F:/Applications). The install seems to go ok, but when I go to the extensions tab on the Dashboard and try to install Grails and Groovy support, I get the following error:

    Problems occurred while performing installation: Communication with repository at http://dist.springsource.com/milesto...rty/scala/e3.7 failed.
    Communication with repository at http://dist.springsource.com/milesto...rty/scala/e3.7 failed.
    Read timed out

    This problem doesn't seem to happen with extensions that are installed from other repositories (i.e. FindBugs).

    Is this a security issue with Windows 7 or something else?

    I've had similar problems, I made some progress by adding :

    -Dsun.net.client.defaultConnectTimeout=200000
    -Dsun.net.client.defaultReadTimeout=20000

    to sts.ini


    I'm now stuck at the grails support - I've managed to install grails 1.3.7 and groovy support this way - but can't get the grails support,
    sometimes I've found that I manage to download links with IE then STS seems to progress.

    I think it's related to proxies and networking - I've not had this problem at home.

    DG

  4. #4
    Join Date
    May 2006
    Location
    Maryland. US
    Posts
    8

    Default

    I have this problem each time. I also have this problem on two different Windows 7 workstations.

    When I open the Progress tab in the bottom, I see that STS is accessing:

    http://dist.springsource.com/milesto....7/content.jar

    http://dist.springsource.com/release...ve/content.jar

    I am able to install PMD, FindBugs and the Google plugin without error. I was not able to install Grails, Groovy or Subversive.

  5. #5
    Join Date
    Oct 2011
    Posts
    5

    Default

    I seem to be getting further. I was nearly there - grails support not yet done, needs AJDT installing, which I couldn't
    seem to download .. I've add a few more params to STS.ini to make the network more tolerant :

    -Djava.net.preferIPv4Stack=true
    -Dsun.net.client.defaultConnectTimeout=200000
    -Dsun.net.client.defaultReadTimeout=200000
    -DretryAttempts=20
    -DreadTimeout=2000000
    -DcloseTimeout=2000000
    -Dorg.eclipse.ecf.provider.filetransfer.retrieve.re adTimeout=20000
    -Dorg.eclipse.ecf.provider.filetransfer.retrieve.re tryAttempts=30
    -Dorg.eclipse.ecf.provider.filetransfer.retrieve.cl oseTimeout=1000

    HTH

    DG
    Last edited by spangleweed; Oct 20th, 2011 at 10:41 AM. Reason: actual eclipse setting (note readTimeout is only 1 second normally)

  6. #6
    Join Date
    May 2006
    Location
    Maryland. US
    Posts
    8

    Default

    I still think it must be some kind of security setting. I've turned off the firewall and tried running the application as administrator (which my account was) and updating the JDK to 1.6.0_29. None of that worked. In the $WORKSPACE/.metdata/.log file, I get the following errors:

    !SESSION 2011-10-20 23:10:47.685 -----------------------------------------------
    eclipse.buildId=2.8.0.201110171000-RELEASE
    java.version=1.6.0_29
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments: -product com.springsource.sts.ide
    Command-line arguments: -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide

    !ENTRY org.eclipse.mylyn.discovery.ui 4 0 2011-10-20 23:17:27.966
    !MESSAGE Problems occurred while performing installation: Communication with repository at http://dist.springsource.com/release...vy-grails/e3.7 failed.
    !STACK 1
    org.eclipse.equinox.p2.core.ProvisionException: Communication with repository at http://dist.springsource.com/release...vy-grails/e3.7 failed.
    at org.eclipse.equinox.internal.p2.repository.CacheMa nager.createCache(CacheManager.java:148)
    at org.eclipse.equinox.internal.p2.metadata.repositor y.SimpleMetadataRepositoryFactory.getLocalFile(Sim pleMetadataRepositoryFactory.java:66)
    at org.eclipse.equinox.internal.p2.metadata.repositor y.SimpleMetadataRepositoryFactory.load(SimpleMetad ataRepositoryFactory.java:88)
    at org.eclipse.equinox.internal.p2.metadata.repositor y.MetadataRepositoryManager.factoryLoad(MetadataRe positoryManager.java:57)
    at org.eclipse.equinox.internal.p2.repository.helpers .AbstractRepositoryManager.loadRepository(Abstract RepositoryManager.java:749)
    at org.eclipse.equinox.internal.p2.repository.helpers .AbstractRepositoryManager.loadRepository(Abstract RepositoryManager.java:651)
    at org.eclipse.equinox.internal.p2.metadata.repositor y.MetadataRepositoryManager.loadRepository(Metadat aRepositoryManager.java:96)
    at org.eclipse.equinox.internal.p2.metadata.repositor y.MetadataRepositoryManager.loadRepository(Metadat aRepositoryManager.java:92)
    at org.eclipse.mylyn.internal.discovery.ui.PrepareIns tallProfileJob_e_3_6.addRepositories(PrepareInstal lProfileJob_e_3_6.java:309)
    at org.eclipse.mylyn.internal.discovery.ui.PrepareIns tallProfileJob_e_3_6.computeInstallableUnits(Prepa reInstallProfileJob_e_3_6.java:134)
    at org.eclipse.mylyn.internal.discovery.ui.PrepareIns tallProfileJob_e_3_6.run(PrepareInstallProfileJob_ e_3_6.java:89)
    at org.eclipse.jface.operation.ModalContext$ModalCont extThread.run(ModalContext.java:121)
    Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream. java:129)
    at java.io.BufferedInputStream.fill(BufferedInputStre am.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStre am.java:237)
    at org.apache.commons.httpclient.HttpParser.readRawLi ne(HttpParser.java:78)
    at org.apache.commons.httpclient.HttpParser.readLine( HttpParser.java:106)
    at org.apache.commons.httpclient.HttpConnection.readL ine(HttpConnection.java:1116)
    at org.apache.commons.httpclient.MultiThreadedHttpCon nectionManager$HttpConnectionAdapter.readLine(Mult iThreadedHttpConnectionManager.java:1413)
    at org.apache.commons.httpclient.HttpMethodBase.readS tatusLine(HttpMethodBase.java:1973)
    at org.apache.commons.httpclient.HttpMethodBase.readR esponse(HttpMethodBase.java:1735)
    at org.apache.commons.httpclient.HttpMethodBase.execu te(HttpMethodBase.java:1098)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:346)
    at org.eclipse.ecf.provider.filetransfer.httpclient.H ttpClientFileSystemBrowser.runRequest(HttpClientFi leSystemBrowser.java:227)
    at org.eclipse.ecf.provider.filetransfer.browse.Abstr actFileSystemBrowser$DirectoryJob.run(AbstractFile SystemBrowser.java:69)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:54)
    !SUBENTRY 1 org.eclipse.equinox.p2.repository 4 1002 2011-10-20 23:17:27.966
    !MESSAGE Communication with repository at http://dist.springsource.com/release...vy-grails/e3.7 failed.
    !STACK 0
    java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream. java:129)
    at java.io.BufferedInputStream.fill(BufferedInputStre am.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStre am.java:237)
    at org.apache.commons.httpclient.HttpParser.readRawLi ne(HttpParser.java:78)
    at org.apache.commons.httpclient.HttpParser.readLine( HttpParser.java:106)
    at org.apache.commons.httpclient.HttpConnection.readL ine(HttpConnection.java:1116)
    at org.apache.commons.httpclient.MultiThreadedHttpCon nectionManager$HttpConnectionAdapter.readLine(Mult iThreadedHttpConnectionManager.java:1413)
    at org.apache.commons.httpclient.HttpMethodBase.readS tatusLine(HttpMethodBase.java:1973)
    at org.apache.commons.httpclient.HttpMethodBase.readR esponse(HttpMethodBase.java:1735)
    at org.apache.commons.httpclient.HttpMethodBase.execu te(HttpMethodBase.java:1098)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:346)
    at org.eclipse.ecf.provider.filetransfer.httpclient.H ttpClientFileSystemBrowser.runRequest(HttpClientFi leSystemBrowser.java:227)
    at org.eclipse.ecf.provider.filetransfer.browse.Abstr actFileSystemBrowser$DirectoryJob.run(AbstractFile SystemBrowser.java:69)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:54)
    !SESSION 2011-10-20 23:18:25.902 -----------------------------------------------
    eclipse.buildId=2.8.0.201110171000-RELEASE
    java.version=1.6.0_29
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments: -product com.springsource.sts.ide
    Command-line arguments: -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide

  7. #7
    Join Date
    Oct 2011
    Posts
    5

    Default

    This is why I increased the read time out - as in the settings posted :

    at org.eclipse.jface.operation.ModalContext$ModalCont extThread.run(ModalContext.java:121)
    Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)


    So add to your STS.ini ..

    -Dsun.net.client.defaultConnectTimeout=200000
    -Dsun.net.client.defaultReadTimeout=200000
    -DretryAttempts=20
    -DreadTimeout=2000000
    -DcloseTimeout=2000000
    -Dorg.eclipse.ecf.provider.filetransfer.retrieve.re adTimeout=20000
    -Dorg.eclipse.ecf.provider.filetransfer.retrieve.re tryAttempts=30
    -Dorg.eclipse.ecf.provider.filetransfer.retrieve.cl oseTimeout=1000

    I'm up and running now - but seem to have gotten in a mess with my Maven installation - I may start afresh with the above settings,
    then see how it goes.

  8. #8
    Join Date
    May 2006
    Location
    Maryland. US
    Posts
    8

    Default

    I added this and got the same error. Thanks for the pointer though.

  9. #9
    Join Date
    May 2006
    Location
    Maryland. US
    Posts
    8

    Default

    The issue was with Kaspersky Internet Security 2012. After I shut all Kaspersky services down, I was able to install
    the groovy and grails extensions.

    It's weird how only some extensions caused issues while others worked ok.

    I will try to open a ticket with Kaspersky so they can fix the issue.

  10. #10
    Join Date
    May 2006
    Location
    Maryland. US
    Posts
    8

    Default

    Glad it helps someone else. It took me a while to figure it out. I think Kaspersky is not so unusual and that others may run into the same issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •