Spring Tool Suite
  1. Spring Tool Suite
  2. STS-3647

After installing STS on Kepler. Update site inaccessable

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.0.RELEASE
    • Fix Version/s: 3.5.0.M2
    • Component/s: SUPPORT
    • Labels:
      None
    • Environment:

      Windows 32 bit Eclipse Kelper (also full STS from Springsource)

      Description

      Working for Big wireless company. System behind a proxy that requires authentication. Preferences->Network Connections->Active Provider set to Manual. HTTP and HTTPS values filled in for proxy host, port, Auth (yes), User and password all populated.

      When Kepler is installed without STS, Marketpace works as expected. Install STS and going to Marketplace fails.

      Error:
      {{monospaced}}Cannot install remote marketplace locations: HTTP Proxy Authentication Required: http://marketplace.eclipse.org/catalogs/api/p

      Stack trace:
      {{monospaced}}org.eclipse.core.runtime.CoreException: HTTP Proxy Authentication Required: http://marketplace.eclipse.org/catalogs/api/p
      at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.stream(RepositoryTransport.java:180)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.epp.internal.mpc.core.util.AbstractP2TransportFactory.invokeStream(AbstractP2TransportFactory.java:35)
      at org.eclipse.epp.internal.mpc.core.util.TransportFactory$1.stream(TransportFactory.java:69)
      at org.eclipse.epp.internal.mpc.core.service.RemoteMarketplaceService.processRequest(RemoteMarketplaceService.java:131)
      at org.eclipse.epp.internal.mpc.core.service.RemoteMarketplaceService.processRequest(RemoteMarketplaceService.java:85)
      at org.eclipse.epp.internal.mpc.core.service.RemoteMarketplaceService.processRequest(RemoteMarketplaceService.java:72)
      at org.eclipse.epp.internal.mpc.core.service.DefaultCatalogService.listCatalogs(DefaultCatalogService.java:36)
      at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand$5.run(MarketplaceWizardCommand.java:254)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      Caused by: org.eclipse.ecf.filetransfer.IncomingFileTransferException: Proxy Authentication Required
      at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.openStreams(HttpClientRetrieveFileTransfer.java:661)
      at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:879)
      at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:570)
      at org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106)
      at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.sendRetrieveRequest(FileReader.java:422)
      at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.read(FileReader.java:273)
      at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.stream(RepositoryTransport.java:172)
      ... 12 more

      Unstall Spring Tool Suite plugins (leaving Groovy, etc) Marketplace access is restored.

      I appears that something in the Spring STS plugins is causing proxy authentication to fail.

      I cannot use the Spring Tool Suite plugins until this issue is resolved.

        Activity

        Hide
        Luke Rathbone added a comment -

        This issue appears to have come back in version 3.6.0.RELEASE.

        We've managed to get around it by reverting to the older versions of the httpclient and httpcore jars as listed in the 'Sample output: (GOOD)' part of an earlier comment:

        comment-99733

        It seems that the issue is something to do with the later versions of the httpclient and httpcore jars.

        Show
        Luke Rathbone added a comment - This issue appears to have come back in version 3.6.0.RELEASE. We've managed to get around it by reverting to the older versions of the httpclient and httpcore jars as listed in the 'Sample output: (GOOD)' part of an earlier comment: comment-99733 It seems that the issue is something to do with the later versions of the httpclient and httpcore jars.
        Hide
        Martin Lippert (c) added a comment -

        Those new versions of the apache http libs seem to be the standard versions in the Eclipse Luna release from what I can see. Therefore it would be dangerous to replace them with earlier versions in our 4.4-based distribution of STS... We need to check back with the Eclipse folks to see what their strategy on this is.

        Show
        Martin Lippert (c) added a comment - Those new versions of the apache http libs seem to be the standard versions in the Eclipse Luna release from what I can see. Therefore it would be dangerous to replace them with earlier versions in our 4.4-based distribution of STS... We need to check back with the Eclipse folks to see what their strategy on this is.
        Hide
        Rao Pathangi added a comment - - edited

        I am currently using STS 3.6.4.CI-B20; Build Id: 201412221207; Platform: Eclipse Luna SR1 (4.4.1) and I have set the proxy config to "manual" with the appropriate values. The dashboard feeds get populated most likely HTTP traffic is coming through. What is odd is that when I go to create a "new" Spring project, I get a "Refreshing" bar that sits there for ever. I kill it (via the red button to the right) and try to pick a "Spring Integration Adapter Template Project."

        The area under, "Templates:" reads,

        requires downloading

        Description: Creates a Spring Integration Adapter Template. Requires Gradle Support.
        URL: :https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/si-template-adapter-1.0.0.RELEASE.zip

        It says, "Spring Integration Adapter Template Project requires a download of 122100 bytes. Proceed?" I click Yes and it is stuck. I kill it once again, I get an error dialog that reads, "Download of template 'org.springframework.integration.sts.template.adapter" failed. I click OK.

        However, when I open the browser I am able to download the file at the following URL which STS was probably trying to download, "https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/si-template-adapter-1.0.0.RELEASE.zip"

        So, what is going on here? Obviously, I am able to download the file via the browser but I cannot do so via STS? I have checked the HTTPS port, I have the right port.

        Show
        Rao Pathangi added a comment - - edited I am currently using STS 3.6.4.CI-B20; Build Id: 201412221207; Platform: Eclipse Luna SR1 (4.4.1) and I have set the proxy config to "manual" with the appropriate values. The dashboard feeds get populated most likely HTTP traffic is coming through. What is odd is that when I go to create a "new" Spring project, I get a "Refreshing" bar that sits there for ever. I kill it (via the red button to the right) and try to pick a "Spring Integration Adapter Template Project." The area under, "Templates:" reads, requires downloading Description: Creates a Spring Integration Adapter Template. Requires Gradle Support. URL: : https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/si-template-adapter-1.0.0.RELEASE.zip It says, "Spring Integration Adapter Template Project requires a download of 122100 bytes. Proceed?" I click Yes and it is stuck. I kill it once again, I get an error dialog that reads, "Download of template 'org.springframework.integration.sts.template.adapter" failed. I click OK. However, when I open the browser I am able to download the file at the following URL which STS was probably trying to download, "https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/si-template-adapter-1.0.0.RELEASE.zip" So, what is going on here? Obviously, I am able to download the file via the browser but I cannot do so via STS? I have checked the HTTPS port, I have the right port.
        Hide
        Rao Pathangi added a comment -

        I think I may have figured out the problem, it may not have anything to do with STS at all. You have to set the proxy config to manual and blank the SOCKS settings. Incredible that setting the SOCKS settings can screw up the access. Apparently this issue has been around for more than three years. Incredible!

        Show
        Rao Pathangi added a comment - I think I may have figured out the problem, it may not have anything to do with STS at all. You have to set the proxy config to manual and blank the SOCKS settings. Incredible that setting the SOCKS settings can screw up the access. Apparently this issue has been around for more than three years. Incredible!
        Hide
        Martin Lippert (c) added a comment -

        Thanks, Rao, for posting your findings here to share it with others, much appreciated!!! (and I agree that having this issue with SOCKS support for so long is a bit incredible)

        Show
        Martin Lippert (c) added a comment - Thanks, Rao, for posting your findings here to share it with others, much appreciated!!! (and I agree that having this issue with SOCKS support for so long is a bit incredible)

          People

          • Assignee:
            Kris De Volder (c)
            Reporter:
            Chris Hamilton
          • Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: