Announcement Announcement Module
Collapse
No announcement yet.
Installing Groovy and Grails support, problem connecting to repository Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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

      Comment


      • #4
        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.

        Comment


        • #5
          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, 10:41 AM. Reason: actual eclipse setting (note readTimeout is only 1 second normally)

          Comment


          • #6
            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

            Comment


            • #7
              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.

              Comment


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

                Comment


                • #9
                  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.

                  Comment


                  • #10
                    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.

                    Comment


                    • #11
                      Great to hear that you found the roots of this problem. I think this will be of great value to other users who are facing the same or similar issues.

                      Thanks for sharing the solution here!!!

                      Cheers,
                      -Martin

                      Comment


                      • #12
                        I was able to install it just at this moment at (50%) now. After 3 gruelling days (tried every possible way but nothing else worked, I even created an issue ticket for this - can be found in here). I decided to uninstall everything again and reinstalled it in another drive instead of C:\. (I tried making the C:\ attribute read only to false and modifying the read only registry but did not do it). If anyone facing the same prob, try installing STS or eclipse in another drive other than C. thanks

                        Comment

                        Working...
                        X