Just the fact that I’ve read tens of pages, none of them bother to explain the “Bundles” and how dependencies are handled. Are they loaded prior to the program running? Does one need to authorize sources of bundles? Does on install something? Who is OSGi and why was his body found in the Alps?
It would appear that the error message is telling you that the dependency resolver was unable to locate osgi.wiring.package.
I don’t know why that would be, but the aforementioned blog recommends “add[ing] a bundle that exports the missing package with a version that matches the required version”.
From the stackoverflow I posted, I was hoping to find what was the offending package, such as in their post: org.osgi.framework.BundleException: Unresolved constraint in bundle MyBundle [121]: Unable to resolve 121.13: missing requirement [121.13] osgi.wiring.package; (&(osgi.wiring.package=com.google.gson)(version>=2.3.0)(!(version>=3.0.0)))
The error message is supposed to include something like &(osgi.wiring=org.apahce.felix.dm).
In the case you found it’s &(osgi.wiring.package=com.google.gson), but in this case it’s &(osgi.wiring=org.apahce.felix.dm).
Either way, I think the message @Jonne posted is missing the end part.
jonne@Linnu:~/ols-0.9.7.2$ ./run.sh
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.felix.framework.util.SecureAction (file:/home/jonne/ols-0.9.7.2/bin/org.apache.felix.main-4.4.1.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.apache.felix.framework.util.SecureAction
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
ERROR: Bundle nl.lxtreme.ols.tool.i2c [1] Error starting file:/home/jonne/ols-0.9.7.2/plugins/i2c-1.0.1.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.i2c [1]: Unable to resolve 1.0: missing requirement [1.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.i2c [1]: Unable to resolve 1.0: missing requirement [1.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.device.generic [2] Error starting file:/home/jonne/ols-0.9.7.2/plugins/generic-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.device.generic [2]: Unable to resolve 2.0: missing requirement [2.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.device.generic [2]: Unable to resolve 2.0: missing requirement [2.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.service.acquisition [3] Error starting file:/home/jonne/ols-0.9.7.2/plugins/service.acquisition-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.service.acquisition [3]: Unable to resolve 3.0: missing requirement [3.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.service.acquisition [3]: Unable to resolve 3.0: missing requirement [3.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.tool.1wire [6] Error starting file:/home/jonne/ols-0.9.7.2/plugins/1wire-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.1wire [6]: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.1wire [6]: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.tool.jtag [7] Error starting file:/home/jonne/ols-0.9.7.2/plugins/jtag-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.jtag [7]: Unable to resolve 7.0: missing requirement [7.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.jtag [7]: Unable to resolve 7.0: missing requirement [7.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.service.taskexecution [9] Error starting file:/home/jonne/ols-0.9.7.2/plugins/service.taskexecution-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.service.taskexecution [9]: Unable to resolve 9.0: missing requirement [9.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api.task)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.service.taskexecution [9]: Unable to resolve 9.0: missing requirement [9.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api.task)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.tool.spi [10] Error starting file:/home/jonne/ols-0.9.7.2/plugins/spi-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.spi [10]: Unable to resolve 10.0: missing requirement [10.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.spi [10]: Unable to resolve 10.0: missing requirement [10.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.tool.dmx512 [11] Error starting file:/home/jonne/ols-0.9.7.2/plugins/dmx512-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.dmx512 [11]: Unable to resolve 11.0: missing requirement [11.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.dmx512 [11]: Unable to resolve 11.0: missing requirement [11.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.client.project [12] Error starting file:/home/jonne/ols-0.9.7.2/plugins/client.project-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.client.project [12]: Unable to resolve 12.0: missing requirement [12.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.client.project [12]: Unable to resolve 12.0: missing requirement [12.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.device.logicsniffer [13] Error starting file:/home/jonne/ols-0.9.7.2/plugins/logicsniffer-1.1.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.device.logicsniffer [13]: Unable to resolve 13.0: missing requirement [13.0] osgi.wiring.package; (osgi.wiring.package=javax.swing.border))
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.device.logicsniffer [13]: Unable to resolve 13.0: missing requirement [13.0] osgi.wiring.package; (osgi.wiring.package=javax.swing.border)
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.tool.base [14] Error starting file:/home/jonne/ols-0.9.7.2/plugins/base-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.base [14]: Unable to resolve 14.0: missing requirement [14.0] osgi.wiring.package; (osgi.wiring.package=javax.swing.filechooser))
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.base [14]: Unable to resolve 14.0: missing requirement [14.0] osgi.wiring.package; (osgi.wiring.package=javax.swing.filechooser)
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.tool.uart [15] Error starting file:/home/jonne/ols-0.9.7.2/plugins/uart-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.uart [15]: Unable to resolve 15.0: missing requirement [15.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.uart [15]: Unable to resolve 15.0: missing requirement [15.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.device.test [16] Error starting file:/home/jonne/ols-0.9.7.2/plugins/test-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.device.test [16]: Unable to resolve 16.0: missing requirement [16.0] osgi.wiring.package; (osgi.wiring.package=javax.swing.border))
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.device.test [16]: Unable to resolve 16.0: missing requirement [16.0] osgi.wiring.package; (osgi.wiring.package=javax.swing.border)
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.export.csv [18] Error starting file:/home/jonne/ols-0.9.7.2/plugins/csv-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.export.csv [18]: Unable to resolve 18.0: missing requirement [18.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api.acquisition)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.export.csv [18]: Unable to resolve 18.0: missing requirement [18.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api.acquisition)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.tool.asm45 [19] Error starting file:/home/jonne/ols-0.9.7.2/plugins/asm45-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.asm45 [19]: Unable to resolve 19.0: missing requirement [19.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.asm45 [19]: Unable to resolve 19.0: missing requirement [19.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.tool.linedecoder [20] Error starting file:/home/jonne/ols-0.9.7.2/plugins/linedecoder-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.linedecoder [20]: Unable to resolve 20.0: missing requirement [20.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.linedecoder [20]: Unable to resolve 20.0: missing requirement [20.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.export.vcd [22] Error starting file:/home/jonne/ols-0.9.7.2/plugins/vcd-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.export.vcd [22]: Unable to resolve 22.0: missing requirement [22.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api.acquisition)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.export.vcd [22]: Unable to resolve 22.0: missing requirement [22.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api.acquisition)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.tool.serialconsole [23] Error starting file:/home/jonne/ols-0.9.7.2/plugins/serialconsole-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.serialconsole [23]: Unable to resolve 23.0: missing requirement [23.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api.data.annotation)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.serialconsole [23]: Unable to resolve 23.0: missing requirement [23.0] osgi.wiring.package; (&(osgi.wiring.package=nl.lxtreme.ols.api.data.annotation)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.util [25] Error starting file:/home/jonne/ols-0.9.7.2/plugins/util-1.1.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.util [25]: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility))
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.util [25]: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.export.image [27] Error starting file:/home/jonne/ols-0.9.7.2/plugins/image-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.export.image [27]: Unable to resolve 27.0: missing requirement [27.0] osgi.wiring.package; (osgi.wiring.package=javax.imageio))
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.export.image [27]: Unable to resolve 27.0: missing requirement [27.0] osgi.wiring.package; (osgi.wiring.package=javax.imageio)
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.client [29] Error starting file:/home/jonne/ols-0.9.7.2/plugins/client-1.2.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.client [29]: Unable to resolve 29.0: missing requirement [29.0] osgi.wiring.package; (osgi.wiring.package=javax.swing.border))
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.client [29]: Unable to resolve 29.0: missing requirement [29.0] osgi.wiring.package; (osgi.wiring.package=javax.swing.border)
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.lib.mydoggy [30] Error starting file:/home/jonne/ols-0.9.7.2/plugins/lib.mydoggy-1.5.0-SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.lib.mydoggy [30]: Unable to resolve 30.0: missing requirement [30.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility))
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.lib.mydoggy [30]: Unable to resolve 30.0: missing requirement [30.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.api [31] Error starting file:/home/jonne/ols-0.9.7.2/plugins/api-1.0.5.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.api [31]: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)])
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.api [31]: Unable to resolve 31.0: missing requirement [31.0] osgi.wiring.package; (osgi.wiring.package=nl.lxtreme.ols.util) [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR: Bundle nl.lxtreme.ols.tool.state [33] Error starting file:/home/jonne/ols-0.9.7.2/plugins/state-1.0.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.state [33]: Unable to resolve 33.0: missing requirement [33.0] osgi.wiring.package; (osgi.wiring.package=javax.swing.border))
org.osgi.framework.BundleException: Unresolved constraint in bundle nl.lxtreme.ols.tool.state [33]: Unable to resolve 33.0: missing requirement [33.0] osgi.wiring.package; (osgi.wiring.package=javax.swing.border)
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.base/java.lang.Thread.run(Thread.java:834)
WARNING: Not all bundles resolve correctly
EDIT: absolutely effing hopeless. I am never going to use Java for anything. I can’t make any sense of this problem
EDIT: absolutely frigging horrible. Never have I been so lost with any computer issue. I have no clue what I am supposed to do. I put the javax.accessibility.jar bundle in the application execution folder, no difference at all
In my years of using Java, I’ve never seen this specific issue Though it is a huge dump of missing dependencies, or more likely, incompatible versions of libraries and such.
Edit:
I don’t think the errors you are running into are anything you did. I think it is the maintainers of the software or some version conflict somewhere…
Edit:
I just tried running from the deployed archive for 0.9.7.2 and it is just broken with java 15 which makes me believe it is also just incompatible with java 11 and up. I reverted my java install to java 8.0.282.hs-adpt and it runs now. So! How do you manage your java versions? I use https://sdkman.io/ because it is incredibly painless compared to managing paths manually. Plus changing versions is speedy and simple as well.
In fairness, I think this is a problem with the framework rather than the language.
(Not to say that Java doesn’t have its flaws, but credit where credit is due.)
There’s an issue from December with words to that effect:
And it seems the commit jawi mentions at the bottom is this one:
Having read through the error messages, it seems like most of the errors are actually the result of a cascade effect - all the errors are actually marked as [caused by: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (osgi.wiring.package=javax.accessibility)]. I.e. the inability to properly resolve javax.accessibility is the root cause of all the other problems.
The individual error messages are actually fairly straightforward, they’re just really poorly formatted.
And it would have been a lot easier to understand that this is actually telling you about a chain of cause and effect, much like how exception messages tell you about the chain of function calls that resulted in the exception.
(If I were truly benevolent enough I’d raise an issue about it, but since I don’t actually use this software it’d probably be more hassle than it’s worth.)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:19 min
[INFO] Finished at: 2021-03-29T22:28:08+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test) on project service.taskexecution: There are test failures.
[ERROR]
[ERROR] Please refer to /home/jonne/ols/service.taskexecution/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
Holy mother of dwarves of the smoky mountains
# Created on 2021-03-29T22:28:07.555
WARNING: An illegal reflective access operation has occurred
# Created on 2021-03-29T22:28:07.555
WARNING: Illegal reflective access by org.mockito.cglib.core.ReflectUtils$2 (file:/home/jonne/.m2/repository/org/mockito/mockito-all/2.0.2-beta/mockito-all-2.0.2-beta.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
# Created on 2021-03-29T22:28:07.555
WARNING: Please consider reporting this to the maintainers of org.mockito.cglib.core.ReflectUtils$2
# Created on 2021-03-29T22:28:07.555
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
# Created on 2021-03-29T22:28:07.556
WARNING: All illegal access operations will be denied in a future release
By the mourning wives of Ishtar, I have my mind set on splitting the skull of this mangy dog with my sword
-------------------------------------------------------------------------------
Test set: nl.lxtreme.ols.task.execution.BackgroundTaskExecutionServiceTest
-------------------------------------------------------------------------------
Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.158 s <<< FAILURE! - in nl.lxtreme.ols.task.execution.BackgroundTaskExecutionServiceTest
testExecuteFail(nl.lxtreme.ols.task.execution.BackgroundTaskExecutionServiceTest) Time elapsed: 0.044 s <<< ERROR!
java.lang.Exception: Unexpected exception, expected<java.util.concurrent.ExecutionException> but was<org.mockito.exceptions.verification.WantedButNotInvoked>
at nl.lxtreme.ols.task.execution.BackgroundTaskExecutionServiceTest.testExecuteFail(BackgroundTaskExecutionServiceTest.java:228)