Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 52147 - [OLE] Unable to create part: <filename.jsp> when double cliking on JSP files
Summary: [OLE] Unable to create part: <filename.jsp> when double cliking on JSP files
Status: RESOLVED DUPLICATE of bug 49795
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-16 09:06 EST by Siva CLA
Modified: 2004-02-17 12:27 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Siva CLA 2004-02-16 09:06:52 EST
I am using Eclipse 3.0M7 on Windows 2000. I used sysdeo plugin and configured 
it successfully on Eclipse. I created a new project and was trying to write a 
sample JSP page. I right clicked on the project and clicked on New-->File and 
after I typed in the filename it opened up notepad. I wrote some code, closed 
and saved it and when I tried to open it in Eclipse it shows up an 
error "unable to create part:<filename>.jsp". In the editor window there is an 
error which said "An error has occurred when creating this editor". Attached is 
the stack trace from the log file.

!SESSION Feb 16, 2004 08:42:06.744 ---------------------------------------------
java.version=1.4.2_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.core.runtime 4 2 Feb 16, 2004 08:42:06.744
!MESSAGE Problems occurred when invoking code from plug-
in: "org.eclipse.core.runtime".
!STACK 0
org.eclipse.swt.SWTException: Class ID not found in registry result = -
2147221018
	at org.eclipse.swt.ole.win32.OLE.error(OLE.java:317)
	at org.eclipse.swt.ole.win32.OleClientSite.<init>
(OleClientSite.java:178)
	at 
org.eclipse.ui.internal.editorsupport.win32.OleEditor.createClientSite
(OleEditor.java:227)
	at 
org.eclipse.ui.internal.editorsupport.win32.OleEditor.createPartControl
(OleEditor.java:215)
	at org.eclipse.ui.internal.PartPane$1.run(PartPane.java:121)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:819)
	at org.eclipse.core.runtime.Platform.run(Platform.java:493)
	at org.eclipse.ui.internal.PartPane.createChildControl
(PartPane.java:117)
	at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:224)
	at org.eclipse.ui.internal.EditorWorkbook.createPage
(EditorWorkbook.java:157)
	at org.eclipse.ui.internal.EditorWorkbook.add(EditorWorkbook.java:98)
	at org.eclipse.ui.internal.EditorArea.addEditor(EditorArea.java:57)
	at org.eclipse.ui.internal.EditorPresentation.openEditor
(EditorPresentation.java:351)
	at org.eclipse.ui.internal.EditorManager$2.run(EditorManager.java:549)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
	at org.eclipse.ui.internal.EditorManager.createEditorTab
(EditorManager.java:538)
	at org.eclipse.ui.internal.EditorManager.openSystemInPlaceEditor
(EditorManager.java:688)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor
(EditorManager.java:440)
	at org.eclipse.ui.internal.EditorManager.openEditor
(EditorManager.java:425)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2099)
	at org.eclipse.ui.internal.WorkbenchPage.access$6
(WorkbenchPage.java:2042)
	at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2029)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2024)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2007)
	at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:258)
	at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:251)
	at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent
(OpenWithMenu.java:166)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2348)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2029)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1550)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:265)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:47)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:257)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:104)
	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.basicRun(Main.java:279)
	at org.eclipse.core.launcher.Main.run(Main.java:742)
	at org.eclipse.core.launcher.Main.main(Main.java:581)


Thanks.
Comment 1 Grant Gayed CLA 2004-02-16 10:05:59 EST
This looks like ui is asking ole in swt to do something it can't, and then 
isn't catching the exception in OleEditor line 227; OleEditor's constructors 
are spec'd to throw such errors.  I also find the error line "unable to create 
part:<filename>.jsp" to be suspicious.  Moving to ui, if I'm wrong then please 
move it back.
Comment 2 Tod Creasey CLA 2004-02-17 12:27:32 EST

*** This bug has been marked as a duplicate of 49795 ***