Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » P2 dev » Error reading Galileo-updatesite
Error reading Galileo-updatesite [message #504138] Thu, 17 December 2009 07:04
Markus Oley is currently offline Markus Oley
Messages: 253
Registered: July 2009
Location: Germany
Senior Member
Hi to you all,

I try to read en updatesite programmatically using

UpdateSite site = UpdateSite.load(new URI(updatesite), new NullProgressMonitor()); SiteFeature[] features2 = site.getSite().getFeatures();

The variable updatesite contains 'http://download.eclipse.org/releases/galileo', which seems to be a valid URL, because my Eclipse uses the same site for available sites...

But I get a Exception


org.eclipse.equinox.internal.provisional.p2.core.ProvisionEx ception: Error reading update site http://download.eclipse.org/releases/galileo.
at org.eclipse.equinox.internal.p2.updatesite.UpdateSite.loadAc tualSiteFile(UpdateSite.java:218)
at org.eclipse.equinox.internal.p2.updatesite.UpdateSite.loadSi teFile(UpdateSite.java:155)
at org.eclipse.equinox.internal.p2.updatesite.UpdateSite.load(U pdateSite.java:126)
at vsa.vsaeclipse.distributor.controlfile.UpdatesiteSynchronize r. <init>(UpdatesiteSynchronizer.java:131)
at vsa.vsaeclipse.distributor.rcp.rcpdistributor.details.Update siteSynchronizeSelection. <init>(UpdatesiteSynchronizeSelection.java:34)
at vsa.vsaeclipse.distributor.rcp.rcpdistributor.synchronizer.S ynchronizerUIPartUpdatesite.synchronize(SynchronizerUIPartUp datesite.java:22)
at vsa.vsaeclipse.distributor.rcp.rcpdistributor.details.Abstra ctDistributionPartDetailPanel.widgetSelected(AbstractDistrib utionPartDetailPanel.java:352)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3112)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at vsa.vsaeclipse.distributor.rcp.rcpdistributor.VSAEclipseDist ributor.start(VSAEclipseDistributor.java:28)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Contains: Artifact not found: http://download.eclipse.org/releases/galileo/site.xml.
java.io.FileNotFoundException: http://download.eclipse.org/releases/galileo/site.xml
at org.eclipse.equinox.internal.p2.repository.RepositoryStatusH elper.checkFileNotFound(RepositoryStatusHelper.java:289)
at org.eclipse.equinox.internal.p2.repository.FileReader.checkE xception(FileReader.java:352)
at org.eclipse.equinox.internal.p2.repository.FileReader.sendRe trieveRequest(FileReader.java:326)
at org.eclipse.equinox.internal.p2.repository.FileReader.readIn to(FileReader.java:263)
at org.eclipse.equinox.internal.p2.repository.RepositoryTranspo rt.download(RepositoryTransport.java:71)
at org.eclipse.equinox.internal.p2.repository.RepositoryTranspo rt.download(RepositoryTransport.java:127)
at org.eclipse.equinox.internal.p2.updatesite.UpdateSite.loadAc tualSiteFile(UpdateSite.java:187)
at org.eclipse.equinox.internal.p2.updatesite.UpdateSite.loadSi teFile(UpdateSite.java:155)
at org.eclipse.equinox.internal.p2.updatesite.UpdateSite.load(U pdateSite.java:126)
at vsa.vsaeclipse.distributor.controlfile.UpdatesiteSynchronize r. <init>(UpdatesiteSynchronizer.java:131)
at vsa.vsaeclipse.distributor.rcp.rcpdistributor.details.Update siteSynchronizeSelection. <init>(UpdatesiteSynchronizeSelection.java:34)
at vsa.vsaeclipse.distributor.rcp.rcpdistributor.synchronizer.S ynchronizerUIPartUpdatesite.synchronize(SynchronizerUIPartUp datesite.java:22)
at vsa.vsaeclipse.distributor.rcp.rcpdistributor.details.Abstra ctDistributionPartDetailPanel.widgetSelected(AbstractDistrib utionPartDetailPanel.java:352)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3112)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at vsa.vsaeclipse.distributor.rcp.rcpdistributor.VSAEclipseDist ributor.start(VSAEclipseDistributor.java:28)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)


What's wrong with this call, do I need to use another API?

I also want to download some features, where do I find a API.-method for this issue?

Thanks in advance

Markus
Previous Topic:How to update the main application
Next Topic:p2.repo2runnable questions
Goto Forum:
  


Current Time: Tue Sep 23 22:41:36 GMT 2014

Powered by FUDForum. Page generated in 0.16076 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software