Re: CI Build issue for GraphQL Core

2023-07-19 Thread Andreas Schaefer
Hi Robert

Yeah, looks like it but the fix mentioned there is not working with GraphQL. I 
am running into the same problem with the Pax Exam tests but I also running 
into OSGi based unit test failures.

GraphQL Core is not using sling-mock-oak but rather the OAK version that comes 
with sling-mock.junit4. That said I did upgrade the used Oak version in that 
module to 1.52.0 and it still did not work.

- Andy

> On Jul 19, 2023, at 10:44 AM, Robert Munteanu  wrote:
> 
> On Wed, 2023-07-19 at 10:40 +0200, Andreas Schaefer wrote:
>> After some back and forth I saw that the Pax Exam container fails due
>> to issues with java.security.acl.Group class not found issue:
>> 
>>  org.apache.sling.jcr.base[org.apache.sling.jcr.oak.server.internal.O
>> akSlingRepositoryManager] : Exception in a
>> SlingRepositoryInitializer, SlingRepository service registration
>> aborted
>> java.lang.NoClassDefFoundError: java/security/acl/Group
>> at java.base/java.lang.ClassLoader.defineClass1(Native
>> Method)
>> at
>> java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
> 
> This seems to be
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=255071690#CommonIssueswhenbuildingwithnewerJDKs(11or17)-OldversionofOak(%3C1.26)pulledinviaSling-Mock-Oak
> 
> Robert



Re: CI Build issue for GraphQL Core

2023-07-19 Thread Robert Munteanu
On Wed, 2023-07-19 at 10:40 +0200, Andreas Schaefer wrote:
> After some back and forth I saw that the Pax Exam container fails due
> to issues with java.security.acl.Group class not found issue:
> 
>  org.apache.sling.jcr.base[org.apache.sling.jcr.oak.server.internal.O
> akSlingRepositoryManager] : Exception in a
> SlingRepositoryInitializer, SlingRepository service registration
> aborted
> java.lang.NoClassDefFoundError: java/security/acl/Group
> at java.base/java.lang.ClassLoader.defineClass1(Native
> Method)
> at
> java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)

This seems to be
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=255071690#CommonIssueswhenbuildingwithnewerJDKs(11or17)-OldversionofOak(%3C1.26)pulledinviaSling-Mock-Oak

Robert


Re: CI Build issue for GraphQL Core

2023-07-19 Thread Andreas Schaefer
After some back and forth I saw that the Pax Exam container fails due to issues 
with java.security.acl.Group class not found issue:

 
org.apache.sling.jcr.base[org.apache.sling.jcr.oak.server.internal.OakSlingRepositoryManager]
 : Exception in a SlingRepositoryInitializer, SlingRepository service 
registration aborted
java.lang.NoClassDefFoundError: java/security/acl/Group
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)

There are other issues but I think that is the main one.

GraphQL Core is using org.apache.sling.testing.sling-mock.junit4 and so I tried 
to use a newer version of oak-jcr (1.52.0) but that did not solve the issue.

Any idea on how to fix this?

- Andy

> On Jul 18, 2023, at 4:00 PM, Andreas Schaefer  
> wrote:
> 
> 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.(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  
>> 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  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
>> 
> 



Re: CI Build issue for GraphQL Core

2023-07-18 Thread Andreas Schaefer
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.(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  
> 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  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
> 



Re: CI Build issue for GraphQL Core

2023-07-18 Thread Andreas Schaefer
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  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



Re: CI Build issue for GraphQL Core

2023-07-18 Thread Robert Munteanu
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