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

How can resolved "org.apache.sling.scripting.sightly.render.ObjectModel Cannot access method configured on object com.adobe.cq.wcm.core.components.internal.models.v1.ExperienceFragmentImpl"

Avatar

Avatar
Boost 1
Level 1
Woobi
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Validate 1
Shape 1
View profile

Avatar
Boost 1
Level 1
Woobi
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Validate 1
Shape 1
View profile
Woobi
Level 1

17-03-2021

AEM:  as cloud Service

 

I'm getting below error in the error.log when using content fragment in my content pages. 

 

org.apache.sling.scripting.sightly.render.ObjectModel Cannot access method configured on object com.adobe.cq.wcm.core.components.internal.models.v1.ExperienceFragmentImpl@10ff42d2
java.lang.reflect.InvocationTargetException: null

...

 

Kindly please let me know what causing this error and how to resolve it. 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,346 likes

Total Posts

3,223 posts

Correct Reply

915 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,346 likes

Total Posts

3,223 posts

Correct Reply

915 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

18-03-2021

Try to refresh the bundle, it will resolve the issue.

Answers (2)

Answers (2)

Avatar

Avatar
Ignite 3
Level 5
davidjgonzalezzzz
Level 5

Likes

68 likes

Total Posts

77 posts

Correct Reply

31 solutions
Top badges earned
Ignite 3
Affirm 25
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Ignite 3
Level 5
davidjgonzalezzzz
Level 5

Likes

68 likes

Total Posts

77 posts

Correct Reply

31 solutions
Top badges earned
Ignite 3
Affirm 25
Ignite 1
Give Back 5
Give Back 3
View profile
davidjgonzalezzzz
Level 5

17-03-2021

UPDATE: i misread this error (thought you were referencing the impl class, but really it looks like the HTL cannot instantiate the Sling Model via the interface reference (which is bound to that Impl). See Arun's answer below.

 

You are trying to access an INTERNAL class as denoted by the "internal" package name: com.adobe.cq.wcm.core.components.internal.models.v1.ExperienceFragmentImpl

Classes under internal packages are considered internal implementation details of the project and cannot be used by Consumer code. 

 

In AEM development, typically you will have public interfaces you can code against, but the implementation (usually post-fixed with Impl) will not be exported by the bundle therefore not available for you to directly use.

 

Instead of using the Impl directly in Core Components, you should leverage the Sling Model Delegation pattern described on the Core Components Github project: https://github.com/adobe/aem-core-wcm-components/wiki/Delegation-Pattern-for-Sling-Models

Avatar

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

169 likes

Total Posts

180 posts

Correct Reply

54 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

169 likes

Total Posts

180 posts

Correct Reply

54 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile
KiranVedantam1992
Level 7

17-03-2021

Hi @Woobi,

 

As per the error, please check if the core project is installed and resolved in your instance. The issue is regarding the "com.adobe.cq.wcm.core.components.internal.models.v1.ExperienceFragmentImplmodel here.

 

Hope this helps.

 

Thanks,

Kiran Vedantam