Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Wtp-wst-dev] Mozilla Error on Linux

Hi,
    I don't know if this is a correct list. But I found a SWT bug using the ATF plug-in.
    We are working on Linux RedHat Enterprise 4. We install the ATF Plug-in like as said in the ATF's page. But in first time we try to run the Mozilla Browser in a new workspace we found a NullPointerException. The bug occurs when the ATF Plug-ins requires the SWT  Mozilla Broswer, in the org.eclipse.swt.browser.Mozilla.getWebBrowser(Mozilla.java:1258), in the first time that I tried to open a mozilla for a workspace, this method throw the InvocationTargetException. When I restart the Eclipse and try to open a Mozilla browser again everything works fine.
    I looked for this bug in the WST Bugzilla, but I found nothing. So I create a new Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=201774

Thanks,
Victor Emanuel

java.lang.reflect.InvocationTargetException
    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.swt.browser.Mozilla.getWebBrowser(Mozilla.java:1258)
    at org.eclipse.swt.browser.Browser.getWebBrowser(Browser.java:446)
    at org.eclipse.atf.mozilla.ide.ui.browser.MozBrowserEditor.getAdapter(Unknown Source)
    at org.eclipse.atf.mozilla.ide.ui.netmon.MozNetworkMonitorAdapter.connect(Unknown Source)
    at org.eclipse.atf.mozilla.ide.ui.browser.MozBrowserEditor.createPartControl(Unknown Source)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:263)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2721)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2633)
    at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPage.java:2625)
    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2577)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2572)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2556)
    at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:340)
    at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:328)
    at org.eclipse.ui.actions.OpenWith Menu$2.handleEvent(OpenWithMenu.java:190)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    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.equinox.launcher.Main.invokeFramework(Main.java:504)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Caused by: org.mozilla.xpcom.XPCOMInitializationException: Must call Mozilla.getInstance().initialize() before using this method
    at org.mozilla.xpcom.Mozilla.wrapXPCOMObject(Mozilla.java:1062)
    ... 48 more
Caused by: java.lang.NullPointerException
    at org.mozilla.xpcom.Mozilla.wrapXPCOMObject(Mozilla.java:1060)
    ... 48 more


Back to the top