Hello! Over a year ago, I read a post somewhere regarding the formatting of "missing requirement" error messages. Unfortunately, I can't remember who wrote it or where it was (I'm guessing it was Peter Kriens, given the subject matter). The gist of it was that the current formatting for error messages in OSGi implementations tends to harm usability. For example, this wall of text from current Felix versions (not my own error message):
ERROR: Bundle org.sakaiproject.nakamura.world [76] Error starting file:bundles/org.sakaiproject.nakamura.world_1.4.0.SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.sakaiproject.nakamura.world [76]: Unable to resolve 76.0: missing requirement [76.0] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.0.0))) 11.07.2012 17:01:43.297 *ERROR* [FelixDispatchQueue] org.sakaiproject.nakamura.world FrameworkEvent ERROR (org.osgi.framework.BundleException: Unresolved constraint in bundle org.sakaiproject.nakamura.world [76]: Unable to resolve 76.0: missing requirement [76.0] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.0.0))) org.osgi.framework.BundleException: Unresolved constraint in bundle org.sakaiproject.nakamura.world [76]: Unable to resolve 76.0: missing requirement [76.0] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.0.0)) The post had a good example of how reformatting those messages with proper indenting made it much more apparent as to what the actual problem was. Unfortunately, I'm now completely unable to find that post. Can anyone remember where it was? -- Mark Raynsford | http://www.io7m.com
pgp2qKFxzVWuP.pgp
Description: OpenPGP digital signature
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev