facebook

css editor NPE

  1. MyEclipse IDE
  2.  > 
  3. General Development

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #495934 Reply

    Tom Parry
    Participant

    Whenever I try to use MyEclipse Css Editor I get a null pointer exception (either a new file or open existing file).
    Happens in 2016 Stable 1 as well as 2016 CI 5 and previously in 2015 CI 19.

    Does anyone use this editor?
    If not are there better alternatives for use within MyEclipse?

    Error log portion:

    
    !ENTRY org.eclipse.ui.workbench 4 2 2016-09-06 09:39:11.899
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
    !STACK 0
    java.lang.NullPointerException
    	at org.eclipse.wst.xml.xpath.ui.internal.views.XPathComputer.updateExpression(XPathComputer.java:122)
    	at org.eclipse.wst.xml.xpath.ui.internal.views.XPathComputer.setText(XPathComputer.java:146)
    	at org.eclipse.wst.xml.xpath.ui.internal.views.XPathView.recomputeXPath(XPathView.java:293)
    	at org.eclipse.wst.xml.xpath.ui.internal.views.XPathView.editorActivated(XPathView.java:378)
    	at org.eclipse.wst.xml.xpath.ui.internal.views.XPathView.access$5(XPathView.java:368)
    	at org.eclipse.wst.xml.xpath.ui.internal.views.XPathView$XPathPartListener.partActivated(XPathView.java:464)
    	at org.eclipse.ui.internal.WorkbenchPage$15.run(WorkbenchPage.java:4894)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    	at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:4891)
    	at org.eclipse.ui.internal.WorkbenchPage.access$19(WorkbenchPage.java:4870)
    	at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:202)
    	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$3.run(PartServiceImpl.java:245)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:242)
    	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:711)
    	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:639)
    	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:634)
    	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3242)
    	at org.eclipse.ui.internal.WorkbenchPage.access$25(WorkbenchPage.java:3149)
    	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:3131)
    	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3126)
    	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3090)
    	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3080)
    	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:541)
    	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:500)
    	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360)
    	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167)
    	at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:268)
    	at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:233)
    	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
    	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
    	at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50)
    	at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:229)
    	at org.eclipse.ui.navigator.CommonNavigatorManager$2.open(CommonNavigatorManager.java:191)
    	at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
    	at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:854)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
    	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
    	at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:851)
    	at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1168)
    	at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:449)
    	at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1275)
    	at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278)
    	at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:272)
    	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:313)
    	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
    	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
    	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
    	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
    	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
    	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
    	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:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:497)
    	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
    	at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
    

    Windows 10, Java 1.8.0_102

    #496051 Reply

    support-swapna
    Moderator

    Tom,

    Sorry that you are seeing this issue. This is an Eclipse issue and since MyEclipse is based on Eclipse, you are seeing it in MyEclipse. If the XPath view is open, then trying to open or create a CSS file will throw the null pointer exception. Though the exception is logged, I do not see any impact on the CSS files and they open fine in the editor.

    I will file a report with the Eclipse team and will keep you posted when I have more details about the fix. You can close the XPath view or ignore the exception and continue working. Let us know if you see the css editor not working as expected due to the exception logged.

    Apologies for inconvenience caused. Let us know if you have any questions.

    –Swapna
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: css editor NPE

You must be logged in to post in the forum log in