Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Commons Logging & Eclipse plug-ins (multi plug-in compatibility problem)
Commons Logging & Eclipse plug-ins (multi plug-in compatibility problem) [message #325132] Sun, 10 February 2008 07:31 Go to next message
Eclipse UserFriend
Originally posted by: eclipsenews-9999-exp.sblk.de

Hi,

I've been using Apache Commons Logging for all my Eclipse plug-ins so
far and didn't run into any problems. However, I've recently installed
the "Jigloo SWT/Swing GUI Builder" plug-in
(http://www.cloudgarden.com/jigloo/) and I am getting lots of class
loading errors now.

I assume that the Jigloo plug-in is using Apache Commons Logging too and
that there is some kind of conflict. But I have no idea where to look
at, at the moment.

Did anyone else run into such problems before?

Example errors, full versions can be found at the end of this post.

---

a) One type of error which clearly hints at commons logging:

org.eclipse.core.runtime.CoreException: Plug-in
"org.electrocodeogram.cpc.track" was unable to instantiate class
" org.electrocodeogram.cpc.track.listener.CutCopyPasteListener ".
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
....
org.eclipse.core.runtime.CoreException[1]:
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
....
Caused by: org.apache.commons.logging.LogConfigurationException: The
chosen LogFactory implementation does not extend LogFactory. Please
check your configuration. (Caused by java.lang.ClassNotFoundException:
org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl)
at
org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1200)
....
Caused by: java.lang.ClassNotFoundException:
org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl
at java.lang.ClassLoader.findClass(ClassLoader.java:358)
....

The strange thing here is that it shouldn't be trying to load
org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl
but
org.electrocodeogram.cpc.track.utils.CommonsLogFactoryImpl
which is configured in a
commons-logging.properties
file in the source directory of the org.electrocodeogram.cpc.track plug-in:

commons-logging.properties contents:
> priority=1
>
org.apache.commons.logging.LogFactory=org.electrocodeogram.c pc.track.utils.CommonsLogFactoryImpl

---

b) another type of error which does no longer directly mention commons
logging (but which I assume to be a commons logging issue anyway)

org.eclipse.core.runtime.CoreException: Plug-in
"org.electrocodeogram.cpc.track" was unable to instantiate class
"org.electrocodeogram.cpc.track.listener.PersistenceListener ".
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
....
org.eclipse.core.runtime.CoreException[1]:
java.lang.NoClassDefFoundError: Could not initialize class
org.electrocodeogram.cpc.track.listener.PersistenceListener
at sun.reflect.GeneratedConstructorAccessor21.newInstance(Unkno wn Source)
....

Greetings
Hans Meyer


--------------

!ENTRY org.electrocodeogram.eclipse.core 4 40000 2008-02-08 18:23:08.000
!MESSAGE ERROR main
org.electrocodeogram.cpc.core.registry.EventHubListenerDescr iptor -
getListener() - unable to instantiate listener class:
org.electrocodeogram.cpc.track.listener.CutCopyPasteListener -
org.eclipse.core.runtime.CoreException: Plug-in
"org.electrocodeogram.cpc.track" was unable to instantiate class
" org.electrocodeogram.cpc.track.listener.CutCopyPasteListener ".

!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in
"org.electrocodeogram.cpc.track" was unable to instantiate class
" org.electrocodeogram.cpc.track.listener.CutCopyPasteListener ".
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:174)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.electrocodeogram.cpc.core.registry.EventHubListenerDescr iptor.getListener(EventHubListenerDescriptor.java:64)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.collectInterestedListeners(DefaultEventHubRegistry.java:3 46)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatchListeners(DefaultEventHubRegistry.java:223)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatch(DefaultEventHubRegistry.java:99)
at
org.electrocodeogram.cpc.sensor.listener.CPCTextOperationAct ion.run(CPCTextOperationAction.java:178)
at com.cloudgarden.jigloo.editors.FormEditor.doAction(FormEdito r.java:659)
at com.cloudgarden.jigloo.editors.FormEditor$56.run(FormEditor. java:7188)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler. java:185)
at
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execut e(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:475)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:429)
at
org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:165)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:470)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:821)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:879)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:568)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:510)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:126)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:142 3)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137 )
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.ja va:663)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control. java:2533)
at
org.eclipse.swt.widgets.Composite.gtk_key_press_event(Compos ite.java:679)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973 )
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:55 93)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1487)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2969)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
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(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
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(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
org.eclipse.core.runtime.CoreException[1]:
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:5 13)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.electrocodeogram.cpc.core.registry.EventHubListenerDescr iptor.getListener(EventHubListenerDescriptor.java:64)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.collectInterestedListeners(DefaultEventHubRegistry.java:3 46)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatchListeners(DefaultEventHubRegistry.java:223)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatch(DefaultEventHubRegistry.java:99)
at
org.electrocodeogram.cpc.sensor.listener.CPCTextOperationAct ion.run(CPCTextOperationAction.java:178)
at com.cloudgarden.jigloo.editors.FormEditor.doAction(FormEdito r.java:659)
at com.cloudgarden.jigloo.editors.FormEditor$56.run(FormEditor. java:7188)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler. java:185)
at
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execut e(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:475)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:429)
at
org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:165)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:470)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:821)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:879)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:568)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:510)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:126)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:142 3)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137 )
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.ja va:663)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control. java:2533)
at
org.eclipse.swt.widgets.Composite.gtk_key_press_event(Compos ite.java:679)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973 )
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:55 93)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1487)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2969)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
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(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
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(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Caused by: org.apache.commons.logging.LogConfigurationException: The
chosen LogFactory implementation does not extend LogFactory. Please
check your configuration. (Caused by java.lang.ClassNotFoundException:
org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl)
at
org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1200)
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java: 994)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.logging.LogFactory.newFactory(LogFactory. java:991)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory. java:572)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java :645)
at
org.electrocodeogram.cpc.track.listener.CutCopyPasteListener . <clinit>(CutCopyPasteListener.java:40)
... 67 more
Caused by: java.lang.ClassNotFoundException:
org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl
at java.lang.ClassLoader.findClass(ClassLoader.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:429)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1190)
... 73 more
!SUBENTRY 1 org.eclipse.equinox.registry 4 1 2008-02-08 18:23:08.030
!MESSAGE Plug-in "org.electrocodeogram.cpc.track" was unable to
instantiate class
" org.electrocodeogram.cpc.track.listener.CutCopyPasteListener ".
!STACK 0
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:5 13)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.electrocodeogram.cpc.core.registry.EventHubListenerDescr iptor.getListener(EventHubListenerDescriptor.java:64)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.collectInterestedListeners(DefaultEventHubRegistry.java:3 46)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatchListeners(DefaultEventHubRegistry.java:223)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatch(DefaultEventHubRegistry.java:99)
at
org.electrocodeogram.cpc.sensor.listener.CPCTextOperationAct ion.run(CPCTextOperationAction.java:178)
at com.cloudgarden.jigloo.editors.FormEditor.doAction(FormEdito r.java:659)
at com.cloudgarden.jigloo.editors.FormEditor$56.run(FormEditor. java:7188)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler. java:185)
at
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execut e(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:475)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:429)
at
org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:165)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:470)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:821)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:879)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:568)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:510)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:126)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:142 3)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137 )
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.ja va:663)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control. java:2533)
at
org.eclipse.swt.widgets.Composite.gtk_key_press_event(Compos ite.java:679)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973 )
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:55 93)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1487)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2969)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
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(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
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(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Caused by: org.apache.commons.logging.LogConfigurationException: The
chosen LogFactory implementation does not extend LogFactory. Please
check your configuration. (Caused by java.lang.ClassNotFoundException:
org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl)
at
org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1200)
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java: 994)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.logging.LogFactory.newFactory(LogFactory. java:991)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory. java:572)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java :645)
at
org.electrocodeogram.cpc.track.listener.CutCopyPasteListener . <clinit>(CutCopyPasteListener.java:40)
... 67 more
Caused by: java.lang.ClassNotFoundException:
org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl
at java.lang.ClassLoader.findClass(ClassLoader.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:429)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1190)
... 73 more


