- This topic has 17 replies, 5 voices, and was last updated 18 years, 11 months ago by Riyad Kalla.
-
AuthorPosts
-
rknechteMemberIt seems that every time I update my MyEclipse the JSP editor won’t open it throws errors. Same issue happened when I installed V4.03GA this morning. I tried restaring Eclipse with the -clean option, and I even added this in my ecliplse.ini file so Elipse starts with the -clean option by default. To install 4.03GA I just renamed my old MyEclipse directory and installed 4.30GA “fresh” not as an “upgrade”.
When I try to open a JSP in the either the “Clasic” or the JSP Designer I get this error:
Unable to create editor. This message may be due to a bug in the editor, not a problem with the file you are trying to edit. First close this error message and then use “Open With…” to open the file in a different editor. Reason for the failure: An error has occurred when initializing the input for the the editor’s source page.When I click on the details button I get:
An error has occurred when initializing the input for the the editor’s source page.
at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createPages(HTMLMultiPageEditorPart.java:270)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)
at org.eclipse.ui.internal.EditorManager.busyRestoreEditorHelper(EditorManager.java:1237)
at org.eclipse.ui.internal.EditorManager.busyRestoreEditor(EditorManager.java:1102)
at org.eclipse.ui.internal.EditorManager$7.run(EditorManager.java:1064)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.EditorManager.restoreEditor(EditorManager.java:1062)
at org.eclipse.ui.internal.EditorManager$Editor.getEditor(EditorManager.java:1648)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2238)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2165)
at org.eclipse.ui.internal.WorkbenchPage.access$7(WorkbenchPage.java:2157)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2143)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2138)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2123)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:278)
at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:270)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:177)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2894)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2527)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1570)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306)
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:228)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315)
at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
at org.eclipse.core.launcher.Main.run(Main.java:942)
at org.eclipse.core.launcher.Main.main(Main.java:926)I do a lot with JSP and fighting this issue every time is a major hassel. Is there -anything- that I can do to ensure this issue doesn’t happen when I upgrade MyEclipse? Also How do I get the JSP editor to work now?
TIA!
Riyad KallaMemberThis is very frustrating we are sorry to hear this is happening. Can you post the information from MyEclispe > About > Configuration summary please?
rknechteMemberHere is what I have:
Thanks,
*** Date: Fri Oct 28 08:02:57 CDT 2005
*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_04*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 4.0.3 GA
Build id: 20051025-4.0.3-GA*** Eclipse details:
Eclipse PlatformVersion: 3.1.0
Build id: I20050401-1645Eclipse Project SDK
Version: 3.1.0
Build id: I20050401-1645Eclipse Platform
Version: 3.1.0
Build id: I20050401-1645Eclipse Java Development Tools
Version: 3.1.0
Build id: I20050401-1645Eclipse Graphical Editing Framework
Version: 3.0
Build id: 200502150200Eclipse Plug-in Development Environment
Version: 3.1.0
Build id: I20050401-1645Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
880_2c
-clean
-vm
C:\WINDOWS\system32\javaw.exe
Riyad KallaMemberAhh, ok the reason you are getting this is because you are not running the final GA version of Eclipse 3.1 or 3.1.1, you are running a pre-3.1 release M-build. The best medicine here is to download Eclipse 3.1.1 SDK, unzip it to a new location, reinstall MyEclipse against that new directory and then setup a new workspace and pull your projects and settings into it using File > Import. If you choose to use the same workspace, be sure to add -clean to the command line you use to start Eclipse.
rknechteMemberMy eclipse.ini has:
-clean -vmargs -Xmx700m -Xms200m -XX:MaxPermSize=128m -Dide.gc=true
Riyad KallaMemberThat’s fine, but you are still running an unfinal release of Eclipse, which is why you are having the problem.
rknechteMemberOk cool, I’m downloading the new Eclipse 3.1.1 SDk now I’ll re-install everything and try that.
Thanks,
andre_fernandoMemberHi,
I’m getting the same issue, although I’ve put “-clean” parameter and have Eclipse 3.1.1. Sometimes it works, others not.
*** Date: Tue Nov 08 23:24:31 BRST 2005
*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.4.2_06*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 4.0.3 GA
Build id: 20051025-4.0.3-GA*** Eclipse details:
Eclipse SDKVersion: 3.1.1
Build id: M20050929-0840Eclipse Platform
Version: 3.1.1
Build id: M20050929-0840Eclipse RCP
Version: 3.1.1
Build id: M20050929-0840Eclipse Java Development Tools
Version: 3.1.1
Build id: M20050929-0840Eclipse Plug-in Development Environment
Version: 3.1.1
Build id: M20050929-0840Eclipse Project SDK
Version: 3.1.1
Build id: M20050929-0840Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\eclipse 3.1\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
904_3c
-clean -vmargs
-Xms40m
-Xmx256m
-vm
C:\WINDOWS\system32\javaw.exeThanks.
Riyad KallaMemberandre,
You are getting the cannot create part error? Is it just sometimes or all the time? Do you have any com.ibm.* plugin directories under your <eclipse dir>\plugins directory?
andre_fernandoMemberYep, Rknechte’s error:
An error has occurred when initializing the input for the the editor’s source page.
at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createPages(HTMLMultiPageEditorPart.java:270)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)
at org.eclipse.ui.internal.EditorManager.busyRestoreEditorHelper(EditorManager.java:1237)
at org.eclipse.ui.internal.EditorManager.busyRestoreEditor(EditorManager.java:1102)
at org.eclipse.ui.internal.EditorManager$7.run(EditorManager.java:1064)I’d say it’s all the time…
I don’t have com.ibm.* plugin directories in this folder, but i have others from these plugins:
Hibernate Synchronizer
Hibenate Tools
Spring IDE
andre_fernandoMemberI figured out…
I deleted these lines from my .jsp file and the editor was able to run:
<%@ page contentType=”text/html;charset=UTF-8″ language=”java” %>
<%@ taglib prefix=”c” uri=”http://java.sun.com/jstl/core” %>
<%@ taglib prefix=”fmt” uri=”http://java.sun.com/jstl/fmt” %>
<%@ taglib prefix=”spring” uri=”http://www.springframework.org/tags” %>What is wrong? Can’t I have TagLib declarations in JSP files?
andre_fernandoMemberI did a clean instalation Eclipse/MyEclipse and the problem continues. This is my View Error Log:
!SESSION 2005-11-09 11:23:32.45 ————————————————
eclipse.buildId=M20050929-0840
java.version=1.4.2_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -clean!ENTRY com.genuitec.eclipse.core 1 0 2005-11-09 11:23:56.201
!MESSAGE Unable to locate .myeclipse.properties file!ENTRY org.eclipse.ui 4 0 2005-11-09 11:23:57.357
!MESSAGE Unable to create editor ID com.genuitec.eclipse.webdesigner.jsp: An error has occurred when initializing the input for the the editor’s source page.
!STACK 0
An error has occurred when initializing the input for the the editor’s source page.
at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createPages(HTMLMultiPageEditorPart.java:270)
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.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:258)
at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1221)
at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.java:949)
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.EditorManager.restoreState(EditorManager.java:944)
at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2576)
at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1819)
at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2566)
at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2515)
at org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1514)
at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1263)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
at org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1258)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1512)
at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1491)
at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374)
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.Workbench.restoreState(Workbench.java:1318)
at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:700)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
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)!ENTRY org.eclipse.ui 4 0 2005-11-09 11:24:28.670
!MESSAGE Unable to create editor ID com.genuitec.eclipse.webdesigner.jsp: An error has occurred when initializing the input for the the editor’s source page.
!STACK 0
An error has occurred when initializing the input for the the editor’s source page.
at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createPages(HTMLMultiPageEditorPart.java:270)
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)
Riyad KallaMemberOk thank you for trying all those things. First let’s try a new workspace: File > Switch Workspace > C:\tempworkspace, hit OK. Now create a new web project and copy your faulty JSP into it (including the taglib entries you had previously) now try and open it, did it wokr? If not, try and remove the headers line by line until the page opens, narrow down which line is casuing the problem.
andre_fernandoMemberHi,
It’s solved. I turned this project into a Web Project and added Struts Capabilities. It worked. I was following the Startup Guide and tried to use JSP Editor with another project. 🙂
It’s not possible to improve these message errors!?
Thanks.
Riyad KallaMemberIt’s solved. I turned this project into a Web Project and added Struts Capabilities. It worked. I was following the Startup Guide and tried to use JSP Editor with another project. 🙂
Yes following our guides is generally a good idea, and when asking for support is is handy to mention derivations you might have made, this was a lot of wasted effort on both our parts.
It’s not possible to improve these message errors!?
No, due to strong user demand we added limited web editing support to plain Java projects, this means the root of your project is treated as your web root, so given that these error messages were correct.
-
AuthorPosts