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

Exception: Cannot get DefaultSlingScript while dragging component in Editable Templates

Avatar

Avatar
Validate 10
Level 2
sunitac70336244
Level 2

Likes

7 likes

Total Posts

65 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
sunitac70336244
Level 2

Likes

7 likes

Total Posts

65 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
sunitac70336244
Level 2

30-10-2019

Dear All,

In my current project , we are converting static templates to editable templates in AEM 6.5 SP1 by using modernization_tools

Before converting we are creating editable templates. So I have created editable template and created the policy. Now I want to use the existing component Top Navigation.

While I am using the existing component in my editable template then I am getting below error.

1849009_pastedImage_2.png 

*ERROR* [0:0:0:0:0:0:0:1 [1572429882269] GET /conf/sunita/settings/wcm/templates/thank-you/structure/jcr:content/root/topnav1.html HTTP/1.1] com.day.cq.wcm.core.impl.WCMDebugFilter Exception: Cannot get DefaultSlingScript: Identifier com.sunita.global.core.models.SiteUrlsModel cannot be correctly instantiated by the Use API

org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: Identifier com.sunita.global.core.models.SiteUrlsModel cannot be correctly instantiated by the Use API

Can anybody please help me on this?

Thanks in advance

View Entire Topic

Avatar

Avatar
Validate 10
Level 2
sunitac70336244
Level 2

Likes

7 likes

Total Posts

65 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
sunitac70336244
Level 2

Likes

7 likes

Total Posts

65 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
sunitac70336244
Level 2

12-11-2019

Dear All,

The issue is fixed now. I was getting null pointer exception in my TopNav JAVA class. So changed like below and it is working fine.

if (currentPage != null) {

            Page homePage = currentPage.getAbsoluteParent(SiteConstants.HOMEPAGE_PARENT_DEPTH);           

            if (homePage != null)

            {

            locale = homePage.getLanguage(true);

            }

        }

    }