Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

aemey
Community profile aemey Level 2
Job title here
Location here
5 BADGES
Level 2

Level 2

Learn more
Joined the community 21-01-2021 6:55:07 PM
Online
Top badges earned by aemey
Customize the badges you want to showcase on your profile
Re: JUnit 5 throws java.lang.NullPointerException: Cannot invoke "org.apache.sling.api.resource.Resource.getPath()" because "parent" is null
Avatar
Boost 3
Level 2
aemey
Level 2

Likes

3 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back 3
Ignite 1
Boost 1
Give Back
View profile
aemey
- Adobe Experience Manager
Thanks for the response. I have extended my ExampleServlet to add backend call. This is hard to share here.But code is failed through Unit test here. I am sending folderPath, folderName from ExampleServletTest and folderProperties added through HashMap final Map folderProperties = new HashMap<>();folderProperties.put(JcrConstants.JCR_PRIMARYTYPE,JcrResourceConstants.NT_SLING_FOLDER);folderProperties.put(JcrConstants.JCR_TITLE, folderTitle); Resource resource = resolver.create(resolver.getResourc...

Views

11

Like

1

Replies

0
JUnit 5 throws java.lang.NullPointerException: Cannot invoke "org.apache.sling.api.resource.Resource.getPath()" because "parent" is null
Avatar
Boost 3
Level 2
aemey
Level 2

Likes

3 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back 3
Ignite 1
Boost 1
Give Back
View profile
aemey
- Adobe Experience Manager
Hi, I have a servlet uses SlingServletPaths and Get Method. Servlet receives more than one request parameter then perform operations.I have below ServletTest to test my ExampleServlet. Below Error is thrown when I ran mvn clean install commandjava.lang.NullPointerException: Cannot invoke "org.apache.sling.api.resource.Resource.getPath()" because "parent" is null @ExtendWith(AemContextExtension.class)public class ExampleServletTest { ExampleServlet example = new ExampleServlet(); @test void testD...

Views

25

Likes

0

Replies

2
Re: Applying styles at SPA template layout level
Avatar
Boost 3
Level 2
aemey
Level 2

Likes

3 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back 3
Ignite 1
Boost 1
Give Back
View profile
aemey
- Adobe Experience Manager
Hi, Thank you the response. Provided above examples are related to apply styles at page level policy. I am looking for layout level. Please check below screen shot. I don't see any issue for non-spa templates when I apply styles at layout level. Issue occurs only on SPA.Thanks

Views

29

Like

1

Replies

0
Applying styles at SPA template layout level
Avatar
Boost 3
Level 2
aemey
Level 2

Likes

3 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back 3
Ignite 1
Boost 1
Give Back
View profile
aemey
- Adobe Experience Manager
Hello, I have been playing around apply styles at SPA template layout level. I noticed applying styles to page level works fine. But template level doesn't show any applied styles. There is no error on console logs. Is there any documentation available to test? Thanks.

Views

37

Likes

0

Replies

2
Re: AEM Cloud Service - Extend React SPA Sling Model for Page Style System support | AEM Community Blog Seeding
Avatar
Boost 3
Level 2
aemey
Level 2

Likes

3 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back 3
Ignite 1
Boost 1
Give Back
View profile
aemey
- Adobe Experience Manager
Hi, Is it possible to apply styles at layout level in SPA. I tried your above example without writing any code and worked as expected in SPA page level. Is there any reference/documentation to point out layout level for SPA. Thanks.

Views

30

Like

1

Replies

0
Likes from