since ‎09-07-2020
‎12-10-2020
ChitraMadan
MVP
Re: java design patterns used in AEM ChitraMadan - Adobe Experience Manager
Hi @srikanthg212933 , Some of the OSGI Patterns are listed here with references and sample exampleshttp://computepatterns.com/osgi-design-patterns/
171
Views
2
Likes
0
Answers
Re: cannot render resource SyntheticResource, ChitraMadan - Adobe Experience Manager
Hi @sreedobe , I encountered the same logs and the reason found was there was a resource which was getting included from the templatepage and which did not exist.Something like below:templatepage/body.jspversion.jsp - Non existent resourceSo all the pages using this template was throwing this error - org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource SyntheticResourceI would suggest to find the references of problematic resource, it must b...
63
Views
2
Likes
0
Answers
Re: Query Build API - Results in random order ChitraMadan - Adobe Experience Manager
Hi @viki1101 , The Only property that you need to change in your query is the orderby as highlighted below: path=/content/xx/en/yy/test1_property=sling:resourceType1_property.value=yycomponents/page/abc1_property.operation=likeorderby=@cq:lastModifiedorderby.sort=descp.limit=50 The reason fo this is, the query will return the paths till jcr:content and then the query was checking cq:lastModified in jcr:content/jcr:content/cq:lastModified and hence it was not working.With above change, it should ...
80
Views
2
Likes
0
Answers
Re: Attaching a header to the Oauth Token endpoint responses ChitraMadan - Adobe Experience Manager
Hi @bandersen_hoodoo, I am not sure what is your end to end scenario, but I have used OAUTH in couple of integrations and we never had to modify the response of oauth/token endpoint for a successful communication. You can go through couple of blogs below, these might help!!https://labs.tadigital.com/index.php/2017/08/18/aem-as-oauth-server-part-1-setting-up-scopes/https://labs.tadigital.com/index.php/2017/09/06/aem-as-oauth-server-part-2-testing-oauth/ If this doesn't help. Can you please explai...
95
Views
3
Likes
1
Answers
Re: ProxyAsyncScriptableFactory uses the deprecated async... ChitraMadan - Adobe Experience Manager
Can you try using this sling:resourceSuperType /libs/wcm/foundation/components/basicpage/v1/basicpage
150
Views
0
Likes
0
Comments
Re: ProxyAsyncScriptableFactory uses the deprecated async... ChitraMadan - Adobe Experience Manager
Have you tried updating head.js?
151
Views
0
Likes
0
Comments
Re: ProxyAsyncScriptableFactory uses the deprecated async... ChitraMadan - Adobe Experience Manager
Hi @gayatrik8153299, Same issue was discussed here. Please check. https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/proxyasyncscriptablefactory-uses-the-deprecated-asynchronous-api/qaq-p/210996
157
Views
2
Likes
4
Answers
Re: Servlet JSON Response integration Tests ChitraMadan - Adobe Experience Manager
Hi @karthik4, If you want to validate the swagger contract, you can try to validate the Yaml file generated by Swagger. Please see below code for the same import io.github.robwin.swagger.test.SwaggerAssertions;import io.swagger.models.Swagger;import io.swagger.models.auth.AuthorizationValue;import io.swagger.parser.SwaggerParser;private SwaggerParser swaggerParser = new SwaggerParser();@Testpublic void validateImplementationMatchesDocumentation() { AuthorizationValue authorizationValue = new Aut...
64
Views
4
Likes
0
Answers
Re: Groovy Console on Production ChitraMadan - Adobe Experience Manager
Hi @karthik4, The answer to your question is yes, you can run groovy script directly on production author and then replicate the content from there.Technically, there is no problem in that but just because this is the production environment, it would be best to take the backup of the author instance, just in case if something goes wrong, you can go back to the previous state. Another option is to copy the content of the production to a lower environment, run the script there and package the cont...
88
Views
2
Likes
0
Answers
Re: AEM - junit test case for Jcr Event Listener ChitraMadan - Adobe Experience Manager
Hi @sundarig3746447 ,Although the link that you have provided doesn't show source code but check this blog for a few exampleshttp://useof.org/java-open-source/javax.jcr.observation.EventIterator Find another example below:@RunWith(PowerMockRunner.class)@PrepareForTest({ReplicationAction.class})public class SampleListenerTest {private static final Logger LOGGER = LoggerFactory.getLogger(SampleListenerTest.class);private SampleListener sampleListener = new SampleListener();private Map propertyMap;...
103
Views
2
Likes
0
Answers
Re: Accessing /services giving 404 ChitraMadan - Adobe Experience Manager
Hi @trc41594544 , Can you please check if your servlet is active herehttp://localhost:4502/system/console/components
167
Views
2
Likes
1
Replies
Re: SlingModel @ChildResource is not working ChitraMadan - Adobe Experience Manager
Hi @vijays80591732 , If this is not a component and you want to access it in Sling Model, then you can make use of a java class to read its child values and return in Sling Model in this way: @Getter@Setter@Model(adaptables = Resource.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)public class HistoryModel {@Injectprivate List workflowItems;@Selfprivate transient Resource resource;@PostConstructprivate void init() {workflowItems = SomeUtilClass.getWorkflowItems(resource, "pa...
97
Views
2
Likes
0
Answers
Re: Why @ServiceRanking(60000) is required to handle the... ChitraMadan - Adobe Experience Manager
Hi @surenk , When looking for an AuthenticationHandler the authentication handler is selected whose path is the longest match on the request URL. If the service is registered with Scheme and Host/Port, these must exactly match for the service to be eligible. If multiple AuthenticationHandler services are registered with the same length matching path, the handler with the higher service ranking is selected[^ranking].[^ranking]: Service ranking is defined by the OSGi Core Specification as follows:...
93
Views
3
Likes
0
Answers
Re: How to create custom renditions for video mp4 asset i... ChitraMadan - Adobe Experience Manager
Hi @shams8090 , May be you can explore this optionhttps://docs.adobe.com/content/help/en/experience-manager-65/assets/extending/best-practices-for-imagemagick.html
82
Views
2
Likes
0
Answers
Re: Use OOB Image core component in multifield. ChitraMadan - Adobe Experience Manager
Hi @TUmesh , Please check these 2 posts, if they helphttps://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/image-drag-and-drop-in-aem-6-4-multifield-component/qaq-p/298422 http://experience-aem.blogspot.com/2019/04/aem-6440-touch-ui-composite-image-multifield.html
70
Views
2
Likes
0
Answers
Re: AEM Dispatcher Invalidation CQ-Action Query ChitraMadan - Adobe Experience Manager
Hi @Rampai94 , Please refer to this article https://www.netcentric.biz/insights/2017/01/aem-dispatcher-cache-invalidation-for-multiple-cache-farms.html
130
Views
0
Likes
0
Comments
Re: How the building block is available to edit in page w... ChitraMadan - Adobe Experience Manager
Hi @sandhyar7811290 , Are you getting any error on the page?Also, Can you please also check permissions for that path.
158
Views
1
Like
1
Replies
Re: Alternative for deprecated JsonItemWriter ChitraMadan - Adobe Experience Manager
Hi @sareshpp9060331 , We have been extensively using this class import com.google.gson.annotationsfor json Serialization and Deserialization. This makes the code really short and clean and easy to understand.You can refer to some examples here http://websystique.com/java/json/gson-json-annotations-example/You also have the option to exclude any property from json by marking it as transient like this:public class Flags { private String flagText; private String flagColor; private transient String ...
109
Views
1
Like
0
Answers
Re: Share Asset metadata from aem to external system via api ChitraMadan - Adobe Experience Manager
Hi @manisha594391 , You can find some nice examples of the asset api in this blog!!https://www.javatips.net/api/com.day.cq.dam.api.asset Hope this helps!!Thanks
62
Views
0
Likes
1
Answers
Re: How embed happening in Html library Manger? ChitraMadan - Adobe Experience Manager
Hi @vasgurug , Is there any particular reason why you don't want to used embed property which is the recommended and OOTB way of merging clientlibs and results in a single call. I don't think HTML Library Manager is doing the merging, it is used for minification and compression. Another way could be outside AEM, to create gulp task to combine all the css and js files and write them in 1 category.
120
Views
0
Likes
0
Comments
Re: How embed happening in Html library Manger? ChitraMadan - Adobe Experience Manager
Hi @vasgurug ,What is your end goal that you want to achieve.Are you trying to concatenate a.css and b.css?Why are you trying to find the implementation for HTMLLibraryManager?
138
Views
0
Likes
0
Comments
Re: How embed happening in Html library Manger? ChitraMadan - Adobe Experience Manager
Hi @vasgurug ,What I have understood from your question is that your are trying to use HTML Library Manager to combine different clientlibs. However, may be you can try to embed different clientlib categories to combine them into 1 and then can use HTML Library Manager for minification and compression.This blog explains very well how you can embed different categories and then enable minification.https://blogs.adobe.com/experiencedelivers/experience-management/clientlibs-explained-example/Note: ...
163
Views
3
Likes
4
Answers
Re: items and sub nodes are getting reset in Multifield c... ChitraMadan - Adobe Experience Manager
Hi @sreenathg397727 , Please go through below example. It works perfectly with item nodes created in the new structure. _________Dialog______________ ________Sling Model_______@Getter@Model(adaptables = Resource.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)public class InfoItems {@Injectprivate Resource infoItems;}________HTL_________Icon: ${infoItem.iconUrl} Text: ${infoItem.infoText}
117
Views
2
Likes
0
Answers
Re: clientlibrarymanager.js accessible on Author Server b... ChitraMadan - Adobe Experience Manager
Hi @James-Collett , It will be worth to check the permissions for anonymous users on publishers.Most of the time 404 issues on publishers are related to permissions for anonymous users. Try giving read access on /etc, if it is already not there.
92
Views
2
Likes
0
Answers
Re: Find authoring modes Using Java Script in AEM ChitraMadan - Adobe Experience Manager
Hi @Chandanhindustani , Another option, if you don't want to check cookie is to may be use data-attribute ..... $(document.body).attr('data-wcm-mode') === "DISABLED"){ //do something }
131
Views
2
Likes
1
Answers
Re: AEM Dispatcher Invalidation CQ-Action Query ChitraMadan - Adobe Experience Manager
Hi @Rampai94 , This documentation has really good explanation:https://helpx.adobe.com/uk/experience-manager/kb/ams-dispatcher-manual/disp-flushing.html If this doesn't help, Can you please explain your scenario in a bit more detail please.
192
Views
3
Likes
2
Answers
Re: Granite Render condition on the basis of path ChitraMadan - Adobe Experience Manager
Hi @AdobeID24 , This post might helphttps://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/render-aem-site-actions-dynamically-using-render-conditions/qaq-p/355352
170
Views
2
Likes
2
Replies
Re: AEM 6.5 : how to make core service custom package ava... ChitraMadan - Adobe Experience Manager
Hi @amitcsknit, You need to embedd your core package in your main application package, which will include your services package too.And define core package as dependency. org.apache.jackrabbit filevault-package-maven-plugin true sampleapp.ui.apps src/main/content/META-INF/vault/definition/thumbnail.png co.sample.app co.sampleapp.core /apps/sampleapp/install co.sampleapp co.sampleapp.core 1.0.0-SNAPSHOT And then in your core package pom, make sure you have this configuration true javax....
96
Views
2
Likes
0
Answers
Re: where I can download fmdita package ChitraMadan - Adobe Experience Manager
Hi @saibul , Please refer to this post https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/failure-to-find-com-adobe-fmdita-api-jar-3-5-0-2/qaq-p/370690
95
Views
3
Likes
0
Answers
Re: Query Parameter getting removed from url ChitraMadan - Adobe Experience Manager
Hi @binoyp , I have tried your code in my local and for me everytime query paramter is appended to the URL. Are you getting any error when the parameter is not appended?Did you try in different browsers?Did you try in incognito mode?
86
Views
1
Like
0
Answers