Reto Gmür created FELIX-5087:
--------------------------------

             Summary: Make wiring-error messages more readable
                 Key: FELIX-5087
                 URL: https://issues.apache.org/jira/browse/FELIX-5087
             Project: Felix
          Issue Type: Improvement
            Reporter: Reto Gmür


The error messages for missing requirements are hard to read, the root cause is 
usually buried into some repetitive and rather cryptic test.

{code:title=Example}
! Failed to start bundle 
org.apache.clerezza.platform.typerendering.seedsnipe-1.0.0, exception Unable to 
resolve org.apache.clerezza.platform.typerendering.seedsnipe [129](R 129.0): 
missing requirement [org.apache.clerezza.platform.typerendering.seedsnipe 
[129](R 129.0)] osgi.wiring.package; 
(osgi.wiring.package=org.apache.clerezza.templating) [caused by: Unable to 
resolve org.apache.clerezza.templating [108](R 108.0): missing requirement 
[org.apache.clerezza.templating [108](R 108.0)] osgi.wiring.package; 
(osgi.wiring.package=org.apache.clerezza.rdf.utils) [caused by: Unable to 
resolve org.apache.clerezza.rdf.utils [80](R 80.0): missing requirement 
[org.apache.clerezza.rdf.utils [80](R 80.0)] osgi.wiring.package; 
(osgi.wiring.package=org.apache.clerezza.rdf.core.serializedform) [caused by: 
Unable to resolve org.apache.clerezza.rdf.core [96](R 96.0): missing 
requirement [org.apache.clerezza.rdf.core [96](R 96.0)] osgi.wiring.package; 
(osgi.wiring.package=org.apache.clerezza.utils.security) [caused by: Unable to 
resolve org.apache.clerezza.utils [62](R 62.0): missing requirement 
[org.apache.clerezza.utils [62](R 62.0)] osgi.wiring.package; 
(osgi.wiring.package=org.wymiwyg.commons.util.dirbrowser) [caused by: Unable to 
resolve org.wymiwyg.commons-core [70](R 70.0): missing requirement 
[org.wymiwyg.commons-core [70](R 70.0)] osgi.wiring.package; 
(&(osgi.wiring.package=org.slf4j)(version>=1.7.0)(!(version>=2.0.0)))]]]]] 
Unresolved requirements: [[org.apache.clerezza.platform.typerendering.seedsnipe 
[129](R 129.0)] osgi.wiring.package; 
(osgi.wiring.package=org.apache.clerezza.templating)]
{code}

I think the following would be a more redable variant of the above:
{code}
Missing dependency: A bundle provinding org.slf4j(version>=1.7.0) is missing! 
Because of this the following bundles could not be started: ....
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to