Apache Karaf 4.2.6与Java 12的BundleException

时间:2019-07-06 18:28:13

标签: apache-karaf java-12

与JDK 11或12一起启动的Apache Karaf 4.2.6在启动和停止时引发异常。我至少需要JDK 11,因为我有一个使用JDK 11以来使用Websocket类的用JDK 11编写的应用程序。

org.osgi.framework.BundleException: Exported package names cannot be zero length.
    at org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeExportClauses(ManifestParser.java:876)
    at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:215)
    at org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.java:261)
    at org.apache.felix.framework.Felix.<init>(Felix.java:429)
    at org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
    at org.apache.karaf.main.Main.launch(Main.java:256)
    at org.apache.karaf.main.Main.main(Main.java:178)

0 个答案:

没有答案