Bug 13653 - NoClassDefFoundError when opening web browser view
Summary: NoClassDefFoundError when opening web browser view
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-12 11:51 EDT by Ian Petersen CLA
Modified: 2002-05-17 15:03 EDT (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 Ian Petersen CLA 2002-04-12 11:51:42 EDT
Build: 20020411

Description:
Opening the web browser view caused a problem, as expected, but the result was 
an internal error dialog with an invitation to exit the workspace.
Comment 1 Vlad Klicnik CLA 2002-04-12 12:01:40 EDT
We should only be registering this view on Win. 

Also, seems like lot of people are opening the view outside of the update 
perspective. Is this something we want to encourage? Suggest we rename this 
to "Preview Detail" or something that does not imply we have a browser intended 
for use within Eclipse (even though the view does have a full function browser).
Comment 2 Dejan Glozic CLA 2002-04-16 09:50:19 EDT
The view has been restructured to not trigger OLE class loading on non-win32 
systems. 

Web Browser is OK to use outside of Update perspective as long as no feature 
requests are made :-). It is very thin and all the requests are simply passed 
to the underlying IE5 ActiveX component, so there is very little we can do 
(both regarding bug fixes and feature requests).
Comment 3 Ian Petersen CLA 2002-04-25 13:55:11 EDT
I performed the following steps in build 20020423 in Linux:

1. Close the Resource Perspective
2. Open Java perspective
3. Choose Window -> Show View -> Other -> Web browser

and got the following stack trace from an internal error dialog:

java.lang.NoClassDefFoundError: org/eclipse/swt/ole/win32/OleControlSite
	at java.lang.Class.newInstance0(Native Method)
	at java.lang.Class.newInstance(Class.java(Compiled Code))
	at
org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:128)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:157)
	at
org.eclipse.core.internal.plugins.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:96)
	at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:116)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56)
	at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:113)
	at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:45)
	at org.eclipse.ui.internal.ViewFactory.createView(ViewFactory.java:85)
	at org.eclipse.ui.internal.ViewFactory.createView(ViewFactory.java:65)
	at org.eclipse.ui.internal.ViewFactory.createView(ViewFactory.java:46)
	at org.eclipse.ui.internal.Perspective.showView(Perspective.java:1171)
	at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:548)
	at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPage.java:530)
	at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2139)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:2136)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:2126)
	at org.eclipse.ui.internal.ShowViewMenu.showOther(ShowViewMenu.java:162)
	at org.eclipse.ui.internal.ShowViewMenu.access$0(ShowViewMenu.java:147)
	at org.eclipse.ui.internal.ShowViewMenu$2.run(ShowViewMenu.java:38)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:590)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:361)
	at
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:352)
	at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:816)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:643)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:195)
	at org.eclipse.core.launcher.Main.run(Main.java:541)
	at org.eclipse.core.launcher.Main.main(Main.java:396)
Comment 4 Dejan Glozic CLA 2002-05-09 14:36:24 EDT
Need to move the extension into org.eclipse.update.ui.win32
Comment 5 Dejan Glozic CLA 2002-05-17 15:03:50 EDT
OLE WebBrowser is now in org.eclipse.update.ui.win32 fragment and does not 
appear in non-Windows builds.