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

Anatol Sialitski commented on UNOMI-667:
----------------------------------------

I tried bumping {{graphql-java-annotations}} to 21.5, but it does not work due 
to OSGi issues with resolving dependencies.


{code:java}
karaf@root()> feature:install cdp-graphql-feature
org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: 
missing requirement [root] osgi.identity; osgi.identity=cdp-graphql-feature; 
type=karaf.feature; version="[2.6.0.SNAPSHOT,2.6.0.SNAPSHOT]"; 
filter:="(&(osgi.identity=cdp-graphql-feature)(type=karaf.feature)(version>=2.6.0.SNAPSHOT)(version<=2.6.0.SNAPSHOT))"
 [caused by: Unable to resolve cdp-graphql-feature/2.6.0.SNAPSHOT: missing 
requirement [cdp-graphql-feature/2.6.0.SNAPSHOT] osgi.identity; 
osgi.identity=graphql-java-annotations; type=osgi.bundle; 
version="[21.5.0,21.5.0]"; resolution:=mandatory [caused by: Unable to resolve 
graphql-java-annotations/21.5.0: missing requirement 
[graphql-java-annotations/21.5.0] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=graphql)(version>=21.5.0)(!(version>=22.0.0)))" 
[caused by: Unable to resolve graphql-java/21.5.0: missing requirement 
[graphql-java/21.5.0] osgi.wiring.package; 
filter:="(osgi.wiring.package=java.io)"]]]
        at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
        at 
org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
        at 
org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
        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.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
cdp-graphql-feature/2.6.0.SNAPSHOT: missing requirement 
[cdp-graphql-feature/2.6.0.SNAPSHOT] osgi.identity; 
osgi.identity=graphql-java-annotations; type=osgi.bundle; 
version="[21.5.0,21.5.0]"; resolution:=mandatory [caused by: Unable to resolve 
graphql-java-annotations/21.5.0: missing requirement 
[graphql-java-annotations/21.5.0] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=graphql)(version>=21.5.0)(!(version>=22.0.0)))" 
[caused by: Unable to resolve graphql-java/21.5.0: missing requirement 
[graphql-java/21.5.0] osgi.wiring.package; 
filter:="(osgi.wiring.package=java.io)"]]
        at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
        ... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
graphql-java-annotations/21.5.0: missing requirement 
[graphql-java-annotations/21.5.0] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=graphql)(version>=21.5.0)(!(version>=22.0.0)))" 
[caused by: Unable to resolve graphql-java/21.5.0: missing requirement 
[graphql-java/21.5.0] osgi.wiring.package; 
filter:="(osgi.wiring.package=java.io)"]
        at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
        ... 13 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
graphql-java/21.5.0: missing requirement [graphql-java/21.5.0] 
osgi.wiring.package; filter:="(osgi.wiring.package=java.io)"
        at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
        ... 14 more
Error executing command: Unable to resolve root: missing requirement [root] 
osgi.identity; osgi.identity=cdp-graphql-feature; type=karaf.feature; 
version="[2.6.0.SNAPSHOT,2.6.0.SNAPSHOT]"; 
filter:="(&(osgi.identity=cdp-graphql-feature)(type=karaf.feature)(version>=2.6.0.SNAPSHOT)(version<=2.6.0.SNAPSHOT))"
 [caused by: Unable to resolve cdp-graphql-feature/2.6.0.SNAPSHOT: missing 
requirement [cdp-graphql-feature/2.6.0.SNAPSHOT] osgi.identity; 
osgi.identity=graphql-java-annotations; type=osgi.bundle; 
version="[21.5.0,21.5.0]"; resolution:=mandatory [caused by: Unable to resolve 
graphql-java-annotations/21.5.0: missing requirement 
[graphql-java-annotations/21.5.0] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=graphql)(version>=21.5.0)(!(version>=22.0.0)))" 
[caused by: Unable to resolve graphql-java/21.5.0: missing requirement 
[graphql-java/21.5.0] osgi.wiring.package; 
filter:="(osgi.wiring.package=java.io)"]]] {code}
 

Currently, it is not possible to use the latest version of 
{{{}graphql-java-annotations{}}}.

To resolve this issue, the following dependencies:
 * graphql-java
 * graphql-java-annotations
 * graphql-java-extended-scalars

must avoid including "java.*" in the {{Import-Package}} section of the MANIFEST 
file. After this, we can attempt another round of upgrades for these 
dependencies.

 

> Upgrade GraphQL-Java & other dependencies to the latest versions (dependabot 
> warnings)
> --------------------------------------------------------------------------------------
>
>                 Key: UNOMI-667
>                 URL: https://issues.apache.org/jira/browse/UNOMI-667
>             Project: Apache Unomi
>          Issue Type: Sub-task
>    Affects Versions: unomi-2.0.0
>            Reporter: Serge Huber
>            Assignee: Anatol Sialitski
>            Priority: Major
>             Fix For: unomi-2.6.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>




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

Reply via email to