vocBench/SemanticTurkey 11.3 Error downloading wrap:file

34 views
Skip to first unread message

Robert Chavez

unread,
Dec 20, 2022, 10:07:16 AM12/20/22
to vocbench-user
Hello,

I've been having trouble launching vocBench3/SemanticTurkey with karaf versions 10.2 - 11.3.  The last version that I can successfully deploy (following the instructions in the user manual) is v.10.1 -- the version launches with no problems following the same process outlined below).

OS:  Amazon Linux
Java: openJDK 1.8

After downloading the .zip package an unpacking, I attempt to launch karaf with the the following commands:

/semanticturkey-11.3/bin/karaf

-or- to run in the background:

/semanticturkey-11.3/bin/start

In all cases (except for v.10.1) karaf returns the following error (see below). 

I've increased Java Heap memory several times, but it doesn't help.  Permissions are all good as far as I can tell.  Any ideas what might be causing this and how it can be resolved?

Again, I get the same error for v.10.2 - 11.3. 

org.apache.karaf.features.internal.util.MultiException: Error:
Error downloading wrap:file:/home/ec2-user/semantics/semanticturkey-11.3/system/org/apache/servicemix/bundles/org.apache.servicemix.bundles.elasticsearch/6.5.4_1/org.apache.servicemix.bundles.elasticsearch-6.5.4_1.jar$overwrite=merge&Import-Package=!org.apache.logging.log4j.core.*,*;resolution:=optional
Error downloading wrap:file:/home/ec2-user/semantics/semanticturkey-11.3/system/org/apache/servicemix/bundles/org.apache.servicemix.bundles.elasticsearch/6.5.4_1/org.apache.servicemix.bundles.elasticsearch-6.5.4_1.jar$overwrite=merge&Import-Package=!org.apache.logging.log4j.core.*,*;resolution:=optional
at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:91)
at org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72)
at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:457)
at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:452)
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:224)
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:401)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1063)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Suppressed: java.io.IOException: Error downloading wrap:file:/home/ec2-user/semantics/semanticturkey-11.3/system/org/apache/servicemix/bundles/org.apache.servicemix.bundles.elasticsearch/6.5.4_1/org.apache.servicemix.bundles.elasticsearch-6.5.4_1.jar$overwrite=merge&Import-Package=!org.apache.logging.log4j.core.*,*;resolution:=optional
at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
... 3 more
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
at aQute.lib.io.ByteBufferOutputStream.<init>(ByteBufferOutputStream.java:16)
at aQute.bnd.osgi.Jar.buildFromInputStream(Jar.java:300)
at aQute.bnd.osgi.Jar.<init>(Jar.java:223)
at org.ops4j.pax.swissbox.bnd.BndUtils.createBundle(BndUtils.java:123)
at org.ops4j.pax.url.wrap.internal.Connection.getInputStream(Connection.java:83)
at java.net.URL.openStream(URL.java:1093)
at org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:78)
at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60)
... 7 more
Suppressed: [CIRCULAR REFERENCE: java.io.IOException: Error downloading wrap:file:/home/ec2-user/semantics/semanticturkey-11.3/system/org/apache/servicemix/bundles/org.apache.servicemix.bundles.elasticsearch/6.5.4_1/org.apache.servicemix.bundles.elasticsearch-6.5.4_1.jar$overwrite=merge&Import-Package=!org.apache.logging.log4j.core.*,*;resolution:=optional]
17:11:09.353 ERROR [activator-1-thread-2] Error installing boot features

Thank you,
Robert

Robert Chavez

unread,
Jan 3, 2023, 11:26:06 AM1/3/23
to vocbench-user
I'm not 100% sure, but the problem seems to be right here:

Error downloading wrap:file:/home/ubuntu/semanticturkey-11.3/system/org/apache/servicemix/bundles/org.apache.servicemix.bundles.elasticsearch/6.5.4_1/org.apache.servicemix.bundles.elasticsearch-6.5.4_1.jar$overwrite=merge&Import-Package=!org.apache.logging.log4j.core.*,*;resolution:=optional

It look like the following was added after version 10.1.1:

$overwrite=merge&Import-Package=!org.apache.logging.log4j.core.*,*;resolution:=optional

This additional bit of code is found in the following files after version 10.1.1 -- all of which on deploy return the "Error downloading wrap..." error that I posted in my previous message:

semanticturkey-11.3/system/it/uniroma2/art/maple/maple-karaf-distribution/0.0.12/maple-karaf-distribution-0.0.12-features.xml:          <bundle dependency="true">wrap:mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch/6.5.4_1$overwrite=merge&amp;Import-Package=!org.apache.logging.log4j.core.*,*;resolution:=optional</bundle> <!-- 5.6.9 -->

semanticturkey-11.3/system/it/uniroma2/art/coda/coda-karaf/1.7.6/coda-karaf-1.7.6-features.xml:         <bundle dependency="true">wrap:mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch/6.5.4_1$overwrite=merge&amp;Import-Package=!org.apache.logging.log4j.core.*,*;resolution:=optional</bundle> <!-- 5.6.9 -->

VocBench version 10.1.1 has the following -- this is the only version I can successfully deploy -- notice that overwrite=merge&amp;Import-Package=!org.apache.logging.log4j.core.*,*;resolution:=optional: is not present here:

semanticturkey-10.1.1/system/it/uniroma2/art/coda/coda-karaf/1.7.3/coda-karaf-1.7.3-features.xml:               <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch/6.5.4_1</bundle> <!-- 5.6.9 -->

semanticturkey-10.1.1/system/it/uniroma2/art/maple/maple-karaf-distribution/0.0.9/maple-karaf-distribution-0.0.9-features.xml:          <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch/6.5.4_1</bundle> <!-- 5.6.9 -->

Does anyone know what specifically what this is doing during the deploy process: overwrite=merge&amp;Import-Package=!org.apache.logging.log4j.core.*,*;resolution:=optional 

Can it safely be removed?

Thank you,
Robert

Robert Chavez

unread,
Jan 4, 2023, 10:04:59 AM1/4/23
to vocbench-user
Some further digging in the karaf.log file indicates the following error:

______________________________________________________
Error resolving artifact org.apache.servicemix.bundles:org.apache.servicemix.bundles.elasticsearch:jar:6.5.4_1\:

[Could not find artifact org.apache.servicemix.bundles:org.apache.servicemix.bundles.elasticsearch:jar:6.5.4_1\ in central (https://repo1.maven.org/maven2/)]

java.io.IOException: Error resolving artifact org.apache.servicemix.bundles:org.apache.servicemix.bundles.elasticsearch:jar:6.5.4_1\:

[Could not find artifact org.apache.servicemix.bundles:org.apache.servicemix.bundles.elasticsearch:jar:6.5.4_1\ in central (https://repo1.maven.org/maven2/)]
        Suppressed: shaded.org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.apache.servicemix.bundles:org.apache.servicemix.bundles.elasticsearch:jar:6.5.4_1\ in central (https://repo1.maven.org/maven2/)

Caused by: shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Error resolving artifact org.apache.servicemix.bundles:org.apache.servicemix.bundles.elasticsearch:jar:6.5.4_1\
______________________________________________________

The artifact appears accessible at the following URL:


Still looking into this, but I am not yet sure what the exact issue is -- any guidance would be greatly appreciated.

Robert
Reply all
Reply to author
Forward
0 new messages