facebook

NPE while openning JSP page using the JSP editor

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #270546 Reply

    lizhap
    Member

    MyEclipse version 4.1.1 GA
    Eclipse version 3.1.1
    Running on window XP.

    I got the following error when I tried to open a JSP
    page using the JSP editor. It worked before and I am
    not aware of any changes on my eclipse environment.
    After I got this message. I start my eclipse with -clean flag,
    but it can’t help me. It is still not able to open my JSP page. Is
    some one have any idea to make it work?

    “Unable to create this part due to an internal error.
    Reason for the failure: An unexpected exception was
    thrown.”

    java.lang.NullPointerException
    at
    com.genuitec.eclipse.integration.Integrator.structuredTextEditor_1074_3(Unknown
    Source)
    at
    com.genuitec.eclipse.integration.Integrator.structuredTextEditor_1074_5(Unknown
    Source)
    at
    com.ibm.sse.editor.StructuredTextEditor.isTabConversionEnabled(StructuredTextEditor.java:2765)
    at
    com.ibm.sse.editor.StructuredTextEditor.createPartControl(StructuredTextEditor.java:896)
    at
    org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:155)
    at
    org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:132)
    at
    com.genuitec.eclipse.webdesigner.htmleditor.HTMLMultiPageEditorPart.createSourcePage(HTMLMultiPageEditorPart.java:299)
    at
    com.genuitec.eclipse.webdesigner.jspeditor.JSPMultiPageEditorPart.createSourcePage(JSPMultiPageEditorPart.java:54)
    at
    com.genuitec.eclipse.webdesigner.htmleditor.HTMLMultiPageEditorPart.createPages(HTMLMultiPageEditorPart.java:231)
    at
    org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)
    at
    org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
    at
    org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
    at
    org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
    at
    org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:223)
    at
    org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2362)
    at
    org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
    at
    org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2287)
    at
    org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2273)
    at
    org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at
    org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2268)
    at
    org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2249)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
    at
    org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:251)
    at
    org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:131)
    at
    org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
    at
    org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:169)
    at
    org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:153)
    at
    org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:222)
    at
    org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:198)
    at
    org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:296)
    at
    org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:869)
    at
    org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:741)
    at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at
    org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at
    org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
    at
    org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
    at
    org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:739)
    at
    org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:968)
    at
    org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1067)
    at
    org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:243)
    at
    org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:238)
    at
    org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:277)
    at
    org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at
    org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at
    org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at
    org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at
    org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at
    org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at
    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at
    org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at
    org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at
    org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at
    org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)

    #270550

    Loyal Water
    Member

    Hi lizhap,
    Can you switch to a brand new workspace and create a project and try opening the JSP from there and see if it works ?

    #270590

    lizhap
    Member

    I did it. But it is still can’t open my JSP page

    #270624

    Loyal Water
    Member

    Hi lizhap,
    In that case I suggest you download the 5.5.1 “All In One” installer and try setting up MyEclipse using that. That should help you get rid of the NPE.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: NPE while openning JSP page using the JSP editor

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