eclipse-ee4j / parsson

Parsson Project
Other
10 stars 21 forks source link

Corrupted OSGi manifest header in latest two versions (1.1.4, 1.1.3) of `org.eclipse.parsson.jakarta.json` #106

Closed ideas-into-software closed 1 year ago

ideas-into-software commented 1 year ago

Latest two versions of org.eclipse.parsson.jakarta.json (org.eclipse.parsson:jakarta.json:1.1.4 and org.eclipse.parsson:jakarta.json:1.1.3) have corrupted OSGi manifest header, preventing their use in OSGi projects.

This problem is not yet present in version org.eclipse.parsson:jakarta.json:1.1.2, which is what I had to revert to in project worked on.

Below please find stack trace snippet, as well as screenshot of same.

Failed to install bundle /home/michal/.m2/repository/org/eclipse/parsson/jakarta.json/1.1.4/jakarta.json-1.1.4.jar, exception Error creating requirement: java.lang.IllegalArgumentException: Missing closing parenthesis: (osgi.serviceloader=jakarta.json.spi.JsonProvider
org.osgi.framework.BundleException: Error creating requirement: java.lang.IllegalArgumentException: Missing closing parenthesis: (osgi.serviceloader=jakarta.json.spi.JsonProvider
    at org.apache.felix.framework.util.manifestparser.ManifestParser.convertRequireCapabilities(ManifestParser.java:615)
    at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:240)
    at org.apache.felix.framework.BundleRevisionImpl.<init>(BundleRevisionImpl.java:117)
    at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1290)
    at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:114)
    at org.apache.felix.framework.Felix.installBundle(Felix.java:3287)
    at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147)
    at aQute.launcher.Launcher.install(Launcher.java:1039)
    at aQute.launcher.Launcher.synchronizeFiles(Launcher.java:770)
    at aQute.launcher.Launcher.update(Launcher.java:632)
    at aQute.launcher.Launcher.activate(Launcher.java:575)
    at aQute.launcher.Launcher.launch(Launcher.java:404)
    at aQute.launcher.Launcher.run(Launcher.java:186)
    at aQute.launcher.Launcher.main(Launcher.java:162)
    at aQute.launcher.pre.EmbeddedLauncher.executeWithRunPath(EmbeddedLauncher.java:170)
    at aQute.launcher.pre.EmbeddedLauncher.findAndExecute(EmbeddedLauncher.java:135)
    at aQute.launcher.pre.EmbeddedLauncher.main(EmbeddedLauncher.java:52)

Screenshot from 2023-08-05 01-36-08