[CONTROLLER-340] ODL OSGi BundleException's don't go into logs, no stacktrace reported Created: 18/Apr/14  Updated: 25/Jul/23  Resolved: 27/Jan/16

Status: Resolved
Project: controller
Component/s: mdsal
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Valentin Mayamsin Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


External issue ID: 778

 Description   

How to reproduce:

1. Create simple bundle extended from org.opendaylight.controller.sal.binding.api.AbstractBindingAwareConsumer
2. Use some class in Activator declaration which doesn't exist in ODL and mark it as resolution:=optional in MANIFEST.MF . For example, I made 'Activator implements SomeInterface' from other bundle which haven't been loaded in ODL. In MANIFEST.MF it was mentioned as 'Import-Package: some.package.SomeInterface;resolution:=optional'
3. Run without some.package.SomeInterface loaded into the ODL.

Expected:
1. BundleException with stack trace identifying the issue
2. BundleException with stack trace recorded into opendaylight.log

Got:
1. stdout: 'BundleException: The activator is invalid'
2. no stack trace
3. no corresponding log record in opendaylight.log

Workaround:
Connect with a debugger, read stack trace.

Version:

org.opendaylight.controller.version = 0.1
org.opendaylight.controller.build.scm.version = b43cbaf25e664bff8b211d13018d7487e5235a90
org.opendaylight.controller.build.user = jenkins-controller
org.opendaylight.controller.build.workspace = **********
org.opendaylight.controller.build.timestamp = 1397752540201
org.opendaylight.controller.build.machine = **********



 Comments   
Comment by Robert Varga [ 04/Feb/15 ]

Is this still present in the Helium release? I suspect Karaf has fixed the problem...

Comment by Valentin Mayamsin [ 04/Feb/15 ]

I'm not sure about this particular one, but I do still experience missing exceptions in logs and missing log entries.

Comment by Carol Sanders [ 04/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL.

Comment by Tony Tkacik [ 27/Jan/16 ]

This is issue of custom OSGI runtime present in Hydrogen, custom OSGI runtime was replaced with Karaf in Helium.

Generated at Wed Feb 07 19:52:47 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.