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
BedrockMission!

Learn More

View all

Sign in to view all badges

Page Activation failing when ExperienceFragment is used on the page - 6.5

Avatar

Avatar
Validate 1
Level 2
nikunjj81682294
Level 2

Like

1 like

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
nikunjj81682294
Level 2

Like

1 like

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile
nikunjj81682294
Level 2

09-09-2019

Internal Server Error

Exception:

I am getting the above null pointer exception when I try to activate a page using experience fragments on it.

Any help is much appreciated.

Thanks,

Nikunj Jariwala

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

377 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

377 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

09-09-2019

Checking the AEM code at "com.adobe.cq.xf.impl.ExperienceFragmentsReferenceProvider"

Page parentXf = getVariationParent(path, resolver);

references.add(new Reference(TYPE_XF, parentXf.getTitle(), parentXf.adaptTo(Resource.class), parentXf.getLastModified().getTimeInMillis()));

It looks like the issue is with one of the properties(title,lastmodified) not set on the fragment/variation.

Answers (5)

Answers (5)

Avatar

Avatar
Validate 1
Level 2
nikunjj81682294
Level 2

Like

1 like

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
nikunjj81682294
Level 2

Like

1 like

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile
nikunjj81682294
Level 2

09-09-2019

Deleting the XF and readding it resolved the issue. It was the missing cq:lastModified date.

Avatar

Avatar
Validate 1
Level 2
nikunjj81682294
Level 2

Like

1 like

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
nikunjj81682294
Level 2

Like

1 like

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile
nikunjj81682294
Level 2

09-09-2019

JaideepBrar​,

I see both the properties cq:lastModified and jcr:title are present on both the master jcr:content and the parent of master jcr:content.

1830278_pastedImage_0.png

1830279_pastedImage_1.png

I am still getting the same issue.

Avatar

Avatar
Validate 1
Level 2
nikunjj81682294
Level 2

Like

1 like

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
nikunjj81682294
Level 2

Like

1 like

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile
nikunjj81682294
Level 2

09-09-2019

Yes. I m using the master variation. It's a new XF getting deployed from the git repo.

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

187 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

187 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

09-09-2019

Question: Are you using the master variation? Have you copied the variation from other XF?

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

187 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

187 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

09-09-2019

Hello,

Firstly, check the references of this page from the References tab in the left hand side. Check if everything looks okay there.

Secondly, enable a debug log on "com.adobe.cq.xf.impl.ExperienceFragmentsReferenceProvider" and replicate the page again. You should see messages like "Determining references to experience fragments for resource at", "Adding the parent experience fragments as references" etc.

Hopefully, these messages provide more info to understand the cause.

Regards,

Vishu