karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (Jira) <j...@apache.org>
Subject [jira] [Assigned] (KARAF-6779) When deploying an additional version of an artifact to a Cave repository, warnings are logged in karaf.log related to the processing of .md5 and .sha1 files. The warning are related the XML parsing of those files.
Date Sat, 04 Jul 2020 05:10:00 GMT

     [ https://issues.apache.org/jira/browse/KARAF-6779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré reassigned KARAF-6779:
-------------------------------------------

    Assignee: Jean-Baptiste Onofré

> When deploying an additional version of an artifact to a Cave repository, warnings are
logged in karaf.log related to the processing of .md5 and .sha1 files.  The warning are related
the XML parsing of those files.
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-6779
>                 URL: https://issues.apache.org/jira/browse/KARAF-6779
>             Project: Karaf
>          Issue Type: Bug
>          Components: cave
>    Affects Versions: 4.2.1
>         Environment: Karaf 4.2.9
>            Reporter: Paul Spencer
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> When deploying an additional version of an artifact to a Cave repository, warnings are
logged in karaf.log related to the processing of .md5 and .sha1 files.  The warning are related
the XML parsing of those files.
> {{14:58:02.243 WARN [MavenDownloadProxyServlet #17] Could not find metadata : foo/bar/test/maven-metadata.xml.md5
due to Unable to resolve metadata java.io.IOException: Unable to resolve metadata}}
> Jean-Baptiste Onofre: ** This is a warning coming from Aether when checksum are not
there or invalid from Cave perspective. Actually, I should bypass those kind of files.
>  
> {code:java}
> ***
> * Command log
> ***
> sparrow:~ paul$ mvn deploy:deploy-file -Dfile=test-1.0.0.jar -Durl=http://raspberrypi4.local:8181/cave/repository/quality
 -Dpackaging=jar -DgroupId=foo.bar -DartifactId=test -Dversion=1.0.0
> [INFO] Scanning for projects...
> [INFO] 
> [INFO] ------------------< org.apache.maven:standalone-pom >-------------------
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO] --------------------------------[ pom ]---------------------------------
> [INFO] 
> [INFO] --- maven-deploy-plugin:2.7:deploy-file (default-cli) @ standalone-pom ---
> Uploading to remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/1.0.0/test-1.0.0.jar
> Uploaded to remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/1.0.0/test-1.0.0.jar
(6.8 kB at 9.2 kB/s)
> Uploading to remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/1.0.0/test-1.0.0.pom
> Uploaded to remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/1.0.0/test-1.0.0.pom
(385 B at 2.5 kB/s)
> Downloading from remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/maven-metadata.xml
> [WARNING] Could not validate integrity of download from http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/maven-metadata.xml:
Checksum validation failed, no checksums available
> [WARNING] Checksum validation failed, no checksums available from remote-repository for
http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/maven-metadata.xml
> Downloaded from remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/maven-metadata.xml
(307 B at 3.4 kB/s)
> Uploading to remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/maven-metadata.xml
> Uploaded to remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/maven-metadata.xml
(291 B at 4.1 kB/s)
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  1.620 s
> [INFO] Finished at: 2020-07-02T14:57:25-04:00
> [INFO] ------------------------------------------------------------------------
> sparrow:~ paul$ mvn deploy:deploy-file -Dfile=test-1.0.0.jar -Durl=http://raspberrypi4.local:8181/cave/repository/quality
 -Dpackaging=jar -DgroupId=foo.bar -DartifactId=test -Dversion=2.0.0
> [INFO] Scanning for projects...
> [INFO] 
> [INFO] ------------------< org.apache.maven:standalone-pom >-------------------
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO] --------------------------------[ pom ]---------------------------------
> [INFO] 
> [INFO] --- maven-deploy-plugin:2.7:deploy-file (default-cli) @ standalone-pom ---
> Uploading to remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/2.0.0/test-2.0.0.jar
> Uploaded to remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/2.0.0/test-2.0.0.jar
(6.8 kB at 7.5 kB/s)
> Uploading to remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/2.0.0/test-2.0.0.pom
> Uploaded to remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/2.0.0/test-2.0.0.pom
(385 B at 4.1 kB/s)
> Downloading from remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/maven-metadata.xml
> [WARNING] Could not validate integrity of download from http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/maven-metadata.xml:
Checksum validation failed, no checksums available
> [WARNING] Checksum validation failed, no checksums available from remote-repository for
http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/maven-metadata.xml
> Downloaded from remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/maven-metadata.xml
(338 B at 2.5 kB/s)
> Uploading to remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/maven-metadata.xml
> Uploaded to remote-repository: http://raspberrypi4.local:8181/cave/repository/quality/foo/bar/test/maven-metadata.xml
(322 B at 4.7 kB/s)
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  1.770 s
> [INFO] Finished at: 2020-07-02T14:58:02-04:00
> [INFO] ------------------------------------------------------------------------
> sparrow:~ paul$ 
> ***
> * From Karaf.log
> ***
> 14:57:25.128 INFO [qtp4854702-287] Received upload request for maven artifact : foo/bar/test/1.0.0/test-1.0.0.jar
> 14:57:25.142 INFO [qtp4854702-287] Artifact installed: foo.bar:test:jar:1.0.0
> 14:57:25.180 INFO [qtp4854702-292] Received upload request for maven artifact : foo/bar/test/1.0.0/test-1.0.0.jar.sha1
> 14:57:25.200 INFO [qtp4854702-292] Artifact installed: foo.bar:test:jar.sha1:1.0.0
> 14:57:25.223 INFO [qtp4854702-287] Received upload request for maven artifact : foo/bar/test/1.0.0/test-1.0.0.jar.md5
> 14:57:25.232 INFO [qtp4854702-287] Artifact installed: foo.bar:test:jar.md5:1.0.0
> 14:57:25.254 INFO [qtp4854702-292] Received upload request for maven artifact : foo/bar/test/1.0.0/test-1.0.0.pom
> 14:57:25.266 INFO [qtp4854702-292] Artifact installed: foo.bar:test:pom:1.0.0
> 14:57:25.316 INFO [qtp4854702-287] Received upload request for maven artifact : foo/bar/test/1.0.0/test-1.0.0.pom.sha1
> 14:57:25.327 INFO [qtp4854702-287] Artifact installed: foo.bar:test:pom.sha1:1.0.0
> 14:57:25.382 INFO [qtp4854702-292] Received upload request for maven artifact : foo/bar/test/1.0.0/test-1.0.0.pom.md5
> 14:57:25.390 INFO [qtp4854702-292] Artifact installed: foo.bar:test:pom.md5:1.0.0
> 14:57:25.456 INFO [MavenDownloadProxyServlet #17] Received request for maven metadata
: foo/bar/test/maven-metadata.xml
> 14:57:25.468 INFO [MavenDownloadProxyServlet #17] Writing response for file : foo/bar/test/maven-metadata.xml
> 14:57:25.490 INFO [MavenDownloadProxyServlet #17] Received request for maven metadata
: foo/bar/test/maven-metadata.xml.sha1
> 14:57:25.509 INFO [MavenDownloadProxyServlet #17] Received request for maven metadata
: foo/bar/test/maven-metadata.xml.md5
> 14:57:25.551 INFO [qtp4854702-295] Received upload request for maven metadata : foo/bar/test/maven-metadata.xml
> 14:57:25.557 INFO [qtp4854702-295] Maven metadata installed: foo:bar:maven-metadata.xml:test
> 14:57:25.576 INFO [qtp4854702-292] Received upload request for maven metadata : foo/bar/test/maven-metadata.xml.sha1
> 14:57:25.582 INFO [qtp4854702-292] Maven metadata installed: foo:bar:maven-metadata.xml.sha1:test
> 14:57:25.602 INFO [qtp4854702-295] Received upload request for maven metadata : foo/bar/test/maven-metadata.xml.md5
> 14:57:25.607 INFO [qtp4854702-295] Maven metadata installed: foo:bar:maven-metadata.xml.md5:test
> 14:58:01.835 INFO [qtp4854702-287] Received upload request for maven artifact : foo/bar/test/2.0.0/test-2.0.0.jar
> 14:58:01.851 INFO [qtp4854702-287] Artifact installed: foo.bar:test:jar:2.0.0
> 14:58:01.924 INFO [qtp4854702-295] Received upload request for maven artifact : foo/bar/test/2.0.0/test-2.0.0.jar.sha1
> 14:58:01.940 INFO [qtp4854702-295] Artifact installed: foo.bar:test:jar.sha1:2.0.0
> 14:58:01.966 INFO [qtp4854702-287] Received upload request for maven artifact : foo/bar/test/2.0.0/test-2.0.0.jar.md5
> 14:58:01.980 INFO [qtp4854702-287] Artifact installed: foo.bar:test:jar.md5:2.0.0
> 14:58:02.009 INFO [qtp4854702-295] Received upload request for maven artifact : foo/bar/test/2.0.0/test-2.0.0.pom
> 14:58:02.018 INFO [qtp4854702-295] Artifact installed: foo.bar:test:pom:2.0.0
> 14:58:02.044 INFO [qtp4854702-287] Received upload request for maven artifact : foo/bar/test/2.0.0/test-2.0.0.pom.sha1
> 14:58:02.057 INFO [qtp4854702-287] Artifact installed: foo.bar:test:pom.sha1:2.0.0
> 14:58:02.073 INFO [qtp4854702-295] Received upload request for maven artifact : foo/bar/test/2.0.0/test-2.0.0.pom.md5
> 14:58:02.080 INFO [qtp4854702-295] Artifact installed: foo.bar:test:pom.md5:2.0.0
> 14:58:02.148 INFO [MavenDownloadProxyServlet #17] Received request for maven metadata
: foo/bar/test/maven-metadata.xml
> 14:58:02.165 INFO [MavenDownloadProxyServlet #17] Writing response for file : foo/bar/test/maven-metadata.xml
> 14:58:02.188 INFO [MavenDownloadProxyServlet #17] Received request for maven metadata
: foo/bar/test/maven-metadata.xml.sha1
> 14:58:02.199 WARN [MavenDownloadProxyServlet #17] Could not find metadata : foo/bar/test/maven-metadata.xml.sha1
due to Unable to resolve metadata
> java.io.IOException: Unable to resolve metadata
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveMetadata(AetherBasedResolver.java:872)
~[?:?]
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveMetadata(AetherBasedResolver.java:814)
~[?:?]
> 	at org.apache.karaf.cave.repository.service.maven.MavenServlet.download(MavenServlet.java:388)
[!/:?]
> 	at org.apache.karaf.cave.repository.service.maven.MavenServlet$2.run(MavenServlet.java:296)
[!/:?]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_212]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_212]
> 	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
> Caused by: shaded.org.codehaus.plexus.util.xml.pull.XmlPullParserException: only whitespace
content allowed before start tag and not f (position: START_DOCUMENT seen f... @1:1) 
> 	at shaded.org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1557)
~[?:?]
> 	at shaded.org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1436) ~[?:?]
> 	at shaded.org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1131) ~[?:?]
> 	at shaded.org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:958)
~[?:?]
> 	at shaded.org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:557)
~[?:?]
> 	at shaded.org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:586)
~[?:?]
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveMetadata(AetherBasedResolver.java:845)
~[?:?]
> 	... 6 more
> 14:58:02.229 INFO [MavenDownloadProxyServlet #17] Received request for maven metadata
: foo/bar/test/maven-metadata.xml.md5
> 14:58:02.243 WARN [MavenDownloadProxyServlet #17] Could not find metadata : foo/bar/test/maven-metadata.xml.md5
due to Unable to resolve metadata
> java.io.IOException: Unable to resolve metadata
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveMetadata(AetherBasedResolver.java:872)
~[?:?]
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveMetadata(AetherBasedResolver.java:814)
~[?:?]
> 	at org.apache.karaf.cave.repository.service.maven.MavenServlet.download(MavenServlet.java:388)
[!/:?]
> 	at org.apache.karaf.cave.repository.service.maven.MavenServlet$2.run(MavenServlet.java:296)
[!/:?]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_212]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_212]
> 	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
> Caused by: shaded.org.codehaus.plexus.util.xml.pull.XmlPullParserException: only whitespace
content allowed before start tag and not f (position: START_DOCUMENT seen f... @1:1) 
> 	at shaded.org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1557)
~[?:?]
> 	at shaded.org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1436) ~[?:?]
> 	at shaded.org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1131) ~[?:?]
> 	at shaded.org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:958)
~[?:?]
> 	at shaded.org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:557)
~[?:?]
> 	at shaded.org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:586)
~[?:?]
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveMetadata(AetherBasedResolver.java:845)
~[?:?]
> 	... 6 more
> 14:58:02.293 INFO [qtp4854702-292] Received upload request for maven metadata : foo/bar/test/maven-metadata.xml
> 14:58:02.299 INFO [qtp4854702-292] Maven metadata installed: foo:bar:maven-metadata.xml:test
> 14:58:02.314 INFO [qtp4854702-295] Received upload request for maven metadata : foo/bar/test/maven-metadata.xml.sha1
> 14:58:02.322 INFO [qtp4854702-295] Maven metadata installed: foo:bar:maven-metadata.xml.sha1:test
> 14:58:02.336 INFO [qtp4854702-292] Received upload request for maven metadata : foo/bar/test/maven-metadata.xml.md5
> 14:58:02.343 INFO [qtp4854702-292] Maven metadata installed: foo:bar:maven-metadata.xml.md5:test
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message