I tried to upgrade a few dependencies but eventually I am running into the
issue on Java 17 that the pax-exam is not able to find the Sling service (in
time).
Upgrading the pax-exam to 4.3.15 lead to an issue where it is not able to find
org.sl4j.LoggerFactory:
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at
org.ops4j.pax.exam.forked.ForkedTestContainer.start(ForkedTestContainer.java:168)
…
Caused by: java.rmi.ServerError: Error occurred in server thread; nested
exception is:
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
…
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at
org.ops4j.pax.swissbox.tracker.ServiceLookup.<clinit>(ServiceLookup.java:41)
...
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
…
Any idea on how to fix that?
- Andy
> On Jul 18, 2023, at 10:46 AM, Andreas Schaefer <[email protected]>
> wrote:
>
> Hi Robert
>
> My problem is not there yet but I updated the wiki page with the issue and my
> discovery so far.
>
> When I upgrade to Mockito-Inline 5.2.0 the compilation issue goes away but
> the pax-exam IT tests are time out when looking up Sling services.
>
> In the past when I tried to upgrade Pax-Exam I ran into other issues so I
> don’t think upgrading would work but I don’t know.
>
> - Andy
>
>> On Jul 18, 2023, at 9:59 AM, Robert Munteanu <[email protected]> wrote:
>>
>> Hi Andy,
>>
>> On Tue, 2023-07-18 at 09:47 +0200, Andreas Schaefer wrote:
>>> Hi
>>>
>>> For my latest PR for Sling GraphQL Core I am running into CI build
>>> issues on Java 17:
>>>
>>> https://ci-builds.apache.org/blue/organizations/jenkins/Sling%2Fmodules%2Fsling-org-apache-sling-graphql-core/detail/PR-36/3/pipeline
>>>
>>> Any idea on how to resolve this?
>>
>> [1] gathers the problem patterns we saw when migrating builds to Java
>> 11/17, maybe your problem is already listed?
>>
>> Thanks,
>> Robert
>>
>> [1]:
>> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=255071690
>