Hello,
I can't use Metrics, using Eclipse SDK 3.1.2 (clean
installation), Metrics plugin 1.3.6 (just installed via
Eclipse software update mechanism), no other plugin.
The installation goes ok, then I restart, select the
Java Browsing perspective, with a Java project opened.
I ask it to show the "Metrics" view. A view called
"Metrics View" indeed appears (until here this is
expected behavior).
BUT the "Metrics View" says :
"Unable to create view: An unexpected exception was
thrown."
Details:
java.lang.NullPointerException
at java.lang.Object.getClass()
(/usr/lib/libgcj.so.6.0.0)
at
net.sourceforge.metrics.ui.MetricsTable.getWidth(org.eclipse.ui.IMemento,
java.lang.String, int) (Unknown Source)
at
net.sourceforge.metrics.ui.MetricsTable.initWidths(org.eclipse.ui.IMemento)
(Unknown Source)
at
net.sourceforge.metrics.ui.MetricsView.createTable(org.eclipse.swt.widgets.Composite)
(Unknown Source)
at
net.sourceforge.metrics.ui.MetricsView.createPartControl(org.eclipse.swt.widgets.Composite)
(Unknown Source)
at
org.eclipse.ui.internal.ViewReference.createPartHelper()
(Unknown Source)
at
org.eclipse.ui.internal.ViewReference.createPart()
(Unknown Source)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(boolean)
(Unknown Source)
at
org.eclipse.ui.internal.Perspective.showView(java.lang.String,
java.lang.String) (Unknown Source)
at
org.eclipse.ui.internal.WorkbenchPage.busyShowView(java.lang.String,
java.lang.String, int) (Unknown Source)
at
org.eclipse.ui.internal.WorkbenchPage.access$12(org.eclipse.ui.internal.WorkbenchPage,
java.lang.String, java.lang.String, int) (Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage$13.run()
(Unknown Source)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(org.eclipse.swt.widgets.Display,
java.lang.Runnable) (Unknown Source)
at
org.eclipse.ui.internal.WorkbenchPage.showView(java.lang.String,
java.lang.String, int) (Unknown Source)
at
org.eclipse.ui.internal.WorkbenchPage.showView(java.lang.String)
(Unknown Source)
at org.eclipse.ui.internal.ShowViewAction.run()
(Unknown Source)
at
org.eclipse.jface.action.Action.runWithEvent(org.eclipse.swt.widgets.Event)
(Unknown Source)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(org.eclipse.swt.widgets.Event,
boolean) (Unknown Source)
at
org.eclipse.jface.action.ActionContributionItem.access$2(org.eclipse.jface.action.ActionContributionItem,
org.eclipse.swt.widgets.Event, boolean) (Unknown Source)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(org.eclipse.swt.widgets.Event)
(Unknown Source)
at
org.eclipse.swt.widgets.EventTable.sendEvent(org.eclipse.swt.widgets.Event)
(Unknown Source)
at
org.eclipse.swt.widgets.Widget.sendEvent(org.eclipse.swt.widgets.Event)
(Unknown Source)
at
org.eclipse.swt.widgets.Display.runDeferredEvents()
(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch()
(Unknown Source)
I verified that the file /usr/lib/libgcj.so.6.0.0
indeed exists on my system and is where it is searched.
I don't know how to trace the error...
Thank you for your help.
Olivier Cailloux