Forums

Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
George Stafford
Error After Upgrade
February 11, 2013 8:11 AM
Answer

George Stafford

Rank: Junior Member

Posts: 62

Join Date: October 1, 2012

Recent Posts

So I updated my Eclipse Juno this morning and now I can't view Liferay XML files with the plugin. I uninstalled and re-installed Liferay and still no joy. It turns out I had updated my Sapphire installation to 0.6. Don't do this people emoticon You'll end up with this:

  1org.eclipse.core.runtime.CoreException: Plug-in "com.liferay.ide.eclipse.service.ui" was unable to instantiate class "com.liferay.ide.eclipse.service.ui.ServiceBuilderEditor".
  2    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
  3    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
  4    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
  5    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
  6    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
  7    at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:273)
  8    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
  9    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:269)
 10    at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:235)
 11    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:283)
 12    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPart(CompatibilityPart.java:249)
 13    at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPart(CompatibilityEditor.java:60)
 14    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:286)
 15    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 16    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 17    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 18    at java.lang.reflect.Method.invoke(Unknown Source)
 19    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
 20    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:859)
 21    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:839)
 22    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
 23    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:319)
 24    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)
 25    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
 26    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
 27    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
 28    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
 29    at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
 30    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:896)
 31    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:630)
 32    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
 33    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
 34    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
 35    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 36    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
 37    at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1114)
 38    at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
 39    at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
 40    at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
 41    at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
 42    at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
 43    at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
 44    at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
 45    at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
 46    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
 47    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
 48    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 49    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 50    at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
 51    at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
 52    at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
 53    at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
 54    at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
 55    at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
 56    at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
 57    at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:418)
 58    at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:385)
 59    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:579)
 60    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:315)
 61    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:985)
 62    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3079)
 63    at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:3003)
 64    at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2985)
 65    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
 66    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2981)
 67    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2940)
 68    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2931)
 69    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
 70    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
 71    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360)
 72    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167)
 73    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
 74    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
 75    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
 76    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
 77    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
 78    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
 79    at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
 80    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
 81    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 82    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
 83    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
 84    at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
 85    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
 86    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
 87    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
 88    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
 89    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
 90    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
 91    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
 92    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
 93    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
 94    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
 95    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
 96    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
 97    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
 98    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
 99    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
100    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
101    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
102    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
103    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
104    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
105    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
106    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
107    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
108    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
109    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
110    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
111    at java.lang.reflect.Method.invoke(Unknown Source)
112    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
113    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
114    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
115    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
116Caused by: java.lang.NoSuchMethodError: org.eclipse.sapphire.ui.swt.xml.editor.SapphireEditorForXml.<init>(Ljava/lang/String;)V
117    at com.liferay.ide.eclipse.service.ui.ServiceBuilderEditor.<init>(ServiceBuilderEditor.java:55)
118    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
119    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
120    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
121    at java.lang.reflect.Constructor.newInstance(Unknown Source)
122    at java.lang.Class.newInstance0(Unknown Source)
123    at java.lang.Class.newInstance(Unknown Source)
124    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
125    ... 112 more


So a bit of 'Beware' for users and for the IDE folks - need to talk to those people at Sapphire and see if they're going to have a stable version soon. Changing out methods like that is bad form emoticon
Gregory Amerson
RE: Error After Upgrade
February 21, 2013 8:42 PM
Answer

Gregory Amerson

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1024

Join Date: February 16, 2010

Recent Posts

Hey George,

Sorry about this hiccup. Thanks for posting this information to help out others. It turns out that I did not set an upper limit on the requirements for the Liferay IDE plugins that require sapphire and the APIs changed from 0.5 to 0.6 and when your Eclipse wanted to update to sapphire 0.6 which is shipping with the latest Juno updates, it broke.

The solution for you if you haven't already figured this out would be this:

  1. uninstall Liferay IDE
  2. uninstall Sapphire features (all of them)
  3. Re-install Liferay IDE 1.6.1 and be sure and check "don't contact additional sites" in the install dialog


This should re-install Liferay IDE with the compatibly Sapphire 0.5.4 version. Let me know if you have any trouble with this process.
George Stafford
RE: Error After Upgrade
February 25, 2013 7:28 AM
Answer

George Stafford

Rank: Junior Member

Posts: 62

Join Date: October 1, 2012

Recent Posts

Hi Greg,

Yes, I did get this figured out and repaired for me and my colleague. I actually did what you're saying here without the ignore. Just have to make sure Sapphire stays at 0.5. The plugins work great for me, thanks for creating them.

Thanks,
George