Foros

Inicio » Liferay IDE » English

Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Mikko Torri
Opening a xml file in Liferay IDE file causes NPE in Eclipse Juno
27 de diciembre de 2012 6:12
Respuesta

Mikko Torri

Ranking: Junior Member

Mensajes: 33

Fecha de incorporación: 9 de mayo de 2011

Mensajes recientes

I updated Eclipse with it's own updater to the latest version of Juno and it seems it broke something?

I guess this might be an issue on Eclipse, rather than Liferay IDE.

When opening any xml file from my portlet project Eclipse has a NPE with on screen text "Failed to create the part's controls".
  1
  2eclipse.buildId=M20120914-1800
  3java.version=1.6.0_24
  4java.vendor=Sun Microsystems Inc.
  5BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fi_FI
  6Framework arguments:  -product org.eclipse.epp.package.jee.product
  7Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
  8
  9Error
 10Thu Dec 27 15:55:37 EET 2012
 11Error setting focus to : org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl null
 12
 13java.lang.NullPointerException
 14    at org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:467)
 15    at org.eclipse.sapphire.ui.SapphireEditor.pageChange(SapphireEditor.java:582)
 16    at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:292)
 17    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
 18    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
 19    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
 20    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
 21    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
 22    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
 23    at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3023)
 24    at org.eclipse.swt.custom.CTabFolder.onFocus(CTabFolder.java:1606)
 25    at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:266)
 26    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
 27    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
 28    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
 29    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
 30    at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2822)
 31    at org.eclipse.swt.widgets.Widget.wmSetFocus(Widget.java:2417)
 32    at org.eclipse.swt.widgets.Control.WM_SETFOCUS(Control.java:5152)
 33    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4598)
 34    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
 35    at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)
 36    at org.eclipse.swt.widgets.Control.forceFocus(Control.java:1098)
 37    at org.eclipse.swt.widgets.Control.setFocus(Control.java:3303)
 38    at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1040)
 39    at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1038)
 40    at org.eclipse.ui.internal.ErrorEditorPart.setFocus(ErrorEditorPart.java:110)
 41    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.delegateSetFocus(CompatibilityPart.java:178)
 42    at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
 43    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 44    at java.lang.reflect.Method.invoke(Unknown Source)
 45    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
 46    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
 47    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:235)
 48    at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:206)
 49    at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:106)
 50    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:566)
 51    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:532)
 52    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:521)
 53    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3084)
 54    at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:3003)
 55    at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2985)
 56    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
 57    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2981)
 58    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2940)
 59    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2931)
 60    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
 61    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
 62    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360)
 63    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167)
 64    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
 65    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
 66    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
 67    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
 68    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
 69    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
 70    at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
 71    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
 72    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 73    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
 74    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
 75    at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
 76    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
 77    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
 78    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
 79    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
 80    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
 81    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
 82    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
 83    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
 84    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
 85    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
 86    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
 87    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
 88    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
 89    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
 90    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
 91    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
 92    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
 93    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
 94    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
 95    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
 96    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
 97    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
 98    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
 99    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
100    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
101    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
102    at java.lang.reflect.Method.invoke(Unknown Source)
103    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
104    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
105    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
106    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)


  1
  2eclipse.buildId=M20120914-1800
  3java.version=1.6.0_24
  4java.vendor=Sun Microsystems Inc.
  5BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fi_FI
  6Framework arguments:  -product org.eclipse.epp.package.jee.product
  7Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
  8
  9Error
 10Thu Dec 27 15:55:37 EET 2012
 11
 12
 13java.lang.NullPointerException
 14    at org.eclipse.sapphire.ui.SapphireActionHandler.getPart(SapphireActionHandler.java:68)
 15    at org.eclipse.sapphire.ui.SapphireActionHandler.initFunctionContext(SapphireActionHandler.java:57)
 16    at org.eclipse.sapphire.ui.SapphireActionSystemPart.init(SapphireActionSystemPart.java:59)
 17    at org.eclipse.sapphire.ui.SapphireActionHandler.init(SapphireActionHandler.java:37)
 18    at org.eclipse.sapphire.ui.form.editors.masterdetails.MasterDetailsEditorPage.<init>(MasterDetailsEditorPage.java:211)
 19    at org.eclipse.sapphire.ui.form.editors.masterdetails.MasterDetailsEditorPage.<init>(MasterDetailsEditorPage.java:174)
 20    at org.eclipse.sapphire.ui.swt.xml.editor.SapphireEditorForXml.createFormPages(SapphireEditorForXml.java:91)
 21    at org.eclipse.sapphire.ui.SapphireEditor.addPages(SapphireEditor.java:507)
 22    at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
 23    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:358)
 24    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:129)
 25    at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:95)
 26    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:300)
 27    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 28    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 29    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 30    at java.lang.reflect.Method.invoke(Unknown Source)
 31    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
 32    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:859)
 33    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:839)
 34    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
 35    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:319)
 36    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)
 37    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
 38    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
 39    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
 40    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
 41    at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
 42    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:896)
 43    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:630)
 44    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
 45    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
 46    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
 47    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 48    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
 49    at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1114)
 50    at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
 51    at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
 52    at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
 53    at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
 54    at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
 55    at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
 56    at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
 57    at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
 58    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
 59    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
 60    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 61    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 62    at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
 63    at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
 64    at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
 65    at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
 66    at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
 67    at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
 68    at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
 69    at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:418)
 70    at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:385)
 71    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:579)
 72    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:315)
 73    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:985)
 74    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3079)
 75    at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:3003)
 76    at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2985)
 77    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
 78    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2981)
 79    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2940)
 80    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2931)
 81    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
 82    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
 83    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360)
 84    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167)
 85    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
 86    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
 87    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
 88    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
 89    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
 90    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
 91    at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
 92    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
 93    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 94    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
 95    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
 96    at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
 97    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
 98    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
 99    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
100    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
101    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
102    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
103    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
104    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
105    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
106    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
107    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
108    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
109    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
110    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
111    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
112    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
113    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
114    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
115    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
116    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
117    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
118    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
119    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
120    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
121    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
122    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
123    at java.lang.reflect.Method.invoke(Unknown Source)
124    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
125    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
126    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
127    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Gregory Amerson
RE: Opening a xml file in Liferay IDE file causes NPE in Eclipse Juno
27 de diciembre de 2012 17:49
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 937

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

This is likely due to an upgrade to Sapphire framework which Liferay IDE depends on. Currently it uses 0.5.3 and your system likely upgraded Sapphire to 0.6.0 which is not supported. Here is how you can fix it.
  1. Uninstall Liferay IDE
  2. Uninstall all Sapphire* features
  3. Re-Install Sapphire version 0.5.3 from this updatesite: http://download.eclipse.org/sapphire/0.5.3/repository
  4. Reinstall Liferay IDE from this updatesite: http://releases.liferay.com/tools/ide/eclipse/juno/stable/


Let me know if you have any issues or questions.
Mikko Torri
RE: Opening a xml file in Liferay IDE file causes NPE in Eclipse Juno
27 de diciembre de 2012 23:48
Respuesta

Mikko Torri

Ranking: Junior Member

Mensajes: 33

Fecha de incorporación: 9 de mayo de 2011

Mensajes recientes

Thanks Gregory, it works now.

Here's some observations I made:

I suspect that unistalling Liferay IDE also uninstalls Sapphire as I could not find any evidence of Sapphire in the uninstall dialog after uninstalling Liferay IDE.
And Liferay IDE offers to install Sapphire also, so I don't think you need to install Sapphire on it's own. (I installed Sapphire and selecting Liferay IDE dependencies failed the install because Sapphire was already installed.)
Gregory Amerson
RE: Opening a xml file in Liferay IDE file causes NPE in Eclipse Juno
27 de diciembre de 2012 23:54
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 937

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

Mikko Torri:
Thanks Gregory, it works now.

Here's some observations I made:

I suspect that unistalling Liferay IDE also uninstalls Sapphire as I could not find any evidence of Sapphire in the uninstall dialog after uninstalling Liferay IDE.
And Liferay IDE offers to install Sapphire also, so I don't think you need to install Sapphire on it's own. (I installed Sapphire and selecting Liferay IDE dependencies failed the install because Sapphire was already installed.)


