From 632cdb5ff8609a98d0f3600597d23601391490db Mon Sep 17 00:00:00 2001 From: Bernd Hufmann Date: Thu, 29 May 2025 15:05:12 -0400 Subject: [PATCH] reports: remove log in dispose() to avoid IllegalStateException This fixes the Exception below. The exception is caused because during shutdown the o.e.tc.incubator.analysis.core (for reports) Activator.stop() method is called before and the plug-in is removed from the static list of activators. Remove the log statement to avoid this exception during shutdown. java.lang.IllegalStateException at org.eclipse.tracecompass.common.core.TraceCompassActivator.getInstance(TraceCompassActivator.java:86) at org.eclipse.tracecompass.incubator.internal.analysis.core.Activator.getInstance(Activator.java:43) at org.eclipse.tracecompass.incubator.analysis.core.reports.ReportsDataProviderFactory.dispose(ReportsDataProviderFactory.java:738) at org.eclipse.tracecompass.tmf.core.dataprovider.DataProviderManager.dispose(DataProviderManager.java:117) at org.eclipse.tracecompass.internal.tmf.core.Activator.stop(Activator.java:125) at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:896) at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) ... Signed-off-by: Bernd Hufmann --- .../analysis/core/reports/ReportsDataProviderFactory.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/analyses/org.eclipse.tracecompass.incubator.analysis.core/src/org/eclipse/tracecompass/incubator/analysis/core/reports/ReportsDataProviderFactory.java b/analyses/org.eclipse.tracecompass.incubator.analysis.core/src/org/eclipse/tracecompass/incubator/analysis/core/reports/ReportsDataProviderFactory.java index 11deb673..be7eb857 100644 --- a/analyses/org.eclipse.tracecompass.incubator.analysis.core/src/org/eclipse/tracecompass/incubator/analysis/core/reports/ReportsDataProviderFactory.java +++ b/analyses/org.eclipse.tracecompass.incubator.analysis.core/src/org/eclipse/tracecompass/incubator/analysis/core/reports/ReportsDataProviderFactory.java @@ -734,8 +734,6 @@ public void dispose() { fTmfConfigurationTable.clear(); fTmfConfigurationHierarchy.clear(); - - Activator.getInstance().logInfo("Reports data provider factory disposed"); //$NON-NLS-1$ } } \ No newline at end of file