Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Marketplace Client Project » MarketPlace didn't work with my RCP(InvocationTargetException when opening MarketPlace Wizard)
MarketPlace didn't work with my RCP [message #642409] Wed, 01 December 2010 08:57 Go to next message
Eclipse UserFriend
Hello,

I am trying to integrate the Eclipse MarketPlace into my RCP program. I have added the "org.eclipse.epp.mpc.ui" dependency and copied org.eclipse.epp.mpc.*.jar into the Plugins folder. As the result I can launch the MarketPlace Wizard via the Help menu. But every time I got an "Unexpected Exception" when the Search/Recent/Popular tab opened.

Could anyone give me some advises to get the MarketPlace work with my RCP?

Stack trace:

java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:421)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 1008)
at org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceViewer.do Query(MarketplaceViewer.java:237)
at org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceViewer.do Query(MarketplaceViewer.java:229)
at org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceViewer.se tContentType(MarketplaceViewer.java:328)
at org.eclipse.epp.internal.mpc.ui.wizards.MarketplacePage$1.wi dgetSelected(MarketplacePage.java:111)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3657)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCo mmand.execute(MarketplaceWizardCommand.java:140)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle rProxy.java:293)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.execute Command(SlaveHandlerService.java:241)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSel ection(CommandContributionItem.java:820)
at org.eclipse.ui.menus.CommandContributionItem.access$19(Comma ndContributionItem.java:806)
at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(C ommandContributionItem.java:796)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:24 27)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at com.adobe.lcide.rcp.Application.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
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:369)
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: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Caused by: java.lang.NullPointerException
at org.eclipse.epp.internal.mpc.ui.catalog.MarketplaceDiscovery Strategy.handleSearchResult(MarketplaceDiscoveryStrategy.jav a:159)
at org.eclipse.epp.internal.mpc.ui.catalog.MarketplaceDiscovery Strategy.popular(MarketplaceDiscoveryStrategy.java:357)
at org.eclipse.epp.internal.mpc.ui.catalog.MarketplaceCatalog$3 .run(MarketplaceCatalog.java:86)
at org.eclipse.epp.internal.mpc.ui.catalog.MarketplaceCatalog.p erformDiscovery(MarketplaceCatalog.java:316)
at org.eclipse.epp.internal.mpc.ui.catalog.MarketplaceCatalog.p opular(MarketplaceCatalog.java:84)
at org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceViewer$3. run(MarketplaceViewer.java:241)
at org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)
Re: MarketPlace didn't work with my RCP [message #642588 is a reply to message #642409] Wed, 01 December 2010 21:21 Go to previous messageGo to next message
Eclipse UserFriend
Are you trying to use the data from the Eclipse Marketplace or have you implemented your own catalog? To implement you own catalog you need to be following the api specified at http://wiki.eclipse.org/Marketplace/REST
Re: MarketPlace didn't work with my RCP [message #642618 is a reply to message #642588] Thu, 02 December 2010 02:07 Go to previous messageGo to next message
Eclipse UserFriend
No, the data is from the Eclipse MarketPlace.
Re: MarketPlace didn't work with my RCP [message #642649 is a reply to message #642618] Thu, 02 December 2010 08:15 Go to previous messageGo to next message
Eclipse UserFriend
The NullPointException occurred here:
Set knownRepositories = new HashSet(
          Arrays.asList(repositoryTracker.getKnownRepositories(session)));


so repositoryTracker must be null. This variable was returned by ProvisioningUI:

RepositoryTracker repositoryTracker = ProvisioningUI.getDefaultUI().getRepositoryTracker();


But according to
http:// help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platfor m.doc.isv/reference/api/org/eclipse/equinox/p2/ui/Provisioni ngUI.html, the repository tracker must not be null. So are there some problems in my RCP configuration?
Re: MarketPlace didn't work with my RCP [message #658311 is a reply to message #642649] Mon, 07 March 2011 20:14 Go to previous message
Eclipse UserFriend
In my case I had to add the org.eclipse.equinox.ds bundle and it's required plugins.
Previous Topic:Install multiple soultions via Marketplace Client
Next Topic:Profile id _SELF_ is not registered - when using MPC in my RCP application
Goto Forum:
  


Current Time: Thu Feb 13 17:08:29 GMT 2025

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

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

Back to the top