Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mat-dev] Error in running the standalone RCP as an Eclipse Application

I can reproduce this error if I remove org.eclipse.mat.parser from the launch configuration, so it looks like something is wrong with that bundle (not the api one.) in your situation.

Andrew Johnson




From:        xulijie09@xxxxxxxxxxxxxxxxxx
To:        mat-dev@xxxxxxxxxxx,
Date:        03/01/2014 17:06
Subject:        [mat-dev] Error in running the standalone RCP as an Eclipse        Application
Sent by:        mat-dev-bounces@xxxxxxxxxxx




Hi, all

I want to compile and run the MAT source code in Eclipse.
After following the steps in http://wiki.eclipse.org/MemoryAnalyzer/Building_MAT_With_Tycho#Checkout_MAT_Sources_from_SVN and http://wiki.eclipse.org/MemoryAnalyzer/Contributor_Reference#Ideas_for_Contributions. I can launch the org.eclipse.mat.ui.rcp as an Eclipse Application. Also, I can see the launched mat GUI.

However, when I click the "Open Heap Dump", there is an exception. I debug the source code and find "Implementation factory" is null in SnapshotFactory.java. Could you help me fix this error? I guess there is something wrong with the loading/parsing of mat.api bundle. Thanks in advance!

P.S. The maven-built standalone rcp does not have this problem.

!SESSION 2014-01-04 00:55:16.209 -----------------------------------------------

eclipse.buildId=unknown

java.version=1.7.0_40

java.vendor=Oracle Corporation

BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US

Framework arguments:  -product org.eclipse.mat.ui.rcp.MemoryAnalyzer

Command-line arguments:  -product org.eclipse.mat.ui.rcp.MemoryAnalyzer -data /Users/xulijie/Documents/indigo-rcp/../runtime-org.eclipse.mat.ui.rcp.MemoryAnalyzer -dev file:/Users/xulijie/Documents/indigo-rcp/.metadata/.plugins/org.eclipse.pde.core/org.eclipse.mat.ui.rcp.MemoryAnalyzer/dev.properties -os macosx -ws cocoa -arch x86_64 -consoleLog

!ENTRY org.eclipse.mat.ui 4 0 2014-01-04 00:55:41.195

!MESSAGE Error during creation of snapshot factory.

!ENTRY org.eclipse.ui 4 0 2014-01-04 00:55:41.199

!MESSAGE Unhandled event loop exception

!STACK 0

java.lang.NullPointerException

at org.eclipse.mat.snapshot.SnapshotFactory.getSupportedFormats(SnapshotFactory.java:182)

at org.eclipse.mat.ui.snapshot.OpenSnapshot$Visitor.applyFilter(OpenSnapshot.java:120)

at org.eclipse.mat.ui.snapshot.OpenSnapshot$Visitor.go(OpenSnapshot.java:58)

at org.eclipse.mat.ui.snapshot.actions.OpenSnapshotAction.run(OpenSnapshotAction.java:83)

at org.eclipse.mat.ui.snapshot.actions.OpenSnapshotAction.run(OpenSnapshotAction.java:56)

at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)

at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)

at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)

at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)

at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)

at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)

at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)

at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

at org.eclipse.mat.ui.rcp.Application.start(Application.java:26)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

at org.eclipse.equinox.launcher.Main.main(Main.java:1386)_______________________________________________
mat-dev mailing list
mat-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mat-dev


Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


Back to the top