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

Oliver Lietz reassigned SLING-11981:
------------------------------------

    Assignee: Oliver Lietz

> Java 11 causes ITs with Tinybundles 3.0.0 to fail
> -------------------------------------------------
>
>                 Key: SLING-11981
>                 URL: https://issues.apache.org/jira/browse/SLING-11981
>             Project: Sling
>          Issue Type: Bug
>            Reporter: Joerg Hoh
>            Assignee: Oliver Lietz
>            Priority: Major
>
> While updating to the latest parent, I found pax exam-based integration tests 
> to fail. 
> {noformat}
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.107 
> s <<< FAILURE! - in org.apache.sling.servlets.resolver.it.ServletResourceIT
> [ERROR] org.apache.sling.servlets.resolver.it.ServletResourceIT  Time 
> elapsed: 4.931 s  <<< ERROR!
> org.ops4j.pax.exam.TestContainerException: There are unresolved bundles. See 
> previous ERROR log messages for details.
> {noformat}
> {noformat:output of the IT}
> ERROR: Bundle BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85] 
> Error starting 
> file:/home/joerg/repos/sling-git/sling-org-apache-sling-servlets-resolver/target/paxexam/ServletResourceIT/a882a707-4dfe-48d2-ba47-2b4175d777c3/pax-exam-downloads/BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603_0.jar
>  (org.osgi.framework.BundleException: Unable to resolve 
> BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85](R 85.0): missing 
> requirement [BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85](R 
> 85.0)] osgi.ee; (osgi.ee=UNKNOWN) Unresolved requirements: 
> [[BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85](R 85.0)] 
> osgi.ee; (osgi.ee=UNKNOWN)])
> org.osgi.framework.BundleException: Unable to resolve 
> BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85](R 85.0): missing 
> requirement [BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85](R 
> 85.0)] osgi.ee; (osgi.ee=UNKNOWN) Unresolved requirements: 
> [[BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85](R 85.0)] 
> osgi.ee; (osgi.ee=UNKNOWN)]
>         at 
> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
>         at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
>         at 
> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1566)
>         at 
> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:297)
>         at java.base/java.lang.Thread.run(Thread.java:829)
> {noformat}
> {noformat:title=manifest of 
> BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603_0.jar}
> [...]
> Require-Capability: osgi.extender;filter:="(&(osgi.extender=osgi.compo
>  nent)(version>=1.3.0)(!(version>=2.0.0)))",osgi.ee;filter:="(osgi.ee=
>  UNKNOWN)"
> Service-Component: OSGI-INF/org.apache.sling.servlets.resolver.it.Test
>  ResourceProvider.xml,OSGI-INF/org.apache.sling.servlets.resolver.it.T
>  estServiceUserValidator.xml
> TinybundlesVersion: pax-tinybundles-3.0.0
> Tool: Bnd-3.5.0.201709291849
> {noformat}
> I narrowed this down to the upgrade from bundle parent 49 to 50, and it is 
> caused by the bump of the minimal java version to 11 (SLING-11979).
> Because if I don't run with my java 11 default, but with
> {noformat}
> JAVA_HOME=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre mvn clean install 
> -Dsling.java.version=8
> {noformat}
> the build runs fine (with parent 50).
>  



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

Reply via email to