Skip to main content



      Home
Home » Eclipse Projects » Equinox » EclipseLogListener Unhandled event loop exception - instance of org/eclipse/osgi/internal/baseadapto(EclipseLogListener Unhandled event loop exception)
EclipseLogListener Unhandled event loop exception - instance of org/eclipse/osgi/internal/baseadapto [message #1857328] Mon, 30 January 2023 23:32 Go to next message
Eclipse UserFriend
using felix but for one of the packages getting

java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader)

package listing shows only one bundle its resolved from.

how to further resolve the above issue
Re: EclipseLogListener Unhandled event loop exception - instance of org/eclipse/osgi/internal/basead [message #1857333 is a reply to message #1857328] Tue, 31 January 2023 08:13 Go to previous messageGo to next message
Eclipse UserFriend
I'm unsure why the very old (DefaultClassLoader) from Equinox would be getting used at all with the felix framework. Much more information is needed on the scenario to give any advise here. For example, the stack trace and environment, steps to reproduce.

I will say that org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader hasn't been in the Equinox codebase for 9 years, could be fixed in a more recent release of Equinox
Re: EclipseLogListener Unhandled event loop exception - instance of org/eclipse/osgi/internal/basead [message #1857342 is a reply to message #1857333] Wed, 01 February 2023 03:14 Go to previous message
Eclipse UserFriend
we are using org.eclipse.equinox.launcher_1.3.0-SDK-4.2.1.jar to launch, felix is using to create the bundles

we have a common system bundle which provides common tasks like logging.

The system bundle is in resolved status and is used across the other bundles


osgi> packages com.test.system.instrument.measurement
com.test.system.instrument.measurement; version="3.4.0"<com.test.system.instrument_3.4.0 [64]>
com.test.common.string_1.4.0 [9] imports

when the bundle is used we are getting

SEVERE: [{ERROR - MISSING RESOURCE}{RESOURCE KEY - com.test.rcp.viewer.utility.EclipseLogListener Unhandled event loop exception}]
Jan 27, 2023 4:22:27 PM com.test.rcp.viewer.utility.EclipseLogListener logging
SEVERE: [{ERROR - MISSING RESOURCE}{RESOURCE KEY - com.test.rcp.viewer.utility.EclipseLogListener }]
java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "com/test/system/instrument/measurement/Measurement"
at com.test.markup.conversion.impl.RtfConverter.convert(RtfConverter.java:172)
at com.test.rcp.core.utility.RTFUtility.getHTMLBytesFromRTFContent_ThrowsException(RTFUtility.java:75)
at com.test.rcp.core.utility.RTFUtility.getHTMLBytesfromRTFFile(RTFUtility.java:107)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at com.test.rcp.viewer.firstnet.view.FirstnetSearchView$11$1.run(FirstnetSearchView.java:626)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.test.rcp.viewer.Application.lambda$start$1(Application.java:183)
at java.security.AccessController.doPrivileged(Native Method)
at com.test.rcp.viewer.Application.start(Application.java:179)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

Previous Topic:Debug logging in org.eclipse.equinox.p2.metadata.repository.mirrorApplication
Next Topic:Equinox User
Goto Forum:
  


Current Time: Thu Mar 27 03:55:09 EDT 2025

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

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

Back to the top