Ask Your Question

ResolutionFailureException raised on the installation of jar

asked 2014-08-06 18:54:35 -0700

updated 2014-08-06 22:12:33 -0700

Whenever I try to install the jar to the ODL running instance, using the install ://locaiton_of_jar it raises the ResolutionFailureException.

Version              1.0.0.SNAPSHOT
StateChanging        null
BundleData           org.opendaylight.controller.vsdnnb_1.0.0.SNAPSHOT
BundleContext        null
BundleId             273
StartLevel           1
SymbolicName         org.opendaylight.controller.vsdnnb
KeyHashCode          273
BundleDescription    org.opendaylight.controller.vsdnnb_1.0.0.SNAPSHOT
Framework            org.eclipse.osgi.framework.internal.core.Framework@53cb240d
ResolutionFailureException org.osgi.framework.BundleException: The bundle "org.opendaylight.controller.vsdnnb_1.0.0.SNAPSHOT [273]" could not be resolved
Revisions            [org.opendaylight.controller.vsdnnb_1.0.0.SNAPSHOT]
ProtectionDomain     null
Key                  273
Location             file:///home/mininet/git/gerrit/vsdn/vsdnnb/target/vsdnnb-1.0-SNAPSHOT.jar
State                2
Bundle                 273|Installed  |    1|org.opendaylight.controller.vsdnnb (1.0.0.SNAPSHOT)

But I am able to execute/start the bundle correctly.


osgi logs on start :

osgi> start 273 

I am trying to understand the reason of exception.

edit retag flag offensive close merge delete


Can you post the output when you execute "start 273" on the osgi> console ? 273 is the bundleId of your bundle. This will give a more detailed error/exception.

Madhu ( 2014-08-06 19:47:22 -0700 )edit

@Madhu I have added the console output of "start 273". It executes correctly without any exception.

subhash ( 2014-08-06 22:13:49 -0700 )edit

Thanks subhash. Please check the Answer and see if that helps your investigation.

Madhu ( 2014-08-06 23:38:17 -0700 )edit

@Madhu I will let you know.

subhash ( 2014-08-07 00:04:16 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-06 22:43:08 -0700

Madhu gravatar image

updated 2014-08-06 22:44:31 -0700

Thanks for the edit with updated logs. Essentially, there are no errors in your bundle definition and is working fine when you execute the "start" command. And yes, the ResolutionException seems misleading when you execute the Install command.

You can execute the "diag {bundle-id}" command to diagnose any issue. If you have defined any "import-package" directive on any package that is exported by the same bundle, You might notice that it might complain on missing import package on these self-serving package. (especially true if you use a catch-all * in your import-package section in the pom.xml file).

You can also try "install -start {bundle-location}" and this will also start the bundle in addition to installing it.

In short, the error can be a legitimate error if you have any genuine unresolved error. But in your case, it is false-positive and you can diagnose using the "diag {bundle-id}" command.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-08-06 18:54:35 -0700

Seen: 266 times

Last updated: Aug 06 '14