since ‎09-07-2015
‎14-04-2021
kunal23
MVP
Re: sling.servlet.resourceTypes
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
It is always a good practice to use resourceType for invoking servlets rather than creating custom servlet URLs. Check out this article - https://cqdump.wordpress.com/2015/03/23/aem-coding-best-practice-servlets/

Views

832

Like

1

Replies

0
Re: Need to reset page properties when copied page using siteadmin or sidekick or crxde
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
If you have to use event handler approach then one possible solution could be to create a special user for building and installing packages. This user should only be used only for installing packages and nothing else. And then in your event handler code you can check the value of for "jcr:createdBy" property. If it matches the user name of the package installation user then you can skip the reset logic.Note - This solution will work but will require some governance as you are assuming that only ...

Views

233

Like

1

Replies

0
Re: AEM 6.1 not starting due to Lucene errors
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
Not sure why your instance is not starting. The only exception I see is that it can not find "sling:jobEvent" node type definition in the repository. Did you see any errors while you upgraded in the upgrade.log file ? You can try registering the node type manually by importing the contents of the cnd file here - http://localhost:4502/crx/explorer/nodetypes/index.jsp. But I am not sure whether this is the root cause of not starting up.

Views

585

Likes

0

Replies

0
Re: AEM 6.1 not starting due to Lucene errors
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
It seems that some of your OSGI bundles are not getting Active and thats why you see the startup in progress message. Do you know which bundle is having the problems ? You can disable the startup filter to just to go past this message and check any exceptions when you access any UIs. Uncheck "Active by default" in the following configuration to disable the filter - http://localhost:4502/system/console/configMgr/org.apache.sling.startupfilter.impl.StartupFilterImpl

Views

586

Likes

0

Replies

0
Re: AEM 6.1 not starting due to Lucene errors
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
Which version of Java are you using ? Could you please share your error log file ?

Views

590

Likes

0

Replies

0
Re: AEM 6.1 not starting due to Lucene errors
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
I think that will recreate the mongo collection index and not the OAK index. I am just guessing this but you can give it a try. Just rename the index folder under /crx-quickstart/repository folder and restart AEM.

Views

589

Likes

0

Replies

0
Re: AEM 6.1 not starting due to Lucene errors
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
You can do it by updating the reindex property to true of index definition nodes under /oak:index. Are you able to access /crx/explorer or /crx/de UIs after restart ?

Views

583

Likes

0

Replies

0
Re: AEM 6.1 not starting due to Lucene errors
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
I think you need to rebuild the OAK indexes as it seems they are corrupt.

Views

588

Likes

0

Replies

0
Re: AEM 6.1 Startup Error: Missing Authentication Service due to missing blob
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
From the logs it seems the error is thrown when a particular blob file is not found. It could be that the file was deleted erroneously or it does not exist. You can try the following steps for recovery but I would recommend you to contact Adobe daycare support team for analyzing the root cause and providing you the right fix. Go to crx-quickstart/repository/repository/datastore folder on the file system. Under the datastore folder, if the following path does not exist - /2f/c5/21 then create thi...

Views

262

Likes

0

Replies

0
Re: AEM 6.1 Startup Error: Missing Authentication Service due to missing blob
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
Can you check whether the AEM process has read/write privileges on datastore folder and can you share the exception stack trace/log file ?

Views

272

Likes

0

Replies

0
Re: AEM 6.1 Startup Error: Missing Authentication Service due to missing blob
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
Did you start your AEM instance with the following run modes - -r crx3,crx3mongo for MongoMKCan you share the contents of following config files in crx-quickstart/install folder? Also ensure that there are no spaces in the paths of your aem installation folder. -org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService.cfg- org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.cfg There is a known issue with Windows environment -Update to 6.1 from 5.x and 6.0+CRX2 fails on Windo...

Views

272

Likes

0

Replies

0
Re: How to run a task every minute
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
If you are on CQ 5.6.1 or later version then you can refer to the following code example- https://github.com/Adobe-Consulting-Services/acs-aem-samples/blob/master/bundle/src/main/java/com/adobe/acs/samples/schedulers/impl/ClusterAwareScheduler.java And for versions < 5.6.1 , you need to implement the ClusterAware interface - https://helpx.adobe.com/experience-manager/kb/CreateClusterAwareOSGiService.html

Views

289

Likes

0

Replies

0
Re: Exclude file type in DAM
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
I don't know whether there is any OOTB configuration to limit the file types. But there is a community article for restricting the upload based on size of the file - http://experience-aem.blogspot.com/2014/12/aem-6-sp1-classic-ui-restrict-large-or-small-files-upload.html. You can customize it and add your logic of checking the file types. You can either just check the file extensions in the javascript or invoke a backend servlet to check the file headers for the mime types. Also, this is limited...

Views

185

Likes

0

Replies

0
Re: Dam data deletion
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
You can create a package with empty contents under dam path you want too delete. And then install the package to delete everything. Otherwise you can try deleting using the curl command - curl -X DELETE http://localhost:4502/path/to/node -u admin:admin

Views

244

Likes

0

Replies

0
Re: Auto Generated id
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
Just see Rule#7 of David's model - Rule #7: ID's are evil. http://wiki.apache.org/jackrabbit/DavidsModel#Rule_.237:_ID.27s_are_evil

Views

188

Likes

0

Replies

0
Re: Add attribute in Parsys Div
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
You need to create cq:HtmlTag for this use case. Check this article - http://dev.day.com/cemblog/en/experiencedelivers/2013/04/modify_the_auto-generateddivs.html

Views

371

Like

1

Replies

0
Re: Sync contents Hi
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
You can use vlt rcp command as it is much more faster and better than package installation. You can also try using this utility http://adamcin.net/net.adamcin.recap/ which provides a good web interface for invoking vlt rcp within AEM UI.

Views

171

Likes

0

Replies

0
Re: Way to get list of replication agents configured using JS
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
If you just want the list of agents then you can fire a GET request to the following URI - http://localhost:4502/bin/querybuilder.json?type=nt:unstructured&sling:resourceType=cq/replication/components/agent&group.1_path=/etc/replication/

Views

318

Like

1

Replies

0
Re: Get Participant selected from the previous step (Workflow)
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
I guess you can get this information from the HistoryItem object retrieved from WorkflowHistory object. https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/workflow/exec/HistoryItem.html##getUserId()You can check this thread for reference - https://forums.adobe.com/thread/1156064

Views

358

Likes

0

Replies

0
Re: Configuring solr indexing with remote solr server
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
This configuration is meant for indexing OAK repository so all the index configurations defined in crx will be used for indexing the JCR nodes. Even though you can define in crx which node paths to index but if you remove all the indexes and just keep /content/products then your repository will slow down terribly. So, I guess for your use case (if you don't want to index JCR nodes in the remote solr) it will be better of to use a remote solr server and index the contents using a custom method wh...

Views

195

Likes

0

Replies

0
Re: How to include multiple publisher hosts in maven scripts???
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
You should be using a CI tools like Jenkins/GO etc for deploying built artifacts to multiple instances in multiple environments. Maven should only be used for build, unit/integration tests and deploying on local developer environment.

Views

177

Likes

0

Replies

0
Re: cq:actionConfigs in Touch UI vs Classic UI - Some code could not be run
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
Also, add dependencies property to the clientlib node and set it's value to - "granite.jquery". And change your code to use jQuery from Granite as below- (function (document, $) {'use strict'; return {addChild: function(component) {$.post();}};})(document,Granite.$);

Views

388

Likes

0

Replies

0
Re: cq:actionConfigs in Touch UI vs Classic UI - Some code could not be run
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
Have you set a property "categories" of String type to "cq.authoring.dialog" on client library node (cq:ClientLibraryFolder) ?

Views

583

Likes

0

Replies

0
Re: Using granite include to include json response of granite field types
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
Check the following example node in AEM - http://localhost:4502/crx/de/index.jsp#/libs/wcm/foundation/components/page/cq%3Adialog/content/items/tabs/items/permissions Ref doc - http://docs.adobe.com/docs/en/aem/6-1/ref/granite-ui/api/jcr_root/libs/granite/ui/components/foundation/include/index.htmlFollowing should work if graniteitems is granite UI component node

Views

539

Likes

0

Replies

0
Re: JSON isn't loaded in selection field on dialog launch
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
Instead of options property you should be creating a node named "datasource" and set sling:resourceType property for dynamic options. Check the following example - http://experience-aem.blogspot.com/2015/04/aem-6-sp2-touchui-adding-dynamic-select-options.html. Ref doc - http://docs.adobe.com/docs/en/aem/6-1/ref/granite-ui/api/jcr_root/libs/granite/ui/components/foundation/form/select/index.html

Views

773

Likes

0

Replies

0
Re: OSGI is not invoking implemented code
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
Could you please explain the use case you are trying to implement ?

Views

1.2K

Likes

0

Replies

0
Re: How to read design_dialog values using in sightly.
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
Have you tried this code snippet ? - ${currentStyle.propertyname}

Views

686

Like

1

Replies

0
Re: AEM Apps - Android APK
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
You can create a account for yourself on the phonegap cloud here - https://build.phonegap.com/apps. You are allowed to build 1 free app for development purposes. You can follow these steps to register it with your AEM instance-1. Register this service in AEM, by going to cloud configurations http://localhost:4502/etc/cloudservices/phonegap-build.html2. Go to Apps dashboard - http://localhost:4502/libs/mobileapps/admin/content/dashboard.html/content/phonegap/geometrixx-outdoors/shell 3. Register ...

Views

437

Likes

0

Replies

0
Re: AEM Apps - Android APK
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
I just installed the generated apk file on my device by just double tapping on the downloaded file. I don't see any issues and can browse all the content in the application.

Views

445

Likes

0

Replies

0
Re: AEM Apps - Android APK
Avatar

kunal23

MVP

kunal23
- Adobe Experience Manager
Have you built the application using the phone gap cloud service in AEM ? You can either deploy the generated apk file manually using Android developer tools. Or else you can test it on your mobile device by using the Phonegap Enterprise application available on Android Playstore. When you will launch the Phonegap Enterprise on your mobile it will ask you the hostname and port of AEM and after you are connected it will show you the list of apps available for testing.

Views

439

Likes

0

Replies

0