Posts

Error : DependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.adobe.aem:uber-jar:jar:apis -> version 6.3.0 vs 6.4.0

Image
I got above error after adding dependency in Maven POM xml file placed under newly created AEM arch type and running command  mvn -PautoInstallPackage clean install . Error : DependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.adobe.aem:uber-jar:jar:apis -> version 6.3.0 vs 6.4.0 After google and gone through few article I got command ( mvn -PautoInstallPackage -Padobe-public clean install) . Once I run this command this issue with jar compatibility was resolved. Happy Learning!!!

Install and configure Eclipse for AEM on Windows 10

Image
Step 1 : First you get the source package from URL  https://www.eclipse.org/downloads/packages/ Download Eclipse IDE packages for windows or required OS compatible package. Step 2 : After downloading the zip file please unzip this package at desired location. In my case I unpack it . Step 3 :  Now click on executable file available in Eclipse unzipped package. In few seconds you will get a popup having Eclipse start screen on your system. Step 4 : Select or create your work space which is having code to connect JAVA source with AEM. In my case I created it on my system and creating a test AEM app. Step : 5 After selecting your work space default or welcome page of Eclipse will open having all available options. Step 6 :  In next step you need to integrate AEM development tool kit in your Eclipse. To do that just go to Help and select Eclipse Marketplace then type AEM Developer tools for Eclipse. On screen you will get the r...

Install and configure Apache Maven for AEM on Windows 10

Image
Step 1: to install Maven on windows 10 first get Maven source from below URL http://maven.apache.org/download.cgi Here click on Binary zip archive link available below on same page. Time to set the environment variable once Maven source package is downloaded. Unzip this downloaded package and set the maven package in environment variable. Step 2 : Set the environment variable from system Property. I am giving MAVEN_HOME as environment variable name which is having Maven source path. Also set the path of Maven bin folder under Path section on environment variable. Now save all changes and check Maven from command prompt with help of command mvn -version If your Maven is configured well then it will be shown in running state from above command. Once your Maven is ready and running on your system then a folder .m2 will be created under your system user account. In my case it ...

j-Meter Configuration and run a basic Load Test script

Image
I am trying to configure j-Meter to test the performance of application. To configure j-Meter first requirement is java that should be installed on your system. To install and configure java you can get help from this Article . After successfully installation and configuration of java please download j-Meter zip file from https://jmeter.apache.org/download_jmeter.cgi Download the zip file for windows and place somewhere in your system and extract the zip file. Now run the j-Meter from location D:\apache-jmeter-5.2.1\bin as display in below screen Once you click on jmeter.bat file the jmeter will run on JVM and below window will open. Time to write your load test script which will do the load testing for your application. You need to follow certain standards while writing logic for load test. I am sharing sample script of load testing for my blog. Now start load testing by jmeter with below command. Also give report file name and path for...

Install and configure Java on Windows 10

Image
Step 1: to install java on windows 10 first get java exe from following site. https://www.oracle.com/technetwork/java/javase/downloads/index.html Here you need to logn with your credentials and download the required version. I am downloading java 11 + because it's also compatible with Sonarqube. Once you get the exe then start to execute it and install on your system with following instruction on screen. Step 2 : Set the environment variable from system Property Step 3 : Click on Environment variable and set set the java bin path in environment variable as below After setting this environment variable you can check it from command prompt just typing command javac also you can check version of java using command java -version In my next article I will use this java to run j-Meter script for load test. Happy Learning!!!

ERROR Exception while handling event Sitecore.Eventing.Remote.PublishEndRemoteEventException: System.AggregateExceptionMessage: One or more exceptions occurred while processing the subscribers to the 'publish:end:remote'

I was getting below error while working with cache management on CM and CD server. Actually my code was working fine on CM server but I was not able to access or clear cache object on CD server because of wrong event selection.  PID[18108] Error       ManagedPoolThread #3 16:24:16 ERROR Exception while handling event Sitecore.Eventing.Remote.PublishEndRemoteEventException: System.AggregateExceptionMessage: One or more exceptions occurred while processing the subscribers to the 'publish:end:remote' event.Source: Sitecore.Kernelat Sitecore.Events.Event.EventSubscribers.RaiseEvent(String eventName, Object[] parameters, EventResult result)at Sitecore.Events.Event.RaiseEvent(String eventName, Object[] parameters)at Sitecore.Eventing.Subscription`1.Invoke(Object instance, EventContext context)at Sitecore.Eventing.EventProvider.RaiseEvent(Object event, Type eventType, EventContext context) Above error comes due to wrong event args access in CD server. T...

Sitecore 9.2 Installation using SIF Step by step

Image
To setup sitecore 9.2 istance on your system first download required package from https://dev.sitecore.net/Downloads/Sitecore_Experience_Platform/92/Sitecore_Experience_Platform_92_Initial_Release.aspx Download Package for XP Single and extract the downloaded package. If you want to place all zip files   in some other location then just place all the extracted zip file to particular location.         I placed all zip files to some other location.   D:\SharjeelsWork\Projects\Sitecore\9.2\SIF After extraction you will get few zip files. Now unzip XP0 Configuration files in same location. Once you extract this zip file, you will get XP0-SingleDeveloper.ps1 and other required files. Delete “XP0 Configuration files 9.2.0 rev. 002893.zip” and “Sitecore 9.2.0 rev. 002893 (WDP XP0 packages).zip” files from installation folder as they are no longer needed. This is how it should look like before procee...

Sitecore Custom Cache implementation

To maintain some value in cache we can customize Sitecore cache by using Sitecore.Caching name space and classes. As Sitecore.Caching.CustomCache is an abstract class, you cannot directly instantiate it, but you can inherit from it. namespace Rbm.Feature.SharjeelsWork.CacheManager {     public class RbmCustomCache : Sitecore.Caching.CustomCache     {         public RbmCustomCache( string name, long maxSize) : base (name, maxSize)         {         }         new public void SetString( string key, string value)         {             base .SetString(key, value);         }         new public string GetString( string k...