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

Vijayalakshmi_S
Community profile Vijayalakshmi_S Community Advisor
Job title here
Location here
36 BADGES
Community Advisor

Community Advisor

Learn more
Joined the community 02-10-2017 9:09:08 PM
Online
Top badges earned by Vijayalakshmi_S
Customize the badges you want to showcase on your profile
Re: Externalizer Service Unbinding Configurations
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Thanks for the inputs @jarvislukow Could you please check this events console of your publish instance - http://localhost:4502/system/console/eventsand checkhow often the externalizer unregistering event is getting triggeredtimeframe at which this is happening (you can cross check if any other activity is happening in the instance at the same time)Does it happen in all the environment's publish instance or any specific environment (Dev/QA/Stage/Prod)

Views

1

Likes

0

Replies

0
Re: Externalizer Service Unbinding Configurations
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @jarvislukow Could you please share the below details Is it happening only on Publish instance. How is the externalizer config included. Is it part of code base or directly in Felix console.

Views

9

Like

1

Replies

2
Re: JUnit 5 throws java.lang.NullPointerException: Cannot invoke "org.apache.sling.api.resource.Resource.getPath()" because "parent" is null
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
@aemey, "parent is null" in NPE refers to the first argument on the create method which is nothing but the parent resource under which we are trying to create a resource. Resource resource = resolver.create(resolver.getResource(folderPath), folderName,folderProperties);Cross check that the AemContext object in Test class is aware/set to the parent resource.

Views

7

Like

1

Replies

0
Re: NoClassDefFoundError for Azure Identity Client in AEM as Cloud Service
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @mayank0928,You can make use of maven-bundle-plugin to create/build OSGi bundle out of desired dependency (Azure Identity client in this case)Ways of including it as part of project code base is available here - https://myaemlearnings.blogspot.com/2021/08/embedding-third-party-dependencyosgi.html

Views

19

Likes

2

Replies

1
Re: Hide Particular field in page properties Dialog.
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
@TushaarSrivastava,In OOTB advanced node of cq:dialog - /libs/wcm/foundation/components/basicpage/v1/basicpage/cq:dialog/content/items/tabs/items/advanced, is included using "include resource" with path being mount overlay path - /mnt/overlay/wcm/foundation/components/basicpage/v1/basicpage/tabs/advancedMount overlay path works by merging resources using search paths - That is per this path, it will first look in /apps/wcm/foundation/components/basicpage/v1/basicpage/tabs/advanced. If there is n...

Views

14

Like

1

Replies

0
Re: JUnit 5 throws java.lang.NullPointerException: Cannot invoke "org.apache.sling.api.resource.Resource.getPath()" because "parent" is null
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @aemey Is it possible for you to share your actual Servlet class. In this case ExampleServlet

Views

22

Like

1

Replies

2
Re: How to allow use of template type from a different project
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
@saukaush If you have template-type defined in /conf/demo and expect that to be available when you create template under /conf/wknd-events, it won't happen straight forward with a property. Per the resolution hierarchy, if you choose a common place like /conf/global and have all template-types that you like to re-use in there, then this would work. That's the reason why I mentioned if it is within resolution hierarchy, we can re-use. With this feasibility + based on your project structure + reus...

Views

12

Like

1

Replies

0
Re: How to allow use of template type from a different project
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @saukaush,If your Base project is within the configuration (/conf) resolving look up hierarchy, then we can make use of property named mergeList or sling:configCollectionInherit (type Boolean set to true)Example : Per the configuration resolving order mentioned here in official doc, If you can choose to hold all your Base project template-types in say, /conf/global -> then individual project folder like /conf/wknd-events/settings/wcm/template-types/jcr:content can have the property named merg...

Views

27

Like

1

Replies

2
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
getExportedItems method of Core Page (PageImpl.java), just returns the Map of child nodes with its respective model class. In the screenshot above, root is the child node name with resourceType set as wcm/foundation/components/responsivegrid (:type). So in the screenshot you have shared is the getters(columnCount till :type) exposed by ResponsiveGrid Model (com.day.cq.wcm.foundation.model.responsivegrid.ResponsiveGrid) Given this, the requirement you stated now is like altering the OOTB Responsi...

Views

42

Like

1

Replies