-----------------------------


org.eclipse.core.runtime.CoreException: Plug-in
"org.electrocodeogram.cpc.track" was unable to instantiate class
"org.electrocodeogram.cpc.track.listener.PersistenceListener ".
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:174)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.electrocodeogram.cpc.core.registry.EventHubListenerDescr iptor.getListener(EventHubListenerDescriptor.java:64)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.collectInterestedListeners(DefaultEventHubRegistry.java:3 46)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatchListeners(DefaultEventHubRegistry.java:223)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatch(DefaultEventHubRegistry.java:99)
at
org.electrocodeogram.cpc.sensor.listener.CPCFileBufferListen er.dirtyStateChanged(CPCFileBufferListener.java:442)
at
org.eclipse.core.internal.filebuffers.TextFileBufferManager$ 3.run(TextFileBufferManager.java:640)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.filebuffers.TextFileBufferManager. fireDirtyStateChanged(TextFileBufferManager.java:638)
at
org.eclipse.core.internal.filebuffers.ResourceFileBuffer.com mit(ResourceFileBuffer.java:335)
at
org.eclipse.jdt.internal.ui.javaeditor.DocumentAdapter.save( DocumentAdapter.java:424)
at
org.eclipse.jdt.internal.core.CommitWorkingCopyOperation.exe cuteOperation(CommitWorkingCopyOperation.java:123)
at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:720)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1797)
at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperatio n(JavaModelOperation.java:785)
at
org.eclipse.jdt.internal.core.CompilationUnit.commitWorkingC opy(CompilationUnit.java:354)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocume ntProvider.commitWorkingCopy(CompilationUnitDocumentProvider .java:1302)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocume ntProvider$5.execute(CompilationUnitDocumentProvider.java:13 67)
at
org.eclipse.ui.editors.text.TextFileDocumentProvider$Documen tProviderOperation.run(TextFileDocumentProvider.java:129)
at
org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.ex ecute(WorkspaceModifyDelegatingOperation.java:68)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1797)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
at
org.eclipse.ui.internal.editors.text.WorkspaceOperationRunne r.run(WorkspaceOperationRunner.java:73)
at
org.eclipse.ui.internal.editors.text.WorkspaceOperationRunne r.run(WorkspaceOperationRunner.java:63)
at
org.eclipse.ui.editors.text.TextFileDocumentProvider.execute Operation(TextFileDocumentProvider.java:450)
at
org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDoc ument(TextFileDocumentProvider.java:761)
at
org.eclipse.ui.texteditor.AbstractTextEditor.performSave(Abs tractTextEditor.java:4716)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor .performSave(CompilationUnitEditor.java:1216)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor .doSave(CompilationUnitEditor.java:1269)
at
com.cloudgarden.jigloo.editors.FormEditor.updateWorkingCopyI nternal(FormEditor.java:10003)
at
com.cloudgarden.jigloo.editors.FormEditor.updateWorkingCopy( FormEditor.java:9892)
at com.cloudgarden.jigloo.editors.FormEditor.doSave(FormEditor. java:9657)
at
org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavab le.doSave(AbstractTextEditor.java:6779)
at org.eclipse.ui.Saveable.doSave(Saveable.java:212)
at
org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableH elper.java:339)
at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper. java:185)
at org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper. java:266)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
at
org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:758)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:755)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2451)
at
org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOpe ration(SaveableHelper.java:274)
at
org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOpe ration(SaveableHelper.java:253)
at
org.eclipse.ui.internal.SaveableHelper.saveModels(SaveableHe lper.java:196)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelp er.java:136)
at org.eclipse.ui.internal.EditorManager.savePart(EditorManager .java:1345)
at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage .java:3202)
at
org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPa ge.java:3215)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:73)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandl er.java:119)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:475)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:429)
at
org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:165)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:470)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:821)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:879)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:568)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:510)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:126)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:142 3)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137 )
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.ja va:663)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control. java:2533)
at
org.eclipse.swt.widgets.Composite.gtk_key_press_event(Compos ite.java:679)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973 )
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:55 93)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1487)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2969)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
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(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
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(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
org.eclipse.core.runtime.CoreException[1]:
java.lang.NoClassDefFoundError: Could not initialize class
org.electrocodeogram.cpc.track.listener.PersistenceListener
at sun.reflect.GeneratedConstructorAccessor21.newInstance(Unkno wn Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:5 13)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.electrocodeogram.cpc.core.registry.EventHubListenerDescr iptor.getListener(EventHubListenerDescriptor.java:64)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.collectInterestedListeners(DefaultEventHubRegistry.java:3 46)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatchListeners(DefaultEventHubRegistry.java:223)
at
org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatch(DefaultEventHubRegistry.java:99)
at
org.electrocodeogram.cpc.sensor.listener.CPCFileBufferListen er.dirtyStateChanged(CPCFileBufferListener.java:442)
at
org.eclipse.core.internal.filebuffers.TextFileBufferManager$ 3.run(TextFileBufferManager.java:640)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.filebuffers.TextFileBufferManager. fireDirtyStateChanged(TextFileBufferManager.java:638)
at
org.eclipse.core.internal.filebuffers.ResourceFileBuffer.com mit(ResourceFileBuffer.java:335)
at
org.eclipse.jdt.internal.ui.javaeditor.DocumentAdapter.save( DocumentAdapter.java:424)
at
org.eclipse.jdt.internal.core.CommitWorkingCopyOperation.exe cuteOperation(CommitWorkingCopyOperation.java:123)
at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:720)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1797)
at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperatio n(JavaModelOperation.java:785)
at
org.eclipse.jdt.internal.core.CompilationUnit.commitWorkingC opy(CompilationUnit.java:354)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocume ntProvider.commitWorkingCopy(CompilationUnitDocumentProvider .java:1302)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocume ntProvider$5.execute(CompilationUnitDocumentProvider.java:13 67)
at
org.eclipse.ui.editors.text.TextFileDocumentProvider$Documen tProviderOperation.run(TextFileDocumentProvider.java:129)
at
org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.ex ecute(WorkspaceModifyDelegatingOperation.java:68)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1797)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
at
org.eclipse.ui.internal.editors.text.WorkspaceOperationRunne r.run(WorkspaceOperationRunner.java:73)
at
org.eclipse.ui.internal.editors.text.WorkspaceOperationRunne r.run(WorkspaceOperationRunner.java:63)
at
org.eclipse.ui.editors.text.TextFileDocumentProvider.execute Operation(TextFileDocumentProvider.java:450)
at
org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDoc ument(TextFileDocumentProvider.java:761)
at
org.eclipse.ui.texteditor.AbstractTextEditor.performSave(Abs tractTextEditor.java:4716)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor .performSave(CompilationUnitEditor.java:1216)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor .doSave(CompilationUnitEditor.java:1269)
at
com.cloudgarden.jigloo.editors.FormEditor.updateWorkingCopyI nternal(FormEditor.java:10003)
at
com.cloudgarden.jigloo.editors.FormEditor.updateWorkingCopy( FormEditor.java:9892)
at com.cloudgarden.jigloo.editors.FormEditor.doSave(FormEditor. java:9657)
at
org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavab le.doSave(AbstractTextEditor.java:6779)
at org.eclipse.ui.Saveable.doSave(Saveable.java:212)
at
org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableH elper.java:339)
at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper. java:185)
at org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper. java:266)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
at
org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:758)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:755)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2451)
at
org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOpe ration(SaveableHelper.java:274)
at
org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOpe ration(SaveableHelper.java:253)
at
org.eclipse.ui.internal.SaveableHelper.saveModels(SaveableHe lper.java:196)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelp er.java:136)
at org.eclipse.ui.internal.EditorManager.savePart(EditorManager .java:1345)
at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage .java:3202)
at
org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPa ge.java:3215)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:73)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandl er.java:119)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:475)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:429)
at
org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:165)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:470)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:821)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:879)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:568)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:510)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:126)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:142 3)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137 )
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.ja va:663)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control. java:2533)
at
org.eclipse.swt.widgets.Composite.gtk_key_press_event(Compos ite.java:679)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973 )
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:55 93)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1487)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2969)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
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(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
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(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Re: Commons Logging & Eclipse plug-ins (multi plug-in compatibility problem) [message #325135 is a reply to message #325132] Sun, 10 February 2008 09:30 Go to previous messageGo to next message
Eclipse UserFriend
I think that somewhere you have 2 different instances of commons logging
in your plugins. How to you provide this JAR file? The generally
recommended way to provide an external JAR file like this is wrap it in
it's own plugin.

You might want to look into eclipse orbit, which actually provides a
plugin for commons logging.

Once you fix this problem, your second probably will likely go away.

HTH

Francis

H. Meyer wrote:
> Hi,
>
> I've been using Apache Commons Logging for all my Eclipse plug-ins so
> far and didn't run into any problems. However, I've recently installed
> the "Jigloo SWT/Swing GUI Builder" plug-in
> (http://www.cloudgarden.com/jigloo/) and I am getting lots of class
> loading errors now.
>
> I assume that the Jigloo plug-in is using Apache Commons Logging too and
> that there is some kind of conflict. But I have no idea where to look
> at, at the moment.
>
> Did anyone else run into such problems before?
>
> Example errors, full versions can be found at the end of this post.
>
> ---
>
> a) One type of error which clearly hints at commons logging:
>
> org.eclipse.core.runtime.CoreException: Plug-in
> "org.electrocodeogram.cpc.track" was unable to instantiate class
> " org.electrocodeogram.cpc.track.listener.CutCopyPasteListener ".
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
> ...
> org.eclipse.core.runtime.CoreException[1]:
> java.lang.ExceptionInInitializerError
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> ...
> Caused by: org.apache.commons.logging.LogConfigurationException: The
> chosen LogFactory implementation does not extend LogFactory. Please
> check your configuration. (Caused by java.lang.ClassNotFoundException:
> org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl)
> at
> org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1200)
> ...
> Caused by: java.lang.ClassNotFoundException:
> org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl
> at java.lang.ClassLoader.findClass(ClassLoader.java:358)
> ...
>
> The strange thing here is that it shouldn't be trying to load
> org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl
> but
> org.electrocodeogram.cpc.track.utils.CommonsLogFactoryImpl
> which is configured in a
> commons-logging.properties
> file in the source directory of the org.electrocodeogram.cpc.track plug-in:
>
> commons-logging.properties contents:
>> priority=1
>>
> org.apache.commons.logging.LogFactory=org.electrocodeogram.c pc.track.utils.CommonsLogFactoryImpl
>
> ---
>
> b) another type of error which does no longer directly mention commons
> logging (but which I assume to be a commons logging issue anyway)
>
> org.eclipse.core.runtime.CoreException: Plug-in
> "org.electrocodeogram.cpc.track" was unable to instantiate class
> "org.electrocodeogram.cpc.track.listener.PersistenceListener ".
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
> ...
> org.eclipse.core.runtime.CoreException[1]:
> java.lang.NoClassDefFoundError: Could not initialize class
> org.electrocodeogram.cpc.track.listener.PersistenceListener
> at sun.reflect.GeneratedConstructorAccessor21.newInstance(Unkno wn Source)
> ...
>
> Greetings
> Hans Meyer
>
>
> --------------
>
> !ENTRY org.electrocodeogram.eclipse.core 4 40000 2008-02-08 18:23:08.000
> !MESSAGE ERROR main
> org.electrocodeogram.cpc.core.registry.EventHubListenerDescr iptor -
> getListener() - unable to instantiate listener class:
> org.electrocodeogram.cpc.track.listener.CutCopyPasteListener -
> org.eclipse.core.runtime.CoreException: Plug-in
> "org.electrocodeogram.cpc.track" was unable to instantiate class
> " org.electrocodeogram.cpc.track.listener.CutCopyPasteListener ".
>
> !STACK 1
> org.eclipse.core.runtime.CoreException: Plug-in
> "org.electrocodeogram.cpc.track" was unable to instantiate class
> " org.electrocodeogram.cpc.track.listener.CutCopyPasteListener ".
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:174)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
> at
> org.electrocodeogram.cpc.core.registry.EventHubListenerDescr iptor.getListener(EventHubListenerDescriptor.java:64)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.collectInterestedListeners(DefaultEventHubRegistry.java:3 46)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatchListeners(DefaultEventHubRegistry.java:223)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatch(DefaultEventHubRegistry.java:99)
> at
> org.electrocodeogram.cpc.sensor.listener.CPCTextOperationAct ion.run(CPCTextOperationAction.java:178)
> at com.cloudgarden.jigloo.editors.FormEditor.doAction(FormEdito r.java:659)
> at com.cloudgarden.jigloo.editors.FormEditor$56.run(FormEditor. java:7188)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler. java:185)
> at
> org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execut e(LegacyHandlerWrapper.java:109)
> at org.eclipse.core.commands.Command.executeWithChecks(Command. java:475)
> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:429)
> at
> org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:165)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:470)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:821)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:879)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:568)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:510)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:126)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:142 3)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137 )
> at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.ja va:663)
> at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control. java:2533)
> at
> org.eclipse.swt.widgets.Composite.gtk_key_press_event(Compos ite.java:679)
> at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973 )
> at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
> at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:55 93)
> at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
> at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1487)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2969)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> 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(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
> 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(EclipseS tarter.java:363)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> org.eclipse.core.runtime.CoreException[1]:
> java.lang.ExceptionInInitializerError
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:5 13)
> at java.lang.Class.newInstance0(Class.java:355)
> at java.lang.Class.newInstance(Class.java:308)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
> at
> org.electrocodeogram.cpc.core.registry.EventHubListenerDescr iptor.getListener(EventHubListenerDescriptor.java:64)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.collectInterestedListeners(DefaultEventHubRegistry.java:3 46)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatchListeners(DefaultEventHubRegistry.java:223)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatch(DefaultEventHubRegistry.java:99)
> at
> org.electrocodeogram.cpc.sensor.listener.CPCTextOperationAct ion.run(CPCTextOperationAction.java:178)
> at com.cloudgarden.jigloo.editors.FormEditor.doAction(FormEdito r.java:659)
> at com.cloudgarden.jigloo.editors.FormEditor$56.run(FormEditor. java:7188)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler. java:185)
> at
> org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execut e(LegacyHandlerWrapper.java:109)
> at org.eclipse.core.commands.Command.executeWithChecks(Command. java:475)
> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:429)
> at
> org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:165)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:470)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:821)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:879)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:568)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:510)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:126)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:142 3)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137 )
> at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.ja va:663)
> at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control. java:2533)
> at
> org.eclipse.swt.widgets.Composite.gtk_key_press_event(Compos ite.java:679)
> at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973 )
> at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
> at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:55 93)
> at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
> at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1487)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2969)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> 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(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
> 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(EclipseS tarter.java:363)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> Caused by: org.apache.commons.logging.LogConfigurationException: The
> chosen LogFactory implementation does not extend LogFactory. Please
> check your configuration. (Caused by java.lang.ClassNotFoundException:
> org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl)
> at
> org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1200)
> at org.apache.commons.logging.LogFactory$2.run(LogFactory.java: 994)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.commons.logging.LogFactory.newFactory(LogFactory. java:991)
> at org.apache.commons.logging.LogFactory.getFactory(LogFactory. java:572)
> at org.apache.commons.logging.LogFactory.getLog(LogFactory.java :645)
> at
> org.electrocodeogram.cpc.track.listener.CutCopyPasteListener . <clinit>(CutCopyPasteListener.java:40)
> ... 67 more
> Caused by: java.lang.ClassNotFoundException:
> org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl
> at java.lang.ClassLoader.findClass(ClassLoader.java:358)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:429)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)
> at
> org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1190)
> ... 73 more
> !SUBENTRY 1 org.eclipse.equinox.registry 4 1 2008-02-08 18:23:08.030
> !MESSAGE Plug-in "org.electrocodeogram.cpc.track" was unable to
> instantiate class
> " org.electrocodeogram.cpc.track.listener.CutCopyPasteListener ".
> !STACK 0
> java.lang.ExceptionInInitializerError
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:5 13)
> at java.lang.Class.newInstance0(Class.java:355)
> at java.lang.Class.newInstance(Class.java:308)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
> at
> org.electrocodeogram.cpc.core.registry.EventHubListenerDescr iptor.getListener(EventHubListenerDescriptor.java:64)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.collectInterestedListeners(DefaultEventHubRegistry.java:3 46)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatchListeners(DefaultEventHubRegistry.java:223)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatch(DefaultEventHubRegistry.java:99)
> at
> org.electrocodeogram.cpc.sensor.listener.CPCTextOperationAct ion.run(CPCTextOperationAction.java:178)
> at com.cloudgarden.jigloo.editors.FormEditor.doAction(FormEdito r.java:659)
> at com.cloudgarden.jigloo.editors.FormEditor$56.run(FormEditor. java:7188)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler. java:185)
> at
> org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execut e(LegacyHandlerWrapper.java:109)
> at org.eclipse.core.commands.Command.executeWithChecks(Command. java:475)
> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:429)
> at
> org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:165)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:470)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:821)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:879)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:568)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:510)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:126)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:142 3)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137 )
> at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.ja va:663)
> at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control. java:2533)
> at
> org.eclipse.swt.widgets.Composite.gtk_key_press_event(Compos ite.java:679)
> at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973 )
> at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
> at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:55 93)
> at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
> at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1487)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2969)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> 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(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
> 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(EclipseS tarter.java:363)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> Caused by: org.apache.commons.logging.LogConfigurationException: The
> chosen LogFactory implementation does not extend LogFactory. Please
> check your configuration. (Caused by java.lang.ClassNotFoundException:
> org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl)
> at
> org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1200)
> at org.apache.commons.logging.LogFactory$2.run(LogFactory.java: 994)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.commons.logging.LogFactory.newFactory(LogFactory. java:991)
> at org.apache.commons.logging.LogFactory.getFactory(LogFactory. java:572)
> at org.apache.commons.logging.LogFactory.getLog(LogFactory.java :645)
> at
> org.electrocodeogram.cpc.track.listener.CutCopyPasteListener . <clinit>(CutCopyPasteListener.java:40)
> ... 67 more
> Caused by: java.lang.ClassNotFoundException:
> org.electrocodeogram.cpc.ui.utils.CommonsLogFactoryImpl
> at java.lang.ClassLoader.findClass(ClassLoader.java:358)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:429)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)
> at
> org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1190)
> ... 73 more
>
>
> -----------------------------
>
>
> org.eclipse.core.runtime.CoreException: Plug-in
> "org.electrocodeogram.cpc.track" was unable to instantiate class
> "org.electrocodeogram.cpc.track.listener.PersistenceListener ".
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:174)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
> at
> org.electrocodeogram.cpc.core.registry.EventHubListenerDescr iptor.getListener(EventHubListenerDescriptor.java:64)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.collectInterestedListeners(DefaultEventHubRegistry.java:3 46)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatchListeners(DefaultEventHubRegistry.java:223)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatch(DefaultEventHubRegistry.java:99)
> at
> org.electrocodeogram.cpc.sensor.listener.CPCFileBufferListen er.dirtyStateChanged(CPCFileBufferListener.java:442)
> at
> org.eclipse.core.internal.filebuffers.TextFileBufferManager$ 3.run(TextFileBufferManager.java:640)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at
> org.eclipse.core.internal.filebuffers.TextFileBufferManager. fireDirtyStateChanged(TextFileBufferManager.java:638)
> at
> org.eclipse.core.internal.filebuffers.ResourceFileBuffer.com mit(ResourceFileBuffer.java:335)
> at
> org.eclipse.jdt.internal.ui.javaeditor.DocumentAdapter.save( DocumentAdapter.java:424)
> at
> org.eclipse.jdt.internal.core.CommitWorkingCopyOperation.exe cuteOperation(CommitWorkingCopyOperation.java:123)
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:720)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1797)
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.runOperatio n(JavaModelOperation.java:785)
> at
> org.eclipse.jdt.internal.core.CompilationUnit.commitWorkingC opy(CompilationUnit.java:354)
> at
> org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocume ntProvider.commitWorkingCopy(CompilationUnitDocumentProvider .java:1302)
> at
> org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocume ntProvider$5.execute(CompilationUnitDocumentProvider.java:13 67)
> at
> org.eclipse.ui.editors.text.TextFileDocumentProvider$Documen tProviderOperation.run(TextFileDocumentProvider.java:129)
> at
> org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.ex ecute(WorkspaceModifyDelegatingOperation.java:68)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1797)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
> at
> org.eclipse.ui.internal.editors.text.WorkspaceOperationRunne r.run(WorkspaceOperationRunner.java:73)
> at
> org.eclipse.ui.internal.editors.text.WorkspaceOperationRunne r.run(WorkspaceOperationRunner.java:63)
> at
> org.eclipse.ui.editors.text.TextFileDocumentProvider.execute Operation(TextFileDocumentProvider.java:450)
> at
> org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDoc ument(TextFileDocumentProvider.java:761)
> at
> org.eclipse.ui.texteditor.AbstractTextEditor.performSave(Abs tractTextEditor.java:4716)
> at
> org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor .performSave(CompilationUnitEditor.java:1216)
> at
> org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor .doSave(CompilationUnitEditor.java:1269)
> at
> com.cloudgarden.jigloo.editors.FormEditor.updateWorkingCopyI nternal(FormEditor.java:10003)
> at
> com.cloudgarden.jigloo.editors.FormEditor.updateWorkingCopy( FormEditor.java:9892)
> at com.cloudgarden.jigloo.editors.FormEditor.doSave(FormEditor. java:9657)
> at
> org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavab le.doSave(AbstractTextEditor.java:6779)
> at org.eclipse.ui.Saveable.doSave(Saveable.java:212)
> at
> org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableH elper.java:339)
> at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper. java:185)
> at org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper. java:266)
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
> at
> org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:758)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:755)
> at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2451)
> at
> org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOpe ration(SaveableHelper.java:274)
> at
> org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOpe ration(SaveableHelper.java:253)
> at
> org.eclipse.ui.internal.SaveableHelper.saveModels(SaveableHe lper.java:196)
> at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelp er.java:136)
> at org.eclipse.ui.internal.EditorManager.savePart(EditorManager .java:1345)
> at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage .java:3202)
> at
> org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPa ge.java:3215)
> at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:73)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at org.eclipse.jface.commands.ActionHandler.execute(ActionHandl er.java:119)
> at org.eclipse.core.commands.Command.executeWithChecks(Command. java:475)
> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:429)
> at
> org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:165)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:470)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:821)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:879)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:568)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:510)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:126)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:142 3)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137 )
> at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.ja va:663)
> at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control. java:2533)
> at
> org.eclipse.swt.widgets.Composite.gtk_key_press_event(Compos ite.java:679)
> at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973 )
> at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
> at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:55 93)
> at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
> at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1487)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2969)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> 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(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
> 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(EclipseS tarter.java:363)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> org.eclipse.core.runtime.CoreException[1]:
> java.lang.NoClassDefFoundError: Could not initialize class
> org.electrocodeogram.cpc.track.listener.PersistenceListener
> at sun.reflect.GeneratedConstructorAccessor21.newInstance(Unkno wn Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:5 13)
> at java.lang.Class.newInstance0(Class.java:355)
> at java.lang.Class.newInstance(Class.java:308)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
> at
> org.electrocodeogram.cpc.core.registry.EventHubListenerDescr iptor.getListener(EventHubListenerDescriptor.java:64)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.collectInterestedListeners(DefaultEventHubRegistry.java:3 46)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatchListeners(DefaultEventHubRegistry.java:223)
> at
> org.electrocodeogram.cpc.core.registry.DefaultEventHubRegist ry.dispatch(DefaultEventHubRegistry.java:99)
> at
> org.electrocodeogram.cpc.sensor.listener.CPCFileBufferListen er.dirtyStateChanged(CPCFileBufferListener.java:442)
> at
> org.eclipse.core.internal.filebuffers.TextFileBufferManager$ 3.run(TextFileBufferManager.java:640)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at
> org.eclipse.core.internal.filebuffers.TextFileBufferManager. fireDirtyStateChanged(TextFileBufferManager.java:638)
> at
> org.eclipse.core.internal.filebuffers.ResourceFileBuffer.com mit(ResourceFileBuffer.java:335)
> at
> org.eclipse.jdt.internal.ui.javaeditor.DocumentAdapter.save( DocumentAdapter.java:424)
> at
> org.eclipse.jdt.internal.core.CommitWorkingCopyOperation.exe cuteOperation(CommitWorkingCopyOperation.java:123)
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:720)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1797)
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.runOperatio n(JavaModelOperation.java:785)
> at
> org.eclipse.jdt.internal.core.CompilationUnit.commitWorkingC opy(CompilationUnit.java:354)
> at
> org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocume ntProvider.commitWorkingCopy(CompilationUnitDocumentProvider .java:1302)
> at
> org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocume ntProvider$5.execute(CompilationUnitDocumentProvider.java:13 67)
> at
> org.eclipse.ui.editors.text.TextFileDocumentProvider$Documen tProviderOperation.run(TextFileDocumentProvider.java:129)
> at
> org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.ex ecute(WorkspaceModifyDelegatingOperation.java:68)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1797)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
> at
> org.eclipse.ui.internal.editors.text.WorkspaceOperationRunne r.run(WorkspaceOperationRunner.java:73)
> at
> org.eclipse.ui.internal.editors.text.WorkspaceOperationRunne r.run(WorkspaceOperationRunner.java:63)
> at
> org.eclipse.ui.editors.text.TextFileDocumentProvider.execute Operation(TextFileDocumentProvider.java:450)
> at
> org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDoc ument(TextFileDocumentProvider.java:761)
> at
> org.eclipse.ui.texteditor.AbstractTextEditor.performSave(Abs tractTextEditor.java:4716)
> at
> org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor .performSave(CompilationUnitEditor.java:1216)
> at
> org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor .doSave(CompilationUnitEditor.java:1269)
> at
> com.cloudgarden.jigloo.editors.FormEditor.updateWorkingCopyI nternal(FormEditor.java:10003)
> at
> com.cloudgarden.jigloo.editors.FormEditor.updateWorkingCopy( FormEditor.java:9892)
> at com.cloudgarden.jigloo.editors.FormEditor.doSave(FormEditor. java:9657)
> at
> org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavab le.doSave(AbstractTextEditor.java:6779)
> at org.eclipse.ui.Saveable.doSave(Saveable.java:212)
> at
> org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableH elper.java:339)
> at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper. java:185)
> at org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper. java:266)
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
> at
> org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:758)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:755)
> at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2451)
> at
> org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOpe ration(SaveableHelper.java:274)
> at
> org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOpe ration(SaveableHelper.java:253)
> at
> org.eclipse.ui.internal.SaveableHelper.saveModels(SaveableHe lper.java:196)
> at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelp er.java:136)
> at org.eclipse.ui.internal.EditorManager.savePart(EditorManager .java:1345)
> at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage .java:3202)
> at
> org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPa ge.java:3215)
> at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:73)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at org.eclipse.jface.commands.ActionHandler.execute(ActionHandl er.java:119)
> at org.eclipse.core.commands.Command.executeWithChecks(Command. java:475)
> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:429)
> at
> org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:165)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:470)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:821)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:879)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:568)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:510)
> at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:126)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:142 3)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137 )
> at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.ja va:663)
> at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control. java:2533)
> at
> org.eclipse.swt.widgets.Composite.gtk_key_press_event(Compos ite.java:679)
> at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973 )
> at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
> at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:55 93)
> at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
> at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1487)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2969)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> 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(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
> 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(EclipseS tarter.java:363)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Re: Commons Logging & Eclipse plug-ins (multi plug-in compatibility problem) [message #325138 is a reply to message #325135] Sun, 10 February 2008 12:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipsenews-9999-exp.sblk.de

Hi Francis,

thanks for the pointer.
As I am using Apache Commons Logging 1.1 it is quite possible that the
Jigloo plug-in uses an older version of the library.

However, how can I solve this problem without modifying the Jigloo
plug-in? All my own plug-ins use the same version of the library.

I don't quite get why different versions would cause a problem though.
Shouldn't plug-ins be pretty much separated due to their plug-in class
loaders? Especially because the logger objects are only used locally
within each plug-in.

Another, maybe related matter, is the location of the library. Due to
some class path issues I currently include the Apache Commons Logging
library (~50kB) in all my plug-ins instead of using one shared copy.
The problem here was that I am providing a custom LogFactory
implementation for each plug-in which redirects all log output to the
correct logger (I am using Log4J). These custom factories are specified
via a commons-logging.properties file. In this setup I always ended up
getting class not found exceptions when the Commons Logging library was
not located within the plug-in itself.

Greetings
Hans

Francis Upton wrote:
> I think that somewhere you have 2 different instances of commons logging
> in your plugins. How to you provide this JAR file? The generally
> recommended way to provide an external JAR file like this is wrap it in
> it's own plugin.
>
> You might want to look into eclipse orbit, which actually provides a
> plugin for commons logging.
>
> Once you fix this problem, your second probably will likely go away.
>
> HTH
>
> Francis
Re: Commons Logging & Eclipse plug-ins (multi plug-in compatibility problem) [message #325139 is a reply to message #325138] Sun, 10 February 2008 12:30 Go to previous messageGo to next message
Eclipse UserFriend
The fact that you include the library in multiple places is the problem.
The commons logging library checks to see that the LogFactory class is
what it expects, and you are getting the error because of you have two
different instances of the LogFactory class (which is because you define
it in multiple plugins). The fact that these are separated because of
the different class loaders is the source of the problem.

I don't think the addition of the Jigloo stuff has anything to do with
your problem; you are bound to hit this problem based on the way you use
the commons logging library.

I suggest you make a new and separate plugin which has your customized
version of the commons logging library and remove it from all of your
other plugins; this way you will make sure there is only one
implementation and that should make this problem go away.

Francis

H. Meyer wrote:
> Hi Francis,
>
> thanks for the pointer.
> As I am using Apache Commons Logging 1.1 it is quite possible that the
> Jigloo plug-in uses an older version of the library.
>
> However, how can I solve this problem without modifying the Jigloo
> plug-in? All my own plug-ins use the same version of the library.
>
> I don't quite get why different versions would cause a problem though.
> Shouldn't plug-ins be pretty much separated due to their plug-in class
> loaders? Especially because the logger objects are only used locally
> within each plug-in.
>
> Another, maybe related matter, is the location of the library. Due to
> some class path issues I currently include the Apache Commons Logging
> library (~50kB) in all my plug-ins instead of using one shared copy.
> The problem here was that I am providing a custom LogFactory
> implementation for each plug-in which redirects all log output to the
> correct logger (I am using Log4J). These custom factories are specified
> via a commons-logging.properties file. In this setup I always ended up
> getting class not found exceptions when the Commons Logging library was
> not located within the plug-in itself.
>
> Greetings
> Hans
>
> Francis Upton wrote:
>> I think that somewhere you have 2 different instances of commons logging
>> in your plugins. How to you provide this JAR file? The generally
>> recommended way to provide an external JAR file like this is wrap it in
>> it's own plugin.
>>
>> You might want to look into eclipse orbit, which actually provides a
>> plugin for commons logging.
>>
>> Once you fix this problem, your second probably will likely go away.
>>
>> HTH
>>
>> Francis
Re: Commons Logging & Eclipse plug-ins (multi plug-in compatibility problem) [message #325153 is a reply to message #325139] Mon, 11 February 2008 08:00 Go to previous messageGo to next message
Eclipse UserFriend
And on top of Francis' advice you can also modify your plugins to
require that specific plugin version or import the specific version of
the packages. That way even if the 3rd party library still requires an
older version, unless common logging has been made a singleton both
plugins will get their required version.

PW



--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
Re: Commons Logging & Eclipse plug-ins (multi plug-in compatibility problem) [message #325171 is a reply to message #325139] Mon, 11 February 2008 15:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipsenews-9999-exp.sblk.de

Hi Francis,

I have now removed all but one occurrence of the Commons Logging Library
from my code.

One of my plug-ins contains the commons-logging-1.1.jar, a custom
LogFactory implementation and a commons-logging.properties file which
activates that factory. It is furthermore exporting
org.apache.commons.logging and org.apache.commons.logging.impl.
All my other plug-ins are depending on that plug-in.

While this works, it did not solve the problem.

!ENTRY org.eclipse.ui 4 0 2008-02-11 19:02:05.701
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ExceptionInInitializerError
at org.mortbay.util.Container.<clinit>(Container.java:39)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(HttpServerManager.java:78)
....
Caused by: org.apache.commons.logging.LogConfigurationException: The
chosen LogFactory implementation does not extend LogFactory. Please
check your configuration. (Caused by java.lang.ClassNotFoundException:
org.electrocodeogram.eclipse.core.logging.CommonsLogFactoryI mpl)
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java: 574)
....
Caused by: java.lang.ClassNotFoundException:
org.electrocodeogram.eclipse.core.logging.CommonsLogFactoryI mpl
at java.lang.ClassLoader.findClass(ClassLoader.java:358)
....

It looks as if my custom LogFactory implementation
(org.electrocodeogram.eclipse.core.logging.CommonsLogFactory Impl) can't
be accessed by some plug-in. However, the question here is why any other
plug-in would even see my Commons Logging code, as its use should be
limited to my plug-ins.

How is plug-in class loading handled in Eclipse? Would the same class,
loaded by different plug-ins share its static variables or not? I am
simply wondering whether some internal, static caching of Commons
Logging might be at the root of this problem.

Is there anything else I can do to ensure that "my" Commons Logging
library is not seen/used by _any_ plug-in which does not explicitly
depend on my logging plug-in?

Thanks a lot for your effort.

Greetings
Hans

Francis Upton wrote:
> The fact that you include the library in multiple places is the problem.
> The commons logging library checks to see that the LogFactory class is
> what it expects, and you are getting the error because of you have two
> different instances of the LogFactory class (which is because you define
> it in multiple plugins). The fact that these are separated because of
> the different class loaders is the source of the problem.
>
> I don't think the addition of the Jigloo stuff has anything to do with
> your problem; you are bound to hit this problem based on the way you use
> the commons logging library.
>
> I suggest you make a new and separate plugin which has your customized
> version of the commons logging library and remove it from all of your
> other plugins; this way you will make sure there is only one
> implementation and that should make this problem go away.
>
> Francis
Re: Commons Logging & Eclipse plug-ins (multi plug-in compatibility problem) [message #325174 is a reply to message #325171] Mon, 11 February 2008 17:08 Go to previous messageGo to next message
Eclipse UserFriend
There is an option you can put in the bundle manifest (the MANIFEST.MF
file) which allows for the plugin to be globally shared. It's called
Eclipse-BuddyPolicy. Set it to global.

That should make it available everywhere.

I think the best thing however, is to just get the plugin from orbit and
use that. Your customizations should be in *one* of *your* plugins, not
in the commons-logging plugin. That should be pure commons-logging.
They everything that needs commons-logging should find it and get it
from the same place.

H. Meyer wrote:
> Hi Francis,
>
> I have now removed all but one occurrence of the Commons Logging Library
> from my code.
>
> One of my plug-ins contains the commons-logging-1.1.jar, a custom
> LogFactory implementation and a commons-logging.properties file which
> activates that factory. It is furthermore exporting
> org.apache.commons.logging and org.apache.commons.logging.impl.
> All my other plug-ins are depending on that plug-in.
>
> While this works, it did not solve the problem.
>
> !ENTRY org.eclipse.ui 4 0 2008-02-11 19:02:05.701
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.ExceptionInInitializerError
> at org.mortbay.util.Container.<clinit>(Container.java:39)
> at
> org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(HttpServerManager.java:78)
> ...
> Caused by: org.apache.commons.logging.LogConfigurationException: The
> chosen LogFactory implementation does not extend LogFactory. Please
> check your configuration. (Caused by java.lang.ClassNotFoundException:
> org.electrocodeogram.eclipse.core.logging.CommonsLogFactoryI mpl)
> at org.apache.commons.logging.LogFactory$2.run(LogFactory.java: 574)
> ...
> Caused by: java.lang.ClassNotFoundException:
> org.electrocodeogram.eclipse.core.logging.CommonsLogFactoryI mpl
> at java.lang.ClassLoader.findClass(ClassLoader.java:358)
> ...
>
> It looks as if my custom LogFactory implementation
> (org.electrocodeogram.eclipse.core.logging.CommonsLogFactory Impl) can't
> be accessed by some plug-in. However, the question here is why any other
> plug-in would even see my Commons Logging code, as its use should be
> limited to my plug-ins.
>
> How is plug-in class loading handled in Eclipse? Would the same class,
> loaded by different plug-ins share its static variables or not? I am
> simply wondering whether some internal, static caching of Commons
> Logging might be at the root of this problem.
>
> Is there anything else I can do to ensure that "my" Commons Logging
> library is not seen/used by _any_ plug-in which does not explicitly
> depend on my logging plug-in?
>
> Thanks a lot for your effort.
>
> Greetings
> Hans
>
> Francis Upton wrote:
>> The fact that you include the library in multiple places is the problem.
>> The commons logging library checks to see that the LogFactory class is
>> what it expects, and you are getting the error because of you have two
>> different instances of the LogFactory class (which is because you define
>> it in multiple plugins). The fact that these are separated because of
>> the different class loaders is the source of the problem.
>>
>> I don't think the addition of the Jigloo stuff has anything to do with
>> your problem; you are bound to hit this problem based on the way you use
>> the commons logging library.
>>
>> I suggest you make a new and separate plugin which has your customized
>> version of the commons logging library and remove it from all of your
>> other plugins; this way you will make sure there is only one
>> implementation and that should make this problem go away.
>>
>> Francis
Re: Commons Logging & Eclipse plug-ins (multi plug-in compatibility problem) [message #325176 is a reply to message #325174] Mon, 11 February 2008 18:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipsenews-9999-exp.sblk.de

Hi,

My customisations are basically just a custom LogFactory implementation
as well as the commons-logging.properties which activates that factory.

The problem which I am seeing with using the corresponding Orbit plug-in
is the commons-logging.properties file.
I don't quite see yet how it would be possible to restrict the use of my
custom LogFactory to only my own plug-ins. I tried putting a
commons-logging.properties file in each of my plug-ins once, but Commons
Logging did not see the file.
(Though, as is visible in the exceptions I've posted so far, my current
approach seems to fail at containing the use of my custom LogFactory too
for some reason.)

Another issue of using the orbit plug-in would be the deployment via an
Update Site. Can I just include the orbit plug-in in my own Update Site
or would the end user have to always select my update site and an orbit
update site in order to resolve the dependency?

Once again thank you for your time.

Greetings
Hans

Francis Upton wrote:
> There is an option you can put in the bundle manifest (the MANIFEST.MF
> file) which allows for the plugin to be globally shared. It's called
> Eclipse-BuddyPolicy. Set it to global.
>
> That should make it available everywhere.
>
> I think the best thing however, is to just get the plugin from orbit and
> use that. Your customizations should be in *one* of *your* plugins, not
> in the commons-logging plugin. That should be pure commons-logging.
> They everything that needs commons-logging should find it and get it
> from the same place.
>
> H. Meyer wrote:
>> Hi Francis,
>>
>> I have now removed all but one occurrence of the Commons Logging Library
>> from my code.
>>
>> One of my plug-ins contains the commons-logging-1.1.jar, a custom
>> LogFactory implementation and a commons-logging.properties file which
>> activates that factory. It is furthermore exporting
>> org.apache.commons.logging and org.apache.commons.logging.impl.
>> All my other plug-ins are depending on that plug-in.
>>
>> While this works, it did not solve the problem.
>>
>> !ENTRY org.eclipse.ui 4 0 2008-02-11 19:02:05.701
>> !MESSAGE Unhandled event loop exception
>> !STACK 0
>> java.lang.ExceptionInInitializerError
>> at org.mortbay.util.Container.<clinit>(Container.java:39)
>> at
>> org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(HttpServerManager.java:78)
>>
>> ...
>> Caused by: org.apache.commons.logging.LogConfigurationException: The
>> chosen LogFactory implementation does not extend LogFactory. Please
>> check your configuration. (Caused by java.lang.ClassNotFoundException:
>> org.electrocodeogram.eclipse.core.logging.CommonsLogFactoryI mpl)
>> at org.apache.commons.logging.LogFactory$2.run(LogFactory.java: 574)
>> ...
>> Caused by: java.lang.ClassNotFoundException:
>> org.electrocodeogram.eclipse.core.logging.CommonsLogFactoryI mpl
>> at java.lang.ClassLoader.findClass(ClassLoader.java:358)
>> ...
>>
>> It looks as if my custom LogFactory implementation
>> (org.electrocodeogram.eclipse.core.logging.CommonsLogFactory Impl) can't
>> be accessed by some plug-in. However, the question here is why any other
>> plug-in would even see my Commons Logging code, as its use should be
>> limited to my plug-ins.
>>
>> How is plug-in class loading handled in Eclipse? Would the same class,
>> loaded by different plug-ins share its static variables or not? I am
>> simply wondering whether some internal, static caching of Commons
>> Logging might be at the root of this problem.
>>
>> Is there anything else I can do to ensure that "my" Commons Logging
>> library is not seen/used by _any_ plug-in which does not explicitly
>> depend on my logging plug-in?
>>
>> Thanks a lot for your effort.
>>
>> Greetings
>> Hans
>>
>> Francis Upton wrote:
>>> The fact that you include the library in multiple places is the problem.
>>> The commons logging library checks to see that the LogFactory class is
>>> what it expects, and you are getting the error because of you have two
>>> different instances of the LogFactory class (which is because you define
>>> it in multiple plugins). The fact that these are separated because of
>>> the different class loaders is the source of the problem.
>>>
>>> I don't think the addition of the Jigloo stuff has anything to do with
>>> your problem; you are bound to hit this problem based on the way you use
>>> the commons logging library.
>>>
>>> I suggest you make a new and separate plugin which has your customized
>>> version of the commons logging library and remove it from all of your
>>> other plugins; this way you will make sure there is only one
>>> implementation and that should make this problem go away.
>>>
>>> Francis
Re: Commons Logging & Eclipse plug-ins (multi plug-in compatibility problem) [message #325187 is a reply to message #325176] Tue, 12 February 2008 07:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipsenews-9999-exp.sblk.de

I have now moved to using SLF4J instead of Commons Logging
(http://www.slf4j.org) to see whether that might solve some of my class
loading issues.
I'll keep you updated.

Greetings
Hans
Re: Commons Logging & Eclipse plug-ins (multi plug-in compatibility problem) [message #325242 is a reply to message #325176] Wed, 13 February 2008 01:35 Go to previous message
Eclipse UserFriend
H. Meyer wrote:
> Hi,
>
> My customisations are basically just a custom LogFactory implementation
> as well as the commons-logging.properties which activates that factory.
>
> The problem which I am seeing with using the corresponding Orbit plug-in
> is the commons-logging.properties file.
> I don't quite see yet how it would be possible to restrict the use of my
> custom LogFactory to only my own plug-ins. I tried putting a
> commons-logging.properties file in each of my plug-ins once, but Commons
> Logging did not see the file.
> (Though, as is visible in the exceptions I've posted so far, my current
> approach seems to fail at containing the use of my custom LogFactory too
> for some reason.)

Can't you set a System.property to point to the properties file? I'm
not that familiar with commons logging actually. I use it, but then I
assume it always uses log4j and set the properties of log4j directly
using their API, which works out fine.

>
> Another issue of using the orbit plug-in would be the deployment via an
> Update Site. Can I just include the orbit plug-in in my own Update Site
> or would the end user have to always select my update site and an orbit
> update site in order to resolve the dependency?

You should be able to include it in your own update site; the
redistribution for anything provided by eclipse.org should be the same.

>
> Once again thank you for your time.

No problem, I have been helped many times. :)

>
> Greetings
> Hans
>
> Francis Upton wrote:
>> There is an option you can put in the bundle manifest (the MANIFEST.MF
>> file) which allows for the plugin to be globally shared. It's called
>> Eclipse-BuddyPolicy. Set it to global.
>>
>> That should make it available everywhere.
>>
>> I think the best thing however, is to just get the plugin from orbit and
>> use that. Your customizations should be in *one* of *your* plugins, not
>> in the commons-logging plugin. That should be pure commons-logging.
>> They everything that needs commons-logging should find it and get it
>> from the same place.
>>
>> H. Meyer wrote:
>>> Hi Francis,
>>>
>>> I have now removed all but one occurrence of the Commons Logging Library
>>> from my code.
>>>
>>> One of my plug-ins contains the commons-logging-1.1.jar, a custom
>>> LogFactory implementation and a commons-logging.properties file which
>>> activates that factory. It is furthermore exporting
>>> org.apache.commons.logging and org.apache.commons.logging.impl.
>>> All my other plug-ins are depending on that plug-in.
>>>
>>> While this works, it did not solve the problem.
>>>
>>> !ENTRY org.eclipse.ui 4 0 2008-02-11 19:02:05.701
>>> !MESSAGE Unhandled event loop exception
>>> !STACK 0
>>> java.lang.ExceptionInInitializerError
>>> at org.mortbay.util.Container.<clinit>(Container.java:39)
>>> at
>>> org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(HttpServerManager.java:78)
>>>
>>> ...
>>> Caused by: org.apache.commons.logging.LogConfigurationException: The
>>> chosen LogFactory implementation does not extend LogFactory. Please
>>> check your configuration. (Caused by java.lang.ClassNotFoundException:
>>> org.electrocodeogram.eclipse.core.logging.CommonsLogFactoryI mpl)
>>> at org.apache.commons.logging.LogFactory$2.run(LogFactory.java: 574)
>>> ...
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.electrocodeogram.eclipse.core.logging.CommonsLogFactoryI mpl
>>> at java.lang.ClassLoader.findClass(ClassLoader.java:358)
>>> ...
>>>
>>> It looks as if my custom LogFactory implementation
>>> (org.electrocodeogram.eclipse.core.logging.CommonsLogFactory Impl) can't
>>> be accessed by some plug-in. However, the question here is why any other
>>> plug-in would even see my Commons Logging code, as its use should be
>>> limited to my plug-ins.
>>>
>>> How is plug-in class loading handled in Eclipse? Would the same class,
>>> loaded by different plug-ins share its static variables or not? I am
>>> simply wondering whether some internal, static caching of Commons
>>> Logging might be at the root of this problem.
>>>
>>> Is there anything else I can do to ensure that "my" Commons Logging
>>> library is not seen/used by _any_ plug-in which does not explicitly
>>> depend on my logging plug-in?
>>>
>>> Thanks a lot for your effort.
>>>
>>> Greetings
>>> Hans
>>>
>>> Francis Upton wrote:
>>>> The fact that you include the library in multiple places is the problem.
>>>> The commons logging library checks to see that the LogFactory class is
>>>> what it expects, and you are getting the error because of you have two
>>>> different instances of the LogFactory class (which is because you define
>>>> it in multiple plugins). The fact that these are separated because of
>>>> the different class loaders is the source of the problem.
>>>>
>>>> I don't think the addition of the Jigloo stuff has anything to do with
>>>> your problem; you are bound to hit this problem based on the way you use
>>>> the commons logging library.
>>>>
>>>> I suggest you make a new and separate plugin which has your customized
>>>> version of the commons logging library and remove it from all of your
>>>> other plugins; this way you will make sure there is only one
>>>> implementation and that should make this problem go away.
>>>>
>>>> Francis
Previous Topic:Forms Text Wrap
Next Topic:Clearing of Workspace data
Goto Forum:
  


Current Time: Fri Aug 08 06:20:13 EDT 2025

Powered by FUDForum. Page generated in 0.04758 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top