Your exactly right, thanks Mikko for following up and glad things are working again for you.
Christophe Noel
RE: Opening a xml file in Liferay IDE file causes NPE in Eclipse Juno
3 de febrero de 2014 7:17
Respuesta

Christophe Noel

Ranking: Junior Member

Mensajes: 59

Fecha de incorporación: 28 de septiembre de 2012

Mensajes recientes

Hello guys,

I'm facing a similar issue with the Service Builder Configuration Editor: using "fresh" Liferay 1.6.2 or Liferay 2.0.0 GA1, I always get the "failed to create the part's controls" on any EXISTING service file.

My workaround is to empty the service.xml file with no entites, open it with Configuration Editor, then put back its content.
I'm working with a Windows 7 environment, JDK 7 .51.

Thanks for your support.

For any purpose, here is the stack trace:
  1
  2java.lang.NullPointerException
  3    at org.eclipse.sapphire.ui.diagram.StandardConnectionService.list(StandardConnectionService.java:194)
  4    at org.eclipse.sapphire.ui.swt.gef.model.DiagramModel.constructConnections(DiagramModel.java:162)
  5    at org.eclipse.sapphire.ui.swt.gef.model.DiagramModel.<init>(DiagramModel.java:53)
  6    at org.eclipse.sapphire.ui.swt.gef.SapphireDiagramEditor.<init>(SapphireDiagramEditor.java:226)
  7    at com.liferay.ide.service.ui.editor.ServiceBuilderEditor.createDiagramPages(ServiceBuilderEditor.java:63)
  8    at org.eclipse.sapphire.ui.SapphireEditor.addPages(SapphireEditor.java:487)
  9    at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
 10    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:358)
 11    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:142)
 12    at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
 13    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:323)
 14    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 15    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 16    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 17    at java.lang.reflect.Method.invoke(Unknown Source)
 18    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
 19    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877)
 20    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
 21    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119)
 22    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333)
 23    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254)
 24    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
 25    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
 26    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
 27    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
 28    at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
 29    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
 30    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
 31    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
 32    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
 33    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
 34    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 35    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
 36    at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1096)
 37    at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:66)
 38    at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
 39    at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
 40    at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
 41    at org.eclipse.swt.widgets.Display.syncExec(Display.java:4688)
 42    at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:205)
 43    at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
 44    at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
 45    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
 46    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
 47    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 48    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 49    at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
 50    at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
 51    at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
 52    at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
 53    at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
 54    at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
 55    at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
 56    at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:576)
 57    at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:543)
 58    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:610)
 59    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:322)
 60    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1034)
 61    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3112)
 62    at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:3034)
 63    at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:3016)
 64    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
 65    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3012)
 66    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2976)
 67    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2967)
 68    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:534)
 69    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:493)
 70    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360)
 71    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167)
 72    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:268)
 73    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:233)
 74    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
 75    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
 76    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
 77    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
 78    at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:47)
 79    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
 80    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 81    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
 82    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
 83    at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
 84    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
 85    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
 86    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
 87    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
 88    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
 89    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
 90    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
 91    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
 92    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
 93    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
 94    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
 95    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
 96    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
 97    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
 98    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
 99    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
100    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
101    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
102    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
103    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
104    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
105    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
106    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
107    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
108    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
109    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
110    at java.lang.reflect.Method.invoke(Unknown Source)
111    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
112    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
113    at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
114    at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Gregory Amerson
RE: Opening a xml file in Liferay IDE file causes NPE in Eclipse Juno
10 de febrero de 2014 22:55
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 937

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

Hey Christophe,

Can you post your service.xml file for us to try to replicate the problem?
Christophe Noel
RE: Opening a xml file in Liferay IDE file causes NPE in Eclipse Juno
2 de abril de 2014 7:15
Respuesta

Christophe Noel

Ranking: Junior Member

Mensajes: 59

Fecha de incorporación: 28 de septiembre de 2012

Mensajes recientes

Hi Gregory,

I get the error on any service.xml (excepted when creating a new one).
BUT since I use version 2.0.1 of the IDE (and moved to Maven), I don't have the problem anymore !

I suppose an Eclipse dependency did the issue.

Christophe.