You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
The ExtensionManager (in commons) assumes that OSGi is available based on a system property. This actually doesn't work in case of a domino as the property is defined globalle while OSGi is not available for agent.
The fix consists in trying load the class (one line of real code), like shown bellow, before creating the EclipseProvider:
try {
String prop = System.getProperty("com.ibm.common.ExtensionManager"); //$NON-NLS-1$
if(StringUtil.isEmpty(prop) || StringUtil.equals(prop, "osgi")) { //$NON-NLS-1$
// Make sure that the OSGi framework is actually available
// In case of a Domino agent, for example, the properties are set but OSGi is not available
// Make sure that it exists - if not, it generates an exception that will be caught.
Class.forName("org.eclipse.core.runtime.Platform");
provider = new EclipseProvider();
}
} catch(Throwable t) {}
Can you guys integrate this fix?
The text was updated successfully, but these errors were encountered:
The ExtensionManager (in commons) assumes that OSGi is available based on a system property. This actually doesn't work in case of a domino as the property is defined globalle while OSGi is not available for agent.
The fix consists in trying load the class (one line of real code), like shown bellow, before creating the EclipseProvider:
try {
String prop = System.getProperty("com.ibm.common.ExtensionManager"); //$NON-NLS-1$
if(StringUtil.isEmpty(prop) || StringUtil.equals(prop, "osgi")) { //$NON-NLS-1$
// Make sure that the OSGi framework is actually available
// In case of a Domino agent, for example, the properties are set but OSGi is not available
// Make sure that it exists - if not, it generates an exception that will be caught.
Class.forName("org.eclipse.core.runtime.Platform");
provider = new EclipseProvider();
}
} catch(Throwable t) {}
Can you guys integrate this fix?
The text was updated successfully, but these errors were encountered: