Ask Me ?


Hi Readers,

Here you may comment all the questions/ doubts which you encountered during your journey for AEM. I will try my best to help you out and might connect with you to solve them too.

Also you may post interesting questions which you went through during your respective interviews , and I will try to answer them and thereby increase the Question Bank for masses.

So go ahead and post the questions !!

Thanks a lot .

Hashim

394 thoughts on “Ask Me ?

  1. Hi Hashim,

    We have a requirement where the links on blueprint needs to be updated for proper locale link in live copy.

    We created the DAM assets structure similar to site structure and placed similar PDF for “en” and “es” locale. Currently only two locales (English and Spanish).

    {/content/dam/testdemo/en and /content/dam/testdemo/es}

    I created a page with text “Click here” and added hyperlink for PDF from en folder. When live copy is created, the link still points to PDF from en folder.

    Page hierarchy (Blueprint): /content/testdemo/en/toolbar/testlink

    Live copy: /content/testdemo/es/testlink

    Requirement is that in live copy (in es folder) link should automatically update to point to similar PDF from es folder.

    Is this OOTB? then please help the configuration required. I used “Standard rollout config” while creating the live copy.

    If customization is needed, please guide with approach. Any links for examples with be appreciated.

    Thanks.

    Like

  2. Hi All,

    I have one query please help me out..

    Project–>components–>content–>components(demo)–>dialog–>item–>(properties–name–./header) for the xtype -> textfield we can fetch the value in jsp through below code.

    but when we use same processes for xtype–> multicompositefield then the same code is not working

    so pls let me know the code or tips for fetch the multicompositefield value in jsp page.

    Like

    • Hi, I couldn’t see what code you are using. But you can debug this easily – do check how the property is getting saved in multi-field . It should be different from textfield. You have to write code which can read from that multi-field property.

      Like

  3. Hi Hashim,
    I’m working in a version upgrade project from CQ5.5 to AEM 6.2. The issue is with the services, after installing the same code package in couple of author instances. One of them is working fine and in another instances some of the services were missed, this has been observed when I expand the bundle->used services block. Unable to figure out why the services were missed, this is our custom service not OOTB.
    Thanks,
    Ayyappa

    Like

    • Hi, Is there any error message while installing the web services ? Are you able to reproduce the issue in your local instance ? From 5.5 to 6.2 there were lots of methods which were deprecated and there could be some dependency mismatch. Closely observe the logs for Errors and Warnings.

      Like

  4. Hi Hashim,

    I have written a service, i have configured that as a component and service in osgi using annotations.
    every thing fine but when i deploy that service into osgi and triggering that service using scheduler. but when i see that configuration in components tab.The configuration status shows enabled/unsatisfied mode for scheduler and our class configuration. can you please help out. i am using aem 6.0 (sp3) version. Bundle is in active mode.

    Like

  5. Hi Hashim,

    I am using AEM 5.6.1 service pack 2. Please suggest which Java version should I use? Is there some Performance slowness on Java 7 for AEM 5.6.1 SP2 or should I upgrade my java?

    Like

    • Hi, For AEM 561 , Java 1.7 is recommended. Performance slowness could be due to lots of reasons. Upgrading your java might not solve the issue. Its more related to Maintenance and Health of the environment.

      Like

  6. What causes the querybuilder to not return results on a publish instance?
    Currently I have a query built to pull assets out of the dam by a specific location and by a set of tags. The query works on my authoring instance but does not work on my publish. I’ve validated that the assets and the tags are published. As well as well anonymous access is allowed. What else is missing?

    Like

    • Hi Carolyn,
      Can you try to fire the query in Publish instance using /libs/cq/search/content/querydebug.html ?
      Check the logs, what is missing on publish instance. Check if all the data is same in author and publish instance. If you are using dispatcher check if proper filters are present there.

      Like

      • Thank you Hashim.
        Yes I have been using the query debugger to make sure that my query is correct and there isn’t anything wrong with the parameters I am using. I am able to get results on author for the parameters I am using in the debugger.

        After looking into the logs it was giving an error about not being able to delete an old tar file from “C:\aem\author\crx-quickstart\repository\segmentstore\”.
        Error from log:
        “org.apache.jackrabbit.oak.plugins.segment.file.FileStore TarMK GC: Failed to remove old file C:\aem\author\crx-quickstart\repository\segmentstore\data00057v.tar. Will retry later.”

        I’ve renamed the file to tarOLD but now the error has moved to “C:\aem\author\crx-quickstart\repository\segmentstore\data00057w.tar” . However, if I rename “data00057w.tar” to tarOLD I get a 500 error on the authoring instance. Both “data00057w.tar” and “data00057v.tar” are very old, dated 3/10/2017, since then I have the latest of 4/11/2017 “data00087a.tar”.

        Why is it trying to use such old tar files and how can I make author and the publish instance point to the latest of 4/11/2017 “data00087a.tar”?

        Liked by 1 person

  7. Hi Hashim ,
    Thanks for supporting . Actually we need a multiple choice questions such as Exam pattern for to test and as well as to prepare the Question paper for exam .
    and am waiting for your reply…

    Thanks

    Regards
    Wajeed

    Like

  8. Hi,

    If I configure from OSGi bundle configuration console , configuration files is stored under “/apps/system/config”.
    1) Does the configuration under config folder is applied for both author and publish instance

    2) If yes then how will they we connected?
    If no? Do I need to package and install in publish.
    3)If I have configuration under config.publish of author instance, Does this configuration available on publish?

    Like

    • Hi Raghave,
      Its always advisable to create configurations based on environment runmodes. So you should create configurations like config.author and config.publish which are respectively applied on author and publishers.

      If a particular configuration isn’t present in both the above folders, it checks the config folder. The most matched runmode is selected. eg. if the same config is present in config, config.author and config.author.dev and your environment has runmodes like author,dev , the Configurations under config.author.dev is picked.

      I hope it clears your understanding.

      Like

    • Hi,
      Yes you can use Query Builder Search in the payload node under /etc/workflow/instances/server0/2017-04-19/test_workflow/data/payload . There should be the path of your page.

      No such information is stored at the Page level, but the payload information is stored in the Workflow Instances.

      Like

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s