| Summary: | [OLE] Get "Unable to create part: <filename> when double clicking on Word docs | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Jon Christiansen <eclipse> | ||||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | Felipe Heidrich <eclipse.felipe> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | djinnn, lars.stucki, snorthov, veronika_irvine | ||||||
| Version: | 2.0 | Keywords: | triaged | ||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | stalebug | ||||||||
| Attachments: |
|
||||||||
|
Description
Jon Christiansen
After clicking the ok button, in the window where the document should be shown, there is the message in red: "An error has occurred when creating this editor". Excel documents are opening fine. Which build? Is there anything in the .log file (under .metadata)? Build: Release 2.0 On Windows XP Pro, Word 2000 SR-1 From logfile: !SESSION Jul 04, 2002 21:55:03.106 -------------------------------------------- - java.version=1.3.1_03 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 -install file:D:/eclipse/ !ENTRY org.eclipse.ui 4 2 Jul 04, 2002 21:55:03.106 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui". !STACK 0 org.eclipse.swt.SWTException: Failed to find requested interface on OLE Object. result = -2147467262 at org.eclipse.swt.ole.win32.OLE.error(OLE.java:301) at org.eclipse.swt.ole.win32.OleClientSite.addObjectReferences (OleClientSite.java:378) at org.eclipse.swt.ole.win32.OleClientSite.<init> (OleClientSite.java:191) at org.eclipse.ui.internal.editorsupport.win32.OleEditor.createClientSite (OleEditor.java:203) at org.eclipse.ui.internal.editorsupport.win32.OleEditor.createPartControl (OleEditor.java:191) at org.eclipse.ui.internal.PartPane$4.run(PartPane.java:136) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:831) at org.eclipse.core.runtime.Platform.run(Platform.java:416) at org.eclipse.ui.internal.PartPane.createChildControl (PartPane.java:134) at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:178) at org.eclipse.ui.internal.EditorWorkbook.createPage (EditorWorkbook.java:230) at org.eclipse.ui.internal.EditorWorkbook.add(EditorWorkbook.java:85) at org.eclipse.ui.internal.EditorArea.addEditor(EditorArea.java:45) at org.eclipse.ui.internal.EditorPresentation.openEditor (EditorPresentation.java:350) at org.eclipse.ui.internal.EditorManager$2.run(EditorManager.java:531) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:66) at org.eclipse.ui.internal.EditorManager.createEditorTab (EditorManager.java:520) at org.eclipse.ui.internal.EditorManager.openEditorFromInput (EditorManager.java:312) at org.eclipse.ui.internal.EditorManager.openEditor (EditorManager.java:386) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:1680) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:1591) at org.eclipse.ui.actions.OpenFileAction.openFile (OpenFileAction.java:91) at org.eclipse.ui.actions.OpenSystemEditorAction.run (OpenSystemEditorAction.java:91) at org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAction (OpenActionGroup.java:112) at org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAction (MainActionGroup.java:177) at org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen (ResourceNavigator.java:531) at org.eclipse.ui.views.navigator.ResourceNavigator$6.open (ResourceNavigator.java:303) at org.eclipse.jface.viewers.StructuredViewer.fireOpen (StructuredViewer.java:320) at org.eclipse.jface.viewers.StructuredViewer.handleOpen (StructuredViewer.java:494) at org.eclipse.jface.viewers.StructuredViewer$3.handleOpen (StructuredViewer.java:581) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent (OpenStrategy.java:198) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:195) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:222) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1529) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1291) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1177) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1160) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:775) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:248) at org.eclipse.core.launcher.Main.run(Main.java:698) at org.eclipse.core.launcher.Main.main(Main.java:534) Version: 2.0 Build id: 200206271827 Veronika, any idea what could cause this? It means that this installation of Word is missing one of:
IViewObject2
IOleObject
which is quite bizarre.
My guess would be that there is something unusual (missing) about this
installation of Word. Are you aware of anything?
Try this test. Open Excel (outside of Eclipse) and select Insert -> Object -
> "Create From File" and select the same file you are trying to open in
Eclipse. Does the document embed correctly?
I'm not aware of anything unusual with this install of Office. I was successful in following your directions in embedding the same document in an Excel document without any problems. -Jon Reassigning to SWT since it appears to be a problem in OleClientSite. For VI... Eclipse 2.0 unable to create/open Microsoft Word document on Windows XP 5.1.2600. I have Microsoft Word 97 SR-2. org.eclipse.swt.SWTException: Failed to find requested interface on OLE Object. result = -2147467262 at org.eclipse.swt.ole.win32.OLE.error(OLE.java:301) at org.eclipse.swt.ole.win32.OleClientSite.addObjectReferences (OleClientSite.java:378) at org.eclipse.swt.ole.win32.OleClientSite.<init>(OleClientSite.java:191) at org.eclipse.ui.internal.editorsupport.win32.OleEditor.createClientSite (OleEditor.java:203) at org.eclipse.ui.internal.editorsupport.win32.OleEditor.createPartControl (OleEditor.java:191) at org.eclipse.ui.internal.PartPane$4.run(PartPane.java:136) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:831) at org.eclipse.core.runtime.Platform.run(Platform.java:416) at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:134) at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:178) at org.eclipse.ui.internal.EditorWorkbook.createPage(EditorWorkbook.java:230) at org.eclipse.ui.internal.EditorWorkbook.add(EditorWorkbook.java:85) at org.eclipse.ui.internal.EditorArea.addEditor(EditorArea.java:45) at org.eclipse.ui.internal.EditorPresentation.openEditor (EditorPresentation.java:350) at org.eclipse.ui.internal.EditorManager$2.run(EditorManager.java:531) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:66) at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:520) at org.eclipse.ui.internal.EditorManager.openEditorFromInput (EditorManager.java:312) at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:386) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1680) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1591) at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:91) at org.eclipse.ui.actions.OpenSystemEditorAction.run (OpenSystemEditorAction.java:91) at org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAction (OpenActionGroup.java:112) at org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAction (MainActionGroup.java:177) at org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen (ResourceNavigator.java:531) at org.eclipse.ui.views.navigator.ResourceNavigator$6.open (ResourceNavigator.java:303) at org.eclipse.jface.viewers.StructuredViewer.fireOpen (StructuredViewer.java:320) at org.eclipse.jface.viewers.StructuredViewer.handleOpen (StructuredViewer.java:494) at org.eclipse.jface.viewers.StructuredViewer$3.handleOpen (StructuredViewer.java:581) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:198) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:195) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:222) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1529) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1291) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1177) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1160) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:775) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) 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:248) at org.eclipse.core.launcher.Main.run(Main.java:698) at org.eclipse.core.launcher.Main.main(Main.java:534) The problem probably lies in the version of Word you have installed. Are the documents you are trying to open also created with Word 97 or something later? Can you create a document with Word 97, import it into Eclipse and read it? I just got a brand new machine, installed Windows XP fresh and then all service packs. Then installed Eclipse. Then installed Office 2000 fresh. Then applied Office 2000 service packs SP1-a and SP3. Now using Eclipse build 200303192032 File opens fine with "System Editor", but fails with "Unable to create part: <filename>" error when opening with default editor. Still getting the error: !ENTRY org.eclipse.ui.workbench 4 2 Mar 22, 2003 15:57:33.203 !MESSAGE Problems occurred when invoking code from plug- in: "org.eclipse.ui.workbench". !STACK 0 org.eclipse.swt.SWTException: Failed to find requested interface on OLE Object. result = -2147467262 at org.eclipse.swt.ole.win32.OLE.error(OLE.java:312) at org.eclipse.swt.ole.win32.OleClientSite.addObjectReferences (OleClientSite.java:381) at org.eclipse.swt.ole.win32.OleClientSite.<init> (OleClientSite.java:194) 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$4.run(PartPane.java:141) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:937) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.ui.internal.PartPane.createChildControl (PartPane.java:137) at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:186) at org.eclipse.ui.internal.EditorWorkbook.createPage (EditorWorkbook.java:387) at org.eclipse.ui.internal.EditorWorkbook.add(EditorWorkbook.java:123) at org.eclipse.ui.internal.EditorArea.addEditor(EditorArea.java:55) at org.eclipse.ui.internal.EditorPresentation.openEditor (EditorPresentation.java:351) at org.eclipse.ui.internal.EditorManager$2.run(EditorManager.java:585) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:69) at org.eclipse.ui.internal.EditorManager.createEditorTab (EditorManager.java:574) at org.eclipse.ui.internal.EditorManager.openEditorFromInput (EditorManager.java:341) at org.eclipse.ui.internal.EditorManager.openEditor (EditorManager.java:424) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor (WorkbenchPage.java:2056) at org.eclipse.ui.internal.WorkbenchPage.access$6 (WorkbenchPage.java:2004) at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:1991) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:1986) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:1887) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor (EditorUtility.java:129) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor (EditorUtility.java:102) at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open (OpenActionUtil.java:47) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:158) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:147) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun (SelectionDispatchAction.java:191) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run (SelectionDispatchAction.java:169) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen (PackageExplorerActionGroup.java:324) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$3.open (PackageExplorerPart.java:323) at org.eclipse.jface.viewers.StructuredViewer$2.run (StructuredViewer.java:397) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:937) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.jface.viewers.StructuredViewer.fireOpen (StructuredViewer.java:395) at org.eclipse.jface.viewers.StructuredViewer.handleOpen (StructuredViewer.java:605) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen (StructuredViewer.java:694) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent (OpenStrategy.java:209) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:204) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:233) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1842) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1549) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) 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:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583) Can you attach a small word document that has the problem? Does it also happen when you create a document from the version of Word that was installed with Windows XP? FYI: I have the same problem. WinXP Pro SP-1, Word 2002 SP-1 (Word is part of Office XP preinstalled by Dell). Eclipse 2.1.0, Build id: 200303272130 Excel and Powerpoint files work ok but with Word I get the "Unable to create part: " error. This happens both when I import and open an existing file and when I create a new .doc file from within Eclipse. The logfile indicates: !SESSION mai 12, 2003 16:52:18.380 -------------------------------------------- - java.version=1.4.1_01 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR Command-line arguments: -os win32 -ws win32 -arch x86 -data c:\orpe\eclipse - install file:C:/eclipse/eclipse/ !ENTRY org.eclipse.ui.workbench 4 2 mai 12, 2003 16:52:18.390 !MESSAGE Problems occurred when invoking code from plug- in: "org.eclipse.ui.workbench". !STACK 0 org.eclipse.swt.SWTException: Failed to find requested interface on OLE Object. result = -2147467262 at org.eclipse.swt.ole.win32.OLE.error(OLE.java:312) at org.eclipse.swt.ole.win32.OleClientSite.addObjectReferences (OleClientSite.java:385) at org.eclipse.swt.ole.win32.OleClientSite.<init> (OleClientSite.java:194) 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$4.run(PartPane.java:141) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:889) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.ui.internal.PartPane.createChildControl (PartPane.java:137) at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:186) at org.eclipse.ui.internal.EditorWorkbook.createPage (EditorWorkbook.java:387) at org.eclipse.ui.internal.EditorWorkbook.add(EditorWorkbook.java:123) at org.eclipse.ui.internal.EditorArea.addEditor(EditorArea.java:55) at org.eclipse.ui.internal.EditorPresentation.openEditor (EditorPresentation.java:351) at org.eclipse.ui.internal.EditorManager$2.run(EditorManager.java:585) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:69) at org.eclipse.ui.internal.EditorManager.createEditorTab (EditorManager.java:574) at org.eclipse.ui.internal.EditorManager.openEditorFromInput (EditorManager.java:341) at org.eclipse.ui.internal.EditorManager.openEditor (EditorManager.java:424) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor (WorkbenchPage.java:2056) at org.eclipse.ui.internal.WorkbenchPage.access$6 (WorkbenchPage.java:2004) at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:1991) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:1986) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:1871) at org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard.performFinish (BasicNewFileResourceWizard.java:101) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:608) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:321) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:89) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1838) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545) at org.eclipse.jface.window.Window.runEventLoop(Window.java:583) at org.eclipse.jface.window.Window.open(Window.java:563) at org.eclipse.ui.internal.NewWizardShortcutAction.run (NewWizardShortcutAction.java:96) at org.eclipse.jface.action.Action.runWithEvent(Action.java:842) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:456) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:403) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:397) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:72) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1838) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) 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:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583) I'm also seeing the "same" problem using Eclipse SDK 2.1.1 ; Word2000 SP-3, Application name Microsoft Word, Version 9.0, Build 6926 ; OS Name Microsoft Windows 2000 Professional, Version 5.0.2195, Service Pack 4 Build 2195. When trying to open a new xxx.doc file the OLE-Editor does not start as reported by others. Note however that the Word-icon is picked up and displayed in the Eclipse user interface. Copy of error log fragment follows: !SESSION Sep 24, 2003 17:21:52.686 --------------------------------------------- java.version=1.3.0_02 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 -data C:\Documents and Settings\rdreeves\My Documents\OtherData\eclipseData\workspace -install file:C:/Program Files/eclipse/ !ENTRY org.eclipse.ui.workbench 4 2 Sep 24, 2003 17:21:52.686 !MESSAGE Problems occurred when invoking code from plug- in: "org.eclipse.ui.workbench". !STACK 0 org.eclipse.swt.SWTException: Failed to find requested interface on OLE Object. result = -2147467262 at org.eclipse.swt.ole.win32.OLE.error(OLE.java:312) at org.eclipse.swt.ole.win32.OleClientSite.addObjectReferences (OleClientSite.java:385) at org.eclipse.swt.ole.win32.OleClientSite.<init> (OleClientSite.java:194) 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$4.run(PartPane.java:141) etc....... *** Bug 45653 has been marked as a duplicate of this bug. *** VI to investigate: http://support.microsoft.com/default.aspx?scid=kb;en-us;249626 The link in comment #17 proved to be unrelated. Still looking for a solution. For what it's worth, I am getting the same problem. The installation on my office PC (Windows 2000 and Office 2000) is fine. On home PC, Windows XP Pro and Office XP I get exactly the same issues as the original report. *** Bug 76347 has been marked as a duplicate of this bug. *** Created attachment 15275 [details]
swt source code
compiled under different defines (DEBUG_CALL_PRINTS2 or DEBUG_CALL_PRINTS3)
Created attachment 15276 [details]
stack trace for jvm
Got with define DEBUG_CALL_PRINTS3
It seems that somewhere in swt memory structures are beeing broken. If we define DEBUG_CALL_PRINTS2 then nothing bad happens (there is a function StringFromCLSID(&guid, &strIID) called from Java_org_eclipse_swt_internal_ole_win32_COM_CLSIDFromProgID). But if we define DEBUG_CALL_PRINTS3 (and call the same function StringFromCLSID(&guid, &strIID) from COM_VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2_3I) we get JVM exception (see attached source code and stack trace): An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x182AA97F Function=Java_org_eclipse_swt_internal_ole_win32_COM_VtblCall__II_3I+0x10 Library=R:\osvaldo\ole\test\swt-win32-3062.dll It sounds like IIDFromString is sometimes returning null for the GUID. In
DEBUG_CALL_PRINTS3 you are not checking to see if guid is null. It is
possible that QueryInterface (which calls the Vtbl JNI with
DEBUG_CALL_PRINTS3) is passing in null for the GUID - possibly for the GUID of
IViewObject2.
Can you run the following simple SWT test and report the result from the
console?
public static void main(String[] args) {
Display display = new Display();
String[] input = new String[] {
"IIDIEditorSiteTime", "{6BD2AEFE-7876-45e6-A6E7-
3BFCDF6540AA}",
"IIDIEditorSiteProperty","{D381A1F4-2326-4f3c-AFB9-
B7537DB9E238}",
"IIDIEditorBaseProperty","{61E55B0B-2647-47c4-8C89-
E736EF15D636}",
"IIDIEditorSite","{CDD88AB9-B01D-426E-B0F0-
30973E9A074B}",
"IIDIEditorService","{BEE283FE-7B42-4FF3-8232-
0F07D43ABCF1}",
"IIDIEditorManager","{EFDE08C4-BE87-4B1A-BF84-
15FC30207180}",
"IIDIAccessible","{618736E0-3C3D-11CF-810C-
00AA00389B71}",
"IIDIAdviseSink","{0000010F-0000-0000-C000-
000000000046}",
"IIDIClassFactory2","{B196B28F-BAB4-101A-B69C-
00AA00341D07}",
"IIDIConnectionPoint","{B196B286-BAB4-101A-B69C-
00AA00341D07}",
"IIDIConnectionPointContainer","{B196B284-BAB4-101A-
B69C-00AA00341D07}",
"IIDIDataObject","{0000010E-0000-0000-C000-
000000000046}",
"IIDIDispatch","{00020400-0000-0000-C000-
000000000046}",
"IIDIDocHostUIHandler","{BD3F23C0-D43E-11CF-893B-
00AA00BDCE1A}",
"IIDIDocHostShowUI","{C4D244B0-D43E-11CF-893B-
00AA00BDCE1A}",
"IIDIDropSource","{00000121-0000-0000-C000-
000000000046}",
"IIDIDropTarget","{00000122-0000-0000-C000-
000000000046}",
"IIDIEnumFORMATETC","{00000103-0000-0000-C000-
000000000046}",
"IIDIEnumVARIANT","{00020404-0000-0000-C000-
000000000046}",
"IIDIFont","{BEF6E002-A874-101A-8BBA-00AA00300CAB}",
"IIDIInternetSecurityManager","{79eac9ee-baf9-11ce-
8c82-00aa004ba90b}",
"IIDIOleClientSite","{00000118-0000-0000-C000-
000000000046}",
"IIDIOleCommandTarget","{B722BCCB-4E68-101B-A2BC-
00AA00404770}",
"IIDIOleContainer","{0000011B-0000-0000-C000-
000000000046}",
"IIDIOleControl","{B196B288-BAB4-101A-B69C-
00AA00341D07}",
"IIDIOleControlSite","{B196B289-BAB4-101A-B69C-
00AA00341D07}",
"IIDIOleDocument","{B722BCC5-4E68-101B-A2BC-
00AA00404770}",
"IIDIOleDocumentSite","{B722BCC7-4E68-101B-A2BC-
00AA00404770}",
"IIDIOleInPlaceActiveObject","{00000117-0000-0000-C000-
000000000046}",
"IIDIOleInPlaceFrame","{00000116-0000-0000-C000-
000000000046}",
"IIDIOleInPlaceObject","{00000113-0000-0000-C000-
000000000046}",
"IIDIOleInPlaceSite","{00000119-0000-0000-C000-
000000000046}",
"IIDIOleInPlaceUIWindow","{00000115-0000-0000-C000-
000000000046}",
"IIDIOleLink","{0000011D-0000-0000-C000-000000000046}",
"IIDIOleObject","{00000112-0000-0000-C000-
000000000046}",
"IIDIOleWindow","{00000114-0000-0000-C000-
000000000046}",
"IIDIPersist","{0000010C-0000-0000-C000-000000000046}",
"IIDIPersistFile","{0000010B-0000-0000-C000-
000000000046}",
"IIDIPersistStorage","{0000010A-0000-0000-C000-
000000000046}",
"IIDIPersistStream","{00000109-0000-0000-C000-
000000000046}",
"IIDIPersistStreamInit","{7FD52380-4E07-101B-AE2D-
08002B2EC713}",
"IIDIPropertyNotifySink","{9BFBBC02-EFF1-101A-84ED-
00AA00341D07}",
"IIDIProvideClassInfo","{B196B283-BAB4-101A-B69C-
00AA00341D07}",
"IIDIProvideClassInfo2","{A6BC3AC0-DBAA-11CE-9DE3-
00AA004BB851}",
"IIDIServiceProvider","{6d5140c1-7436-11ce-8034-
00aa006009fa}",
"IIDISpecifyPropertyPages","{B196B28B-BAB4-101A-B69C-
00AA00341D07}",
"IIDIStorage","{0000000B-0000-0000-C000-000000000046}",
"IIDIStream","{0000000C-0000-0000-C000-000000000046}",
"IIDIUnknown","{00000000-0000-0000-C000-000000000046}",
"IIDIViewObject2","{00000127-0000-0000-C000-
000000000046}",
"CGID_Explorer","{000214D0-0000-0000-C000-
000000000046}"};
for (int i = 0; i < input.length; i+=2) {
if (COMObject.IIDFromString(input[i+1]) == null){
System.out.println("Incorrect GUID "+input[i]);
}
}
}
I ran the test. And it printed nothing. No incorect GUIDs... Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info. This is a one-off bulk update. (The last one in the triage migration). Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process: https://wiki.eclipse.org/SWT/Devel/Triage See Bug 518478 for details. Tag for notification/mail filters: @TriageBulkUpdate This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |