Announcement Announcement Module
Collapse
No announcement yet.
Error installing Gradle extension: internal/p2/repository/RepositoryTransport Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error installing Gradle extension: internal/p2/repository/RepositoryTransport

    Hi,

    I'm trying to install Gradle support but encounter the following error message as soon as I push the install button:

    Code:
    Problems occurred while performing installation: org/eclipse/equinox/internal/p2/repository/RepositoryTransport
    org/eclipse/equinox/internal/p2/repository/RepositoryTransport
    Version: 2.9.1.RELEASE
    Build Id: 201203221000

    I have a number of plugins already installed, including Adobe Flash Builder 4.5 (Version: 4.5.1.313231).

    I'm attempting this on a Windows XP machine; installing Gradle support on a Linux machine on the same STS version (though without the Flash Builder) is successful.

    - David

  • #2
    Hi David,

    The RepositoryTransport, I think, is some component of Eclipse related to network access for updates. Since you already installed other plugins it would be odd however it this was a network problem. Any more details of the error in the Eclipse error log? (Open it via "Windows >> Show View >> Error Log". I'm hoping there may be a little more information in the log since I'm not really sure what the problem is.

    Kris

    Comment


    • #3
      I've included log messages from a failed installation attempt below:

      Code:
      eclipse.buildId=2.9.1.201203221000-RELEASE
      java.version=1.7.0_03
      java.vendor=Oracle Corporation
      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
      
      
      Error
      Tue May 15 08:11:50 IDT 2012
      Unexpected error loading extension: org.eclipse.equinox.p2.updatesite.metadataRepository
      
      java.lang.NoClassDefFoundError: org/eclipse/equinox/internal/p2/repository/RepositoryTransport
      at org.eclipse.equinox.internal.p2.updatesite.UpdateSite.getTransport(UpdateSite.java:577)
      at org.eclipse.equinox.internal.p2.updatesite.UpdateSite.loadActualSiteFile(UpdateSite.java:204)
      at org.eclipse.equinox.internal.p2.updatesite.UpdateSite.loadSiteFile(UpdateSite.java:172)
      at org.eclipse.equinox.internal.p2.updatesite.UpdateSite.load(UpdateSite.java:142)
      at org.eclipse.equinox.internal.p2.updatesite.metadata.UpdateSiteMetadataRepositoryFactory.initializeRepository(UpdateSiteMetadataRepositoryFactory.java:85)
      at org.eclipse.equinox.internal.p2.updatesite.metadata.UpdateSiteMetadataRepositoryFactory.load(UpdateSiteMetadataRepositoryFactory.java:54)
      at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
      at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:749)
      at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:651)
      at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
      at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
      at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker.getAvailableRepositories(UpdateChecker.java:150)
      at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker.checkForUpdates(UpdateChecker.java:128)
      at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker$UpdateCheckThread.run(UpdateChecker.java:72)
      Caused by: java.lang.ClassNotFoundException: org.eclipse.equinox.internal.p2.repository.RepositoryTransport
      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      ... 14 more
      Code:
      eclipse.buildId=2.9.1.201203221000-RELEASE
      java.version=1.7.0_03
      java.vendor=Oracle Corporation
      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
      
      
      Info
      Tue May 15 08:12:52 IDT 2012
      About to uninstall: [] to make way for new version of m2eclipse
      Code:
      eclipse.buildId=2.9.1.201203221000-RELEASE
      java.version=1.7.0_03
      java.vendor=Oracle Corporation
      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
      
      
      Error
      Tue May 15 08:12:52 IDT 2012
      Unexpected error loading extension: org.eclipse.equinox.p2.artifact.repository.simpleRepository
      
      java.lang.NoClassDefFoundError: org/eclipse/equinox/internal/p2/repository/RepositoryTransport
      at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepositoryFactory.getLocalFile(SimpleArtifactRepositoryFactory.java:45)
      ...
      at org.eclipse.equinox.internal.p2.ui.ColocatedRepositoryTracker.addRepository(ColocatedRepositoryTracker.java:68)
      at org.eclipse.mylyn.internal.discovery.ui.PrepareInstallProfileJob_e_3_6.addRepositories(PrepareInstallProfileJob_e_3_6.java:362)
      at org.eclipse.mylyn.internal.discovery.ui.PrepareInstallProfileJob_e_3_6.computeInstallableUnits(PrepareInstallProfileJob_e_3_6.java:202)
      at org.eclipse.mylyn.internal.discovery.ui.PrepareInstallProfileJob_e_3_6.run(PrepareInstallProfileJob_e_3_6.java:90)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      Caused by: java.lang.ClassNotFoundException: org.eclipse.equinox.internal.p2.repository.RepositoryTransport
      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      ... 16 more
      Code:
      eclipse.buildId=2.9.1.201203221000-RELEASE
      java.version=1.7.0_03
      java.vendor=Oracle Corporation
      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
      
      
      Error
      Tue May 15 08:12:52 IDT 2012
      Unexpected error loading extension: org.eclipse.equinox.p2.updatesite.artifactRepository
      
      java.lang.NoClassDefFoundError: org/eclipse/equinox/internal/p2/repository/RepositoryTransport
      at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepositoryFactory.getLocalFile(SimpleArtifactRepositoryFactory.java:45)
      ...
      at org.eclipse.equinox.internal.p2.ui.ColocatedRepositoryTracker.addRepository(ColocatedRepositoryTracker.java:68)
      at org.eclipse.mylyn.internal.discovery.ui.PrepareInstallProfileJob_e_3_6.addRepositories(PrepareInstallProfileJob_e_3_6.java:362)
      at org.eclipse.mylyn.internal.discovery.ui.PrepareInstallProfileJob_e_3_6.computeInstallableUnits(PrepareInstallProfileJob_e_3_6.java:202)
      at org.eclipse.mylyn.internal.discovery.ui.PrepareInstallProfileJob_e_3_6.run(PrepareInstallProfileJob_e_3_6.java:90)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      Caused by: java.lang.ClassNotFoundException: org.eclipse.equinox.internal.p2.repository.RepositoryTransport
      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      ... 18 more
      Code:
      eclipse.buildId=2.9.1.201203221000-RELEASE
      java.version=1.7.0_03
      java.vendor=Oracle Corporation
      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
      
      
      Error
      Tue May 15 08:12:57 IDT 2012
      Problems occurred while performing installation: org/eclipse/equinox/internal/p2/repository/RepositoryTransport
      
      java.lang.NoClassDefFoundError: org/eclipse/equinox/internal/p2/repository/RepositoryTransport
      at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepositoryFactory.create(SimpleArtifactRepositoryFactory.java:129)
      ...
      at org.eclipse.equinox.internal.p2.ui.ColocatedRepositoryTracker.addRepository(ColocatedRepositoryTracker.java:68)
      at org.eclipse.mylyn.internal.discovery.ui.PrepareInstallProfileJob_e_3_6.addRepositories(PrepareInstallProfileJob_e_3_6.java:362)
      at org.eclipse.mylyn.internal.discovery.ui.PrepareInstallProfileJob_e_3_6.computeInstallableUnits(PrepareInstallProfileJob_e_3_6.java:202)
      at org.eclipse.mylyn.internal.discovery.ui.PrepareInstallProfileJob_e_3_6.run(PrepareInstallProfileJob_e_3_6.java:90)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      Caused by: java.lang.ClassNotFoundException: org.eclipse.equinox.internal.p2.repository.RepositoryTransport
      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      ... 13 more

      Comment


      • #4
        The class that is not found is a class that existed in Eclipse 3.6 but no longer in Eclipse 3.7. It appears that you may have some mix of Eclipse 3.6. and 3.7 classes in your instance of STS. Possibly this because you started out with an E36 based version of STS and then via updates migrated to E37.

        I would suggest to clean up this mess by starting from a clean/fresh Eclipse 3.7 based version of STS (e.g. the 2.9.1 or 2.9.2 release package) and then reinstalling the components that you need into that.

        Kris

        PS: 2.9.2 is not quite out yet, but will be within a week or so. So for now you can use 2.9.1 both 2.9.1 and 2.9.2 are very close in terms of functionality. There's just a few extra bugfixes in 2.9.2. It should be pretty safe/easy to update to 2.9.2 via update site once it is out.

        Comment


        • #5
          Originally posted by Kris De Volder View Post
          The class that is not found is a class that existed in Eclipse 3.6 but no longer in Eclipse 3.7. It appears that you may have some mix of Eclipse 3.6. and 3.7 classes in your instance of STS. Possibly this because you started out with an E36 based version of STS and then via updates migrated to E37.
          Strange. The install was a clean STS 2.9.1 install. There are a few plugins installed, but none I don't have in a linux STS where I installed the Gradle plugin successfully... apart from Flashbuilder. I'll try upgrading to Flashbuilder 4.6; maybe 4.5 brought in the Eclipse 3.6 classes?

          - David

          Comment


          • #6
            Strange indeed. To be honest I don't know how you may have gotten 36 classes into STS. All you would need is one plugin that has a hard dependency on some 36 classes and this may cause some 36 stuff to be installed. The Eclipse software update/installer will try to satisfy dependencies of things you install and if something requires some 36 stuff, and it can be found, it will even silently downgrade what you already have installed to satisfy this dependency :-(

            I wouldn't even completely rule out the possibility there's something broken in the 2.9.1 distribution.

            Do you get the same problem with brand new 2.9.1 install (i.e. no extra stuff installed yet)?

            If not maybe you can determine which feature/plugin you installed caused the problem. Trying to install newer version of some of the things you installed may also be a good idea. And if any of these things come with separate update sites for e36 versus e37 make sure to use the e37 update site.

            In any case, it seems to me that your current installation should be consider 'toast' and I wouldn't try to repair it.

            Comment

            Working...
            X