在Karaf中安装功能时出错(MultiException& ZipException)

时间:2016-08-27 00:55:02

标签: osgi talend karaf

当我尝试在Karaf(4.0.5)中安装(任何)第三方库时,我收到一个奇怪的错误。我在centos7中使用Oracle JDK 1.8.0_102。 我的features.xml如下所示。

<features>
<feature name="feature1" version="1.0.0">
    <bundle>wrap:file://home/talend/Documents/SampleRoute/Text-maker.jar</bundle>
  </feature>
</features>

要添加features.xml,我使用了以下命令。 karaf @ trun()&gt;#feature:repo-add file:///opt/talend/trun/etc/features.xml

要安装feature1,我执行了以下命令, karaf @ trun()&gt;#feature:install feature1

但我得到以下例外:

2016-08-27 02:40:35,445 |错误| nsole用户karaf | ShellUtil | 52 - org.apache.karaf.shell.core - 4.0.5 |执行命令时捕获到异常 org.apache.karaf.features.internal.util.MultiException :错误         在org.apache.karaf.features.internal.download.impl.MavenDownloadManager $ MavenDownloader。(MavenDownloadManager.java:84)[9:org.apache.karaf.features.core:4.0.5]         在org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72)[9:org.apache.karaf.features.core:4.0.5]         在org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:363)[9:org.apache.karaf.features.core:4.0.5]         在org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:360)[9:org.apache.karaf.features.core:4.0.5]  在java.lang.Thread.run(Thread.java:745)[:1.8.0_102] 引起:java.util.zip.ZipException:条目大小无效(预期为1759510536,但得到190字节)         at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:384)[:1.8.0_102]

0 个答案:

没有答案