Skip to content

Commit

Permalink
Merge pull request #233 from HannesWell/noClassDefFoundError
Browse files Browse the repository at this point in the history
[ARIES-2108] Catch 'NoClassDefFoundError' when loading Service-Provider instances
  • Loading branch information
cschneider authored Sep 29, 2023
2 parents 9f88cf7 + 891b731 commit 09b2d75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public List<ServiceRegistration> addingBundle(final Bundle bundle, BundleEvent e

activator.registerProviderBundle(details.serviceType, bundle, details.properties);
log(Level.INFO, "Registered provider " + details.instanceType + " of service " + details.serviceType + " in bundle " + bundle.getSymbolicName());
} catch (Exception e) {
} catch (Exception | NoClassDefFoundError e) {
log(Level.FINE,
"Could not load provider " + details.instanceType + " of service " + details.serviceType, e);
}
Expand Down

0 comments on commit 09b2d75

Please sign in to comment.