0
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Please share your model class - PageExporterImpl (that introduced this exception)

Views

54

Like

1

Replies

3
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
We need to provide implementation for all methods and delegate. We can make use of lombok @Delegate annotation for this - https://www.initialyze.com/blog/2020/11/simplify-extending-sling-models-with-lombok/ Also, note that your custom interface(PageExporter) has methods in the same name as OOTB core Page interface. Cross check the same and rename/remove based on your need. You can use the below and see if it works. package com.aem.demoproject.core.models; import com.adobe.cq.export.json.Componen...

Views

95

Like

1

Replies

5
Re: Need help on using multifield values
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @samsundar23 You can use the below snippet for first and second item.If you are using index, it starts from 0 and for count, it starts from 1. Full list of supported variables as part of list is available here - https://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/block-statements.html#list ${multiItems.label} ${multiItems.label} where outerMulti is the multifield resource (@ChildResource annotation and exposed as List)Before doing so, please consider scenario like what if...

Views

37

Like

1

Replies

0
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Thanks for sharing @vikrams57194913 .Have a backup of your model class separately and use the below (have used the PageExporter interface similar to yours), see if it works. getMessage is just added for testing if it is from this impl (Its not part of the interface) package com.aem.demoproject.core.models; import com.adobe.cq.export.json.ComponentExporter; import com.adobe.cq.export.json.ExporterConstants; import com.day.cq.wcm.api.Page; import org.apache.sling.api.SlingHttpServletRequest; impor...

Views

105

Like

1

Replies

7
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Thanks for the inputs @vikrams57194913 Can you share the complete Java package name of PageExporter that you are implementing from.

Views

115

Like

1

Replies

9
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
@vikrams57194913 Is it possible for you to share the details about your POC. (Use case that you are trying to achieve)And about this resource - contentservices/components/structure/page. Is this in turn inheriting from any other Page resource. If yes, share the complete resource hierarchy

Views

123

Like

1

Replies

11
Re: Sling Model with custom selector not working in AEM 6.5
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @vikrams57194913,Per the snippet you have shared, below highlighted in bold is the issue. This is OOTB Core Page Implementation which is internal and not allowed to use as is directly. (Bundle should have been in installed state)If you are to use its method implementation or override, use Sling model delegation pattern. public class PageExporterImpl extends com.adobe.cq.wcm.core.components.internal.models.v1.PageImpl implements PageExporter{

Views

141

Like

1

Replies

13
Re: I want to create a dynamic dropdown
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @Ronnie09,Please find below dialog content xml for your use case. Note :We need to use either Coral UI 2 or Coral UI 3 resource, do not mix both. If you are looking to create layouts like tabs or fixed columns, we have an equivalent resource in Coral UI 3. You can use the same if desired. Full list of available UI2 and UI 3 components is available here - https://www.adobe.io/experience-manager/reference-materials/6-5/granite-ui/api/jcr_root/libs/granite/ui/components/legacy/coral2/migration.h...

Views

38

Likes

2

Replies

0
Re: How to Unit testing for doPost Servlet which contains HTTP Request
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
@siva_k222,OSGi config values created as Map object is the way we mock OSGi config in the Test class. The same is then used while registering the service (with its config) to the AemContext. - https://wcm.io/testing/aem-mock/junit5/apidocs/org/apache/sling/testing/mock/osgi/context/OsgiContextImpl.html#registerInjectActivateService-T-java.lang.Object...- Outside this, if you would like to test HttpClient, you can refer - https://blogs.perficient.com/2019/01/23/how-to-test-apache-httpclient-in-th...

Views

66

Likes

2

Replies

1
Re: How to allow a robots.txt file to be visible on browser when accessed by url
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @Ralph8,By default, all the resources which has jcr:data property or jcr:content/jcr:data (which your robots.txt file will have in this case) will have an header with value as "attachment".We need to make an entry (Exclude entry to not have the Content-disposition as attachment) in Apache Sling Content Disposition filter (in your publish instance) -> Clear cache, if desired and then try accessing the file.

Views

48

Likes

4

Replies

0
Re: AEM Getty Images Integration.
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @chetan001,You can make use of maven-bundle-plugin to create an OSGi bundle of third party dependency (with all of its transitive dependencies)Steps of doing the same is available here - https://myaemlearnings.blogspot.com/2021/02/createbuild-and-install-osgi-bundle-of.htmlIf you would like to include it as part of your existing code base, you can refer - https://myaemlearnings.blogspot.com/2021/08/embedding-third-party-dependencyosgi.html

Views

37

Likes

4

Replies

0
Re: Show hide dropdown under multifield and Dialog field Ajacent to each other in Configuration dialog
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
@tushaar_srivastava,Could you please provide some background on where exactly the dialog as part of context aware configuration comes into picture / which content path this config is being referenced / overall use case in brief if possible. On analyzing the dialog shared, could see the Core page v2 component related clientlibs + custom one - project.configurations.configconsole are added as extraClientlibs and few class and properties related to page component.

Views

44

Likes

2

Replies

0
Re: how to use date time picker to select particular time and display the time selected in the front end in HH:MM:SS format
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @kattakiran1990,You can use the type as datetime or time and control the formatting in HTL (as you might have issues in persistence when using valueFormat as HH:mm:ss)In HTL : ${'HH:mm:ss' @ format = properties.date}

Views

38

Like

1

Replies

0
Re: How to add formatting functionality to text field in our component in aem
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
@Babita11 Check if you are looking for something like the belowHave a select field to capture the description position from content author (Left, right, center as options of select field)In HTL, align the description based on the value of above select field via CSS (either class attribute or inline styling)Sample screenshots :In HTL, ${properties.description ? properties.description : 'Default Description'}If it is deviating from your requirement, please elaborate with screenshots if possible.

Views

32

Like

1

Replies

0
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Thanks @Jörg_Hoh, I will correct that. 

Views

25

Like

1

Replies

0
Re: AEM 6.5 - References in service class are null when extended
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @Raghul87,Cross check if HelperServiceImpl is an OSGI service, annotated with @Service. (Per the naming convention, am assuming it to be just a component and not declared as Service)If it is a service and yet the reference is null, share HelperServiceImpl class if possible to debug further.

Views

64

Like

1

Replies

0
Re: How to add additional information to the data layer for analytics?
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @Art_Broussard,Yes, we need to have our version of getData() and have that set in the data attribute(data-cmp-data-layer). Sample implementation with WKND Byline component is available here in official docs - https://experienceleague.adobe.com/docs/experience-manager-learn/sites/integrations/adobe-client-data-layer/data-layer-customize.html

Views

39

Like

1

Replies

0
Re: Request object - Sightly
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @Kiran_Vedantam,We can achieve this in JS. Please find below for the sample snippet. Based on the pattern you get your queryParameters and form field name attribute, we can amend the logic accordingly. (() => { $(document).ready(() => { var urlParams = new URLSearchParams(window.location.search); if(urlParams.has("firstName")){ console.log("Has firstName as Query Param"); $("input[name='firstName']").val(urlParams.get("firstName")); } if(urlParams.has("country")){ // for select, value set sho...

Views

40

Likes

0

Replies

0
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @RobertHarper,For the snippet that you have shared now, here is the Test class, you can use this as is and check if it works now. Changes done (on top of what you shared)Mocked ResourceResolverFactory (via @Mock)@Mockprivate ResourceResolverFactory rescResolverFactory;Added MockitoExtension.class to @ExtendWith (for using @Mock)@ExtendWith({AemContextExtension.class, MockitoExtension.class})Removed the AemContext from doGet argument and instantiated explicitly with ResourceResolverType as RES...

Views

89

Likes

2

Replies

3
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Those are OSGI R6 annotations, it comes OOTB (respective maven dependency entry) with archetype projects.Also, I use lombok as well in my project code base.Is it possible for you to share the build error. Outside this, @InjectMocks on Servlet instantiation suggested by @MohitKumarK will work as well. If you still face issues, share the servlet and test snippet if possible.

Views

115

Like

1

Replies

0
Re: junit5 and Mockito tests not injecting the ResourceResolverFactory
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

772 likes

Total Posts

860 posts

Correct reply

286 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
Hi @RobertHarper,If you are using org.osgi.service.component.annotations.Reference, you can annotate it to a method. Check this - http://docs.osgi.org/javadoc/r6/residential/org/osgi/service/component/annotations/Reference.html

Views

125

Like

1

Replies

3