java.lang.ClassCastException: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator

SpringSource Issue Tracker | Frank Henningsen | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    STS 3.6.4 throws ClassCastException when opening Marketplace. Has been working recently What steps will reproduce the problem? 1. Open Help -> Eclipse Marketplace 2. STS throws exeption, see below -- Error Details -- Date: Tue Apr 28 10:40:51 CEST 2015 Message: Cannot open Eclipse Marketplace Severity: Error Product: Spring Tool Suite 3.6.4.201503100339-RELEASE (org.springsource.sts.ide) Plugin: org.eclipse.epp.mpc.ui Session Data: eclipse.buildId=3.6.4.201503100339-RELEASE-e44 java.version=1.7.0_40 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=da_DK Framework arguments: -product org.springsource.sts.ide Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.springsource.sts.ide Exception Stack Trace: org.eclipse.core.runtime.CoreException: Cannot install remote marketplace locations: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand.execute(MarketplaceWizardCommand.java:103) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294) at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:229) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:149) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:825) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:701) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$6(HandledContributionItem.java:685) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:613) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) Caused by: java.lang.ClassCastException: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator at org.eclipse.epp.internal.mpc.core.ServiceHelperImpl.doGetMarketplaceServiceLocator(ServiceHelperImpl.java:62) at org.eclipse.epp.mpc.core.service.ServiceHelper.getMarketplaceServiceLocator(ServiceHelper.java:37) at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand$5.run(MarketplaceWizardCommand.java:274) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122) Contains: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator java.lang.ClassCastException: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator at org.eclipse.epp.internal.mpc.core.ServiceHelperImpl.doGetMarketplaceServiceLocator(ServiceHelperImpl.java:62) at org.eclipse.epp.mpc.core.service.ServiceHelper.getMarketplaceServiceLocator(ServiceHelper.java:37) at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand$5.run(MarketplaceWizardCommand.java:274) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122) -- Error Details -- Date: Tue Apr 28 10:40:51 CEST 2015 Message: Cannot install remote marketplace locations: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator Severity: Error Product: Spring Tool Suite 3.6.4.201503100339-RELEASE (org.springsource.sts.ide) Plugin: org.eclipse.epp.mpc.ui Exception Stack Trace: java.lang.ClassCastException: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator at org.eclipse.epp.internal.mpc.core.ServiceHelperImpl.doGetMarketplaceServiceLocator(ServiceHelperImpl.java:62) at org.eclipse.epp.mpc.core.service.ServiceHelper.getMarketplaceServiceLocator(ServiceHelper.java:37) at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand$5.run(MarketplaceWizardCommand.java:274) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122) -- Error Details -- Date: Tue Apr 28 10:40:51 CEST 2015 Message: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator Severity: Error Product: Spring Tool Suite 3.6.4.201503100339-RELEASE (org.springsource.sts.ide) Plugin: org.eclipse.epp.mpc.ui Exception Stack Trace: java.lang.ClassCastException: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator at org.eclipse.epp.internal.mpc.core.ServiceHelperImpl.doGetMarketplaceServiceLocator(ServiceHelperImpl.java:62) at org.eclipse.epp.mpc.core.service.ServiceHelper.getMarketplaceServiceLocator(ServiceHelper.java:37) at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand$5.run(MarketplaceWizardCommand.java:274) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

    SpringSource Issue Tracker | 2 years ago | Frank Henningsen
    java.lang.ClassCastException: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator
  2. 0

    STS 3.6.4 throws ClassCastException when opening Marketplace. Has been working recently What steps will reproduce the problem? 1. Open Help -> Eclipse Marketplace 2. STS throws exeption, see below -- Error Details -- Date: Tue Apr 28 10:40:51 CEST 2015 Message: Cannot open Eclipse Marketplace Severity: Error Product: Spring Tool Suite 3.6.4.201503100339-RELEASE (org.springsource.sts.ide) Plugin: org.eclipse.epp.mpc.ui Session Data: eclipse.buildId=3.6.4.201503100339-RELEASE-e44 java.version=1.7.0_40 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=da_DK Framework arguments: -product org.springsource.sts.ide Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.springsource.sts.ide Exception Stack Trace: org.eclipse.core.runtime.CoreException: Cannot install remote marketplace locations: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand.execute(MarketplaceWizardCommand.java:103) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294) at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:229) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:149) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:825) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:701) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$6(HandledContributionItem.java:685) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:613) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) Caused by: java.lang.ClassCastException: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator at org.eclipse.epp.internal.mpc.core.ServiceHelperImpl.doGetMarketplaceServiceLocator(ServiceHelperImpl.java:62) at org.eclipse.epp.mpc.core.service.ServiceHelper.getMarketplaceServiceLocator(ServiceHelper.java:37) at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand$5.run(MarketplaceWizardCommand.java:274) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122) Contains: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator java.lang.ClassCastException: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator at org.eclipse.epp.internal.mpc.core.ServiceHelperImpl.doGetMarketplaceServiceLocator(ServiceHelperImpl.java:62) at org.eclipse.epp.mpc.core.service.ServiceHelper.getMarketplaceServiceLocator(ServiceHelper.java:37) at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand$5.run(MarketplaceWizardCommand.java:274) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122) -- Error Details -- Date: Tue Apr 28 10:40:51 CEST 2015 Message: Cannot install remote marketplace locations: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator Severity: Error Product: Spring Tool Suite 3.6.4.201503100339-RELEASE (org.springsource.sts.ide) Plugin: org.eclipse.epp.mpc.ui Exception Stack Trace: java.lang.ClassCastException: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator at org.eclipse.epp.internal.mpc.core.ServiceHelperImpl.doGetMarketplaceServiceLocator(ServiceHelperImpl.java:62) at org.eclipse.epp.mpc.core.service.ServiceHelper.getMarketplaceServiceLocator(ServiceHelper.java:37) at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand$5.run(MarketplaceWizardCommand.java:274) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122) -- Error Details -- Date: Tue Apr 28 10:40:51 CEST 2015 Message: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator Severity: Error Product: Spring Tool Suite 3.6.4.201503100339-RELEASE (org.springsource.sts.ide) Plugin: org.eclipse.epp.mpc.ui Exception Stack Trace: java.lang.ClassCastException: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator at org.eclipse.epp.internal.mpc.core.ServiceHelperImpl.doGetMarketplaceServiceLocator(ServiceHelperImpl.java:62) at org.eclipse.epp.mpc.core.service.ServiceHelper.getMarketplaceServiceLocator(ServiceHelper.java:37) at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand$5.run(MarketplaceWizardCommand.java:274) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

    SpringSource Issue Tracker | 2 years ago | Frank Henningsen
    org.eclipse.core.runtime.CoreException: Cannot install remote marketplace locations: org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.eclipse.epp.internal.mpc.core.ServiceLocator cannot be cast to org.eclipse.epp.mpc.core.service.IMarketplaceServiceLocator

      at org.eclipse.epp.internal.mpc.core.ServiceHelperImpl.doGetMarketplaceServiceLocator()
    2. org.eclipse.epp
      MarketplaceWizardCommand$5.run
      1. org.eclipse.epp.internal.mpc.core.ServiceHelperImpl.doGetMarketplaceServiceLocator(ServiceHelperImpl.java:62)
      2. org.eclipse.epp.mpc.core.service.ServiceHelper.getMarketplaceServiceLocator(ServiceHelper.java:37)
      3. org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand$5.run(MarketplaceWizardCommand.java:274)
      3 frames
    3. JFace
      ModalContext$ModalContextThread.run
      1. org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
      1 frame