since ‎10-07-2016
Online
asutosh_jena
Level 6
Re: com.jcraft.jsch -- Cannot be resolved , AEM as a Cloud
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Prince_Shivhare This issue is due to AEM not able to resolve the external dependency with com.jcraft.You need to wrap the dependent JAR into an OSGi bundle and that needs to be deployed into AEM. Please include the below 2 dependency with version number in main pom.xml com.jcraft jsch 0.1.54 com.jcraft jzlib 1.1.3 Include the same 2 dependency in core pom.xml without version information: com.jcraft jsch com.jcraft jzlibdo an includeresource in core pom.xml for the above jars in bnd-maven-plu...

Views

13

Likes

0

Replies

1
Re: Maven error in moving code from java 8 to 11 in AEM 6.5
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @shajiahmed By moving to Java 11, the class files that you create will be compiled to Java 11 byte code. The maven-scr-plugin then has to scan this byte code to find the annotations that are applied to it. Your current version of maven-scr-plugin (1.20.0) does not support on Java 11 and you will need to find the maven-scr-plugin that supports Java 11.The latest maven-scr-plugin as of today is 1.26.4 and it could be possible that this latest version of the plugin has support for Java 11.https:...

Views

11

Likes

0

Replies

0
Re: Stop retrying Workflow using java
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @infinityskyline Within the execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) you can write the below step which will terminate the workflow. Workflow workflow = workflowSession.getWorkflow(workItem.getWorkflow().getId());workflowSession.terminateWorkflow(workflow); Thanks!

Views

25

Likes

0

Replies

0
Re: unable to fetch dropdown value correctly
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Update: @Shaheena_Sheikh I just tried with the below structure and it works for me and prints the requried values: Both the use case works with same piece of code. Just ensure you do not have the default value as "select" else it will show the same value always until unless you change the value in dropdown. (function ($, document, ns) { $(document).on("dialog-ready", function () { $(".coral3-Multifield-item").each(function (index) { let dropdown = $(this).find(".cq-dialog-dropdown-showhide-multi...

Views

18

Likes

0

Replies

0
Re: unable to fetch dropdown value correctly
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Shaheena_Sheikh Can you please put the dialog structure here for the below use case?My component1-->Tab(Data)-->multifield item1-->container(list)-->container(button)-->dropdown (below code doesn't work). Just want to ensure that I am following the correct structure. Thanks!

Views

21

Likes

0

Replies

1
Re: RepoInit Configuration is not able to set ACL: read p...
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @shivanigarg111 /libs/dam/content - This is a valid path still it gives the error.but when I try to use some path under /conf it works! Looks like it's an issue with AACS and we might need to reach out to Adobe and see why it does not work based on the documentation. Also I tried to move the configs to ui.config and dpeloyed which did not solve the issue.Can you also give a try and see if it works for you? Thanks!

Views

15

Likes

0

Replies

0
Re: Need Apache Dispatcher Module
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @saukaush Please download from here:https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/getting-started/release-notes.html?lang=en#downloads Thanks!

Views

21

Likes

0

Replies

0
Re: Apply for the Adobe Community Advisor Program
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Singh_Jagpreet Can you please enable anonymous access to this form. It is asking to login and post login it shows we do not have permission to edit this form. Thanks!

Views

16

Likes

0

Replies

1
Re: Unable to adapt resource to type com.day.cq.wcm.msm.i...
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @MikeXXXX Are you able to adapt to RolloutHierarchicalObj ?It does not even allow me! I do not see RolloutHierarchicalObj available during compile time and does not allow me to adapt.But I do see it in the Sling Adaptars. Thanks!

Views

15

Like

1

Replies

0
Re: Content Policy for container inside Accordion Component
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @mtobiasz As per your requirement "I would like to restrict this Container to allow only adding the same components as for the accordion component (In your example Button and Container)" this is already working as you mentioned.After adding another container into the accordion, it does not allow to add any other component except the allowed components into the container. Thanks!

Views

26

Likes

0

Replies

0
Re: RepoInit Configuration is not able to set ACL: read p...
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @shivanigarg111 I tried with the below script and getting a different error though.create service user test-userset ACL on /libs/dam/contentallow jcr:read for test-userendError:INFO: Adding ACL 'allow' entry '[jcr:read]' for [test-user] on [/libs/dam/content]ERROR: Failed to set ACL (javax.jcr.PathNotFoundException: Cannot set ACL on non-existent path /libs/dam/content) AclLine ALLOW {principals=[test-user], privileges=[jcr:read]} Debugging further. Will keep posted if I find anything. Thanks...

Views

55

Like

1

Replies

2
Re: Sites list view displays blank after SP7 installation
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @sheelaomkarappa Are you able to reproduce this issue your local instance? Also is this for all sites including we-retail and wknd or only for your specific website?I do not see this issue on AEM 6.5.7.0 with we-retail package. Are you getting any error in the log when you are tryig for list view on site? If you are trying on local can you upgrade it to 6.5.8.0 and see if this issue is resolved? There were some other issues and Adobe releases the 6.5.8.0 with those fix. Thanks!

Views

18

Like

1

Replies

0
Re: Content Policy for container inside Accordion Component
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @mtobiasz You can configure the allowed components such as containers, text and so on.. through policy configuration for any core component.On the page template component layout section you can select the accordion component and configure the policy.The Allowed Components tab is used to define which components can be added as items to panels in the Accordion Component by the content author. These configurations will be stored under /conf/project specific folder policy node. After all configur...

Views

70

Like

1

Replies

2
Re: What could cause a ReferenceError ContextHub is not d...
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
I have not used this tool so far. So I will not able to say how this actually crawls the websites and identifies the possible issue. But you can run your website through the broken link test just to ensure that the links that are used on the website are returning 200 and all the functionality are working as expected.

Views

44

Likes

0

Replies

0
Re: What could cause a ReferenceError ContextHub is not d...
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
I do not think it has anything to do with page load process. If it's loading as expected and there is no impact on the functionality, then it could be a false positive by the tool. Having said that we need to ensure, we are following the correct process to validate using the tool.

Views

54

Likes

0

Replies

0
Re: resize, crop etc for an image in text component is no...
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @sumedhak7436918 OOTB Text component is used only to author textual content and for authoring the Image content we have an OOTB Image component which already has the below features like Resize, crop etc...These 2 components are separated from each other because of the nature of usage and it can be authored separetely. Either you can use both component separately to achieve your usecase or you can build a custom component with both Text and Image field and add the required properties in the in...

Views

34

Like

1

Replies

0
Re: Created scheduler but not able to see log output in t...
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
@ashwinikhaple I do not see any issue with the code. This error is for some other code.Can you please put the complete error message to know where this error is coming exactly? Also for the Scheduler, please use the below CRON expression. This will ensure the scheduler is running every 1 min and it will print the log. 0 0/1 * 1/1 * ? * Else you can add a logger statement in the @activate method which will print he log when you deploy the code. Do let me know if this does not work. @Activate // T...

Views

45

Likes

0

Replies

0
Re: What could cause a ReferenceError ContextHub is not d...
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Jeanmaradiaga Do you see the content when you try to access the below URL in your website?https://www.site.com/etc/cloudsettings.kernel.js/conf/global/settings/cloudsettings/company/contexthubIt should render the JS if it's working as expected. If it's not loading that means there is a configration issue and the JS file is not loading which is why the tool is throwing ContextHub is not defined error. Thanks!

Views

64

Like

1

Replies

5
Re: Assets API CRUD operations
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Antony6790 You can block all the request by default and allow only the GET requests with /api/assets path and JSON as the extension.This will ensure only fetching the asset details/retrieval of asset is allowed whereas rest all operations are blocked. /0001 { /type "deny" /glob "*"}/000X #other rules are here for website/0003 { /type "allow" /method "GET" /url "/api/assets/*" /extension 'json' } #whatever path it is. Thanks!

Views

30

Like

1

Replies

0
Re: Created scheduler but not able to see log output in t...
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
HI @ashwinikhaple Please check the log level for your OSGi config.As per code, it is set as DEBUG so in your logger configuration also it should be set as DEBUG.if it's configured as INFO, DEBUG statements will not be logged into the log file.logger.debug("MyScheduler is now running, myParameter='{}'", myParameter); Either change the log level in the OSGi config to DEBUG, else change the log level in code to logger.info if OSGI has already configured with INFO as the level. Thanks!

Views

67

Likes

0

Replies

0
Re: Check if new item is added to the multifield
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Sounds good!

Views

28

Likes

0

Replies

0
Re: Loop not working for multifield
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Shaheena_Sheikh Targeting the button element only should resolve it. (function (document, $, ns) { "use strict"; $(document).on("click", "button[coral-multifield-add]", function (e) { e.stopPropagation(); e.preventDefault(); //Code from here $(".coral3-Multifield-item").each(function (index) { console.log("add item"); }) });})(document, Granite.$, Granite.author);

Views

30

Likes

0

Replies

0
Re: Check if new item is added to the multifield
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Shaheena_Sheikh Targeted only the button element below. Should work now. (function (document, $, ns) { "use strict"; $(document).on("click", "button[coral-multifield-add]", function (e) { e.stopPropagation(); e.preventDefault(); alert("Hi"); });})(document, Granite.$, Granite.author);

Views

48

Likes

0

Replies

0
Re: Created scheduler but not able to see log output in t...
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @ashwinikhaple Please update the below line of code: @component(service=MyScheduler.class, immediate = true)@Designate(ocd=SchedulerConfig.class)public class MyScheduler implements Runnable Service class should be your component class name. Thanks!

Views

84

Like

1

Replies

4
Re: Add styles to RTE paragraph format tags
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Prem_IB You cannot add style tag directly to paragraph like SomeText in RTE.But you can wrap the content within with a class which will be applied to a tag and the required style can be applied to the class such as: RTE:SomeText CSS:.something{ font-size: 18px;} Please refer the Text Style section in the below Adobe link:https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/configure-rich-text-editor-plug-ins.html?lang=en#textstyles Thanks!

Views

29

Like

1

Replies

0
Re: Loop not working for multifield
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Shaheena_Sheikh Adding the below code will execute only on button click and the loop also works as expected. This will run each time a new item is added i.e. each time you click on add button. (function (document, $, ns) { "use strict"; $(document).on("click", ".coral3-Button--secondary", function (e) { e.stopPropagation(); e.preventDefault(); //Code from here $(".coral3-Multifield-item").each(function (index) { console.log("add item"); }) });})(document, Granite.$, Granite.author);Hope this...

Views

53

Like

1

Replies

2
Re: Check if new item is added to the multifield
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Shaheena_Sheikh Please try the below code and it will work.(function (document, $, ns) { "use strict"; $(document).on("click", ".coral3-Button--secondary", function (e) { e.stopPropagation(); e.preventDefault(); alert("Hi"); });})(document, Granite.$, Granite.author);

Views

89

Like

1

Replies

4
Re: How to check logs of Adobe Granite HTML Library Manager
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @vijithavari If there is any error during minification of any JS file, it will be logged in the error.log file.Please check the crx-quickstart/logs/error.log file and you should be able to see what is causing the minification to fail. Thanks!

Views

30

Likes

0

Replies

0
Re: Granite:id to granite:class
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Shaheena_Sheikh No worries. Can you post the DOM screenshot from the console? Also can you confirm if you have fontField as the class available for the element like how you have an id as fontField?

Views

62

Likes

0

Replies

0
Re: Granite:id to granite:class
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
It looks like you updated the code now and the earlier code snippet was different 🙂

Views

72

Likes

0

Replies

0