[ 
https://issues.apache.org/jira/browse/SLING-13376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18125699#comment-18125699
 ] 

Bhavik Kothari edited comment on SLING-13376 at 10/9/26 11:57 PM:
------------------------------------------------------------------

Opened this pull request 
[https://github.com/apache/sling-org-apache-sling-feature/pull/38] to handle 
diagnostics at the {{ArtifactProvider}} SPI and {{ArtifactManager}} layer
 * Added {{getArtifactFile(...) throws IOException}} default method to 
{{ArtifactProvider}} SPI (bumped package to {{{}1.1.0{}}})
 * Preserved existing getArtifact(...) method for 100% backward compatibility
 * Enhanced {{DefaultArtifactHandler}} and {{ArtifactManager}} to collect and 
report per-repository HTTP status codes (e.g. 404, 401) and connection errors 
with suppressed exceptions
 * Verified locally via unit tests and with {{feature-launcher}}


was (Author: JIRAUSER312021):
Opened this pull request 
[https://github.com/apache/sling-org-apache-sling-feature/pull/38] to handle 
diagnostics at the {{ArtifactProvider}} SPI and {{ArtifactManager}} layer
 * Added {{getArtifactFile(...) throws IOException}} default method to 
{{ArtifactProvider}} SPI (bumped package to {{{}1.1.0{}}})
 * Enhanced {{DefaultArtifactHandler}} and {{ArtifactManager}} to collect and 
report per-repository HTTP status codes (e.g. 404, 401) and connection errors 
with suppressed exceptions
 * Verified locally via unit tests and with {{feature-launcher}}

> Add diagnostics for non-found artifacts in Feature Model Launcher
> -----------------------------------------------------------------
>
>                 Key: SLING-13376
>                 URL: https://issues.apache.org/jira/browse/SLING-13376
>             Project: Sling
>          Issue Type: Task
>          Components: Feature Model
>    Affects Versions: Feature Model 2.0.6
>            Reporter: Joerg Hoh
>            Assignee: Bhavik Kothari
>            Priority: Major
>
> I have this exception:
> {noformat}
> [INFO] Apache Sling Application Launcher
> [INFO] ---------------------------------
> [INFO] Initializing...
> [INFO] Artifact Repositories: [file:///opt/aem/launcher/cache]
> [INFO] Assembling final feature model...
> [INFO]
> [INFO] Assembling launcher...
> [ERROR] Error during bootstrap
> java.lang.IllegalStateException: Error while assembling launcher: 
> java.io.IOException: Artifact 
> :org/apache/commons/commons-lang3/3.18.0/commons-lang3-3.18.0.jar not found 
> in any repository.
>       at 
> org.apache.sling.feature.launcher.impl.Bootstrap.runWithException(Bootstrap.java:195)
>       at 
> org.apache.sling.feature.launcher.impl.Bootstrap.run(Bootstrap.java:120)
>       at org.apache.sling.feature.launcher.impl.Main.main(Main.java:425)
> Caused by: java.io.UncheckedIOException: java.io.IOException: Artifact 
> :org/apache/commons/commons-lang3/3.18.0/commons-lang3-3.18.0.jar not found 
> in any repository.
>       at 
> org.apache.sling.feature.extension.apiregions.launcher.RegionLauncher.lambda$prepare$0(RegionLauncher.java:48)
>       at 
> org.apache.sling.feature.extension.apiregions.launcher.LauncherProperties.getBundleIDtoBSNandVersionMap(LauncherProperties.java:59)
>       at 
> org.apache.sling.feature.extension.apiregions.launcher.RegionLauncher.prepare(RegionLauncher.java:59)
>       at 
> com.adobe.granite.feature.launcher.FeatureLauncher.prepare(FeatureLauncher.java:36)
>       at 
> org.apache.sling.feature.launcher.impl.Bootstrap.runWithException(Bootstrap.java:174)
>       ... 2 more
> Caused by: java.io.IOException: Artifact 
> :org/apache/commons/commons-lang3/3.18.0/commons-lang3-3.18.0.jar not found 
> in any repository.
>       at 
> org.apache.sling.feature.io.artifacts.ArtifactManager.getArtifactHandler(ArtifactManager.java:297)
>       at 
> org.apache.sling.feature.launcher.impl.Bootstrap$1.getArtifactFile(Bootstrap.java:164)
>       at 
> org.apache.sling.feature.extension.apiregions.launcher.RegionLauncher.lambda$prepare$0(RegionLauncher.java:44)
>       ... 6 more
> {noformat}
> and it caused the Feature Launcher to fail consistently. Some more 
> diagnostics would be helpful (if it's a true 404 or a network issue, which 
> repositories were consulted etc)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to