apupier opened a new pull request, #19496:
URL: https://github.com/apache/camel/pull/19496

   the place the spring-boot-version is declared has been modified. 
https://github.com/apache/camel-spring-boot/commit/71d09c68912f21c301519bbf0cfb9a325163ec10
 This PR avoids the NPE when listing all versions (to get back to same level of 
functionality for previous versions) but is not retrieving the version for 
4.15, to be handled in another Pull Request
   
   # Description
   
   see 
https://ci-builds.apache.org/job/Camel/job/Camel%20Core%20(Build%20and%20test)/job/main/1326/testReport/org.apache.camel.dsl.jbang.core.commands.update/UpdateListTest/BuildAndTest___Matrix___JDK_NAME____jdk_17_latest___PLATFORM____ubuntu_avx____Test___listUpdateVersions/
   
   ```
   java.util.concurrent.ExecutionException: 
org.apache.camel.main.download.DownloadException: Cannot invoke 
"org.w3c.dom.Node.getTextContent()" because the return value of 
"org.w3c.dom.NodeList.item(int)" is null
        at 
java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
        at 
java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
        at 
org.apache.camel.dsl.jbang.core.commands.update.UpdateList.collectRecipesVersions(UpdateList.java:273)
        at 
org.apache.camel.dsl.jbang.core.commands.update.UpdateList.doCall(UpdateList.java:118)
        at 
org.apache.camel.dsl.jbang.core.commands.update.UpdateListTest.listUpdateVersions(UpdateListTest.java:33)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        at 
java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
        at 
java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
        at 
java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
        at 
java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
        at 
java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
   Caused by: org.apache.camel.main.download.DownloadException: Cannot invoke 
"org.w3c.dom.Node.getTextContent()" because the return value of 
"org.w3c.dom.NodeList.item(int)" is null
        at 
org.apache.camel.main.download.MavenDependencyDownloader.resolveAvailableVersions(MavenDependencyDownloader.java:399)
        at 
org.apache.camel.dsl.jbang.core.commands.update.UpdateList.lambda$collectRecipesVersions$13(UpdateList.java:228)
        at 
java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
        at 
java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
        ... 5 more
   Caused by: java.lang.NullPointerException: Cannot invoke 
"org.w3c.dom.Node.getTextContent()" because the return value of 
"org.w3c.dom.NodeList.item(int)" is null
        at 
org.apache.camel.main.download.MavenDependencyDownloader.resolveSpringBootVersionByCamelVersion(MavenDependencyDownloader.java:651)
        at 
org.apache.camel.main.download.MavenDependencyDownloader.resolveSpringBoot(MavenDependencyDownloader.java:419)
        at 
org.apache.camel.main.download.MavenDependencyDownloader.resolveAvailableVersions(MavenDependencyDownloader.java:391)
        ... 8 more
   ```
   
   # Target
   
   - [ ] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   - [ ] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   <!--
   # *Note*: trivial changes like, typos, minor documentation fixes and other 
small items do not require a JIRA issue. In this case your pull request should 
address just this issue, without pulling in other changes.
   -->
   
   # Apache Camel coding standards and style
   
   - [ ] I checked that each commit in the pull request has a meaningful 
subject line and body.
   
   <!--
   If you're unsure, you can format the pull request title like `[CAMEL-XXX] 
Fixes bug in camel-file component`, where you replace `CAMEL-XXX` with the 
appropriate JIRA issue.
   -->
   
   - [ ] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   <!--
   You can run the aforementioned command in your module so that the build 
auto-formats your code. This will also be verified as part of the checks and 
your PR may be rejected if if there are uncommited changes after running `mvn 
clean install -DskipTests`.
   
   You can learn more about the contribution guidelines at 
https://github.com/apache/camel/blob/main/CONTRIBUTING.md
   -->
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to