[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] AdaptorHook executed twice?!

Hi,

currently we have the problem, that the frameworkStart-Method of an
adaptor hook is executed twice.
After some debugging, it seems to be related to events beeing published
while starting the framework.

Can anyone give me a hint, how to solve this problem?

Thanks a lot in advance

Florian Pepping


Here are the stack-traces of the two executions
(please don't worry about the form of the stacktraces. I have printed
them manually within th source code)

First execution:
com.wincornixdorf.frameworkhook.Frameworkhook frameworkStart 84
org.eclipse.osgi.baseadaptor.BaseAdaptor frameworkStart 259
org.eclipse.osgi.framework.internal.core.SystemBundleActivator start 55
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 run 1009
java.security.AccessController doPrivileged -2
org.eclipse.osgi.framework.internal.core.BundleContextImpl
startActivator 1003
org.eclipse.osgi.framework.internal.core.BundleContextImpl start 984
org.eclipse.osgi.framework.internal.core.StartLevelManager
doSetStartLevel 280
org.eclipse.osgi.framework.internal.core.StartLevelManager launch 247
org.eclipse.osgi.framework.internal.core.SystemBundle resume 201
org.eclipse.osgi.framework.internal.core.Framework launch 644
org.eclipse.osgi.framework.internal.core.OSGi launch 51
org.eclipse.core.runtime.adaptor.EclipseStarter startup 313
org.eclipse.core.runtime.adaptor.EclipseStarter run 175
sun.reflect.NativeMethodAccessorImpl invoke0 -2
sun.reflect.NativeMethodAccessorImpl invoke 39
sun.reflect.DelegatingMethodAccessorImpl invoke 25
java.lang.reflect.Method invoke 597
org.eclipse.equinox.launcher.Main invokeFramework 592
org.eclipse.equinox.launcher.Main basicRun 539
org.eclipse.equinox.launcher.Main run 1386
org.eclipse.equinox.launcher.Main main 1359
sun.reflect.NativeMethodAccessorImpl invoke0 -2
sun.reflect.NativeMethodAccessorImpl invoke 39
sun.reflect.DelegatingMethodAccessorImpl invoke 25
java.lang.reflect.Method invoke 597
com.exe4j.runtime.LauncherEngine launch -1
com.exe4j.runtime.WinLauncher main -1

Second execution:
com.wincornixdorf.frameworkhook.Frameworkhook frameworkStart 84
org.eclipse.osgi.baseadaptor.BaseAdaptor frameworkStart 259
org.eclipse.osgi.framework.internal.core.SystemBundleActivator start 55
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 run 1009
java.security.AccessController doPrivileged -2
org.eclipse.osgi.framework.internal.core.BundleContextImpl
startActivator 1003
org.eclipse.osgi.framework.internal.core.BundleContextImpl start 984
org.eclipse.osgi.framework.internal.core.BundleHost startWorker 346
org.eclipse.osgi.framework.internal.core.AbstractBundle start 265
org.eclipse.core.runtime.adaptor.EclipseStarter startBundle 1185
org.eclipse.core.runtime.adaptor.EclipseStarter startBundles 1178
org.eclipse.core.runtime.adaptor.EclipseStarter loadBasicBundles 651
org.eclipse.core.runtime.adaptor.EclipseStarter access$1 619
org.eclipse.core.runtime.adaptor.EclipseStarter$1 bundleChanged 308
org.eclipse.osgi.framework.internal.core.BundleContextImpl dispatchEvent
1234
org.eclipse.osgi.framework.eventmgr.EventManager dispatchEvent 211
org.eclipse.osgi.framework.eventmgr.ListenerQueue
dispatchEventSynchronous 141
org.eclipse.osgi.framework.internal.core.Framework
publishBundleEventPrivileged 1518
org.eclipse.osgi.framework.internal.core.Framework$6 run 1473
java.security.AccessController doPrivileged -2
org.eclipse.osgi.framework.internal.core.Framework publishBundleEvent
1471
org.eclipse.osgi.framework.internal.core.StartLevelManager
doSetStartLevel 281
org.eclipse.osgi.framework.internal.core.StartLevelManager launch 247
org.eclipse.osgi.framework.internal.core.SystemBundle resume 201
org.eclipse.osgi.framework.internal.core.Framework launch 644
org.eclipse.osgi.framework.internal.core.OSGi launch 51
org.eclipse.core.runtime.adaptor.EclipseStarter startup 313
org.eclipse.core.runtime.adaptor.EclipseStarter run 175
sun.reflect.NativeMethodAccessorImpl invoke0 -2
sun.reflect.NativeMethodAccessorImpl invoke 39
sun.reflect.DelegatingMethodAccessorImpl invoke 25
java.lang.reflect.Method invoke 597
org.eclipse.equinox.launcher.Main invokeFramework 592
org.eclipse.equinox.launcher.Main basicRun 539
org.eclipse.equinox.launcher.Main run 1386
org.eclipse.equinox.launcher.Main main 1359
sun.reflect.NativeMethodAccessorImpl invoke0 -2
sun.reflect.NativeMethodAccessorImpl invoke 39
sun.reflect.DelegatingMethodAccessorImpl invoke 25
java.lang.reflect.Method invoke 597
com.exe4j.runtime.LauncherEngine launch -1
com.exe4j.runtime.WinLauncher main -1





-- 
WINCOR NIXDORF International GmbH 
Sitz der Gesellschaft: Paderborn 
Registergericht Paderborn HRB 3507
Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Dr. Jürgen Wunram
Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller 
Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. DE44477193

Diese E-Mail enthält vertrauliche Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

This e-mail may contain confidential information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.