since ‎13-03-2014
‎10-12-2019
Qamar_khan
Level 2
Re: How to change AEM User password in java Qamar_khan - Adobe Experience Manager
I would like to thank both of you people for the quick reply.I have successfully resolved the issue with the help of below Adobe help link.Adobe Experience Manager Help | Posting Special Characters to Adobe Experience Manager The main cause is to encode/decode special characters in AEM.Solution:Encode -> While setting a passwordString encodedString = URLEncoder.encode(passwordspecialchars, "UTF-8");Decode -> Decode existing password while checking from AEM String pwd = java.net.URLDecoder.decode...
1263
Views
0
Likes
0
Answers
How to change AEM User password in java Qamar_khan - Adobe Experience Manager
Hello All, I need help to how to change the password of existing user AEM. I am implementing it in my java bundle package. So far I have done two ways ***********************************************************************************************1. ResourceResolver resourceResolver = resolverFactory.getAdministrativeResourceResolver(null); UserManager userManager = resourceResolver.adaptTo(UserManager.class); Session sessionrr = resourceResolver.adaptTo(Session.class); User user = (User) userMan...
5543
Views
0
Likes
3
Answers and Comments
Re: How to install and configure AEM for SSL? Qamar_khan - Adobe Experience Manager
Hi, Gaurav thanks again for your reply, I have resolved the issue, In case of AEM https login of OSGI Java Bundle.What all need to do is install your domain (SSL Certificate) in JDK/JRE certificate list.The instruction as given below there 2 option you can do this, to restart AEM server is a must.#keytool -import -v -trustcacerts -alias -file ~/.crt -keystore /jre/lib/security/cacerts -keypass changeit -storepass changeit1.replace with your domain (e.g. xx.xxx.com)2.replace with your java hom...
1509
Views
1
Like
0
Answers
Re: How to install and configure AEM for SSL? Qamar_khan - Adobe Experience Manager
Hello Gaurav and other Friends, Little late update on this query. Now I am able to successfully running AEM author on https domain site, thank you to all.I have developed the java OSGI maven bundle for my API services and all methods calling successfully except myLogin. My current problem is that -- I am able to call my doPost method of SlingAllMethodsServlet for https request URL but PostMethod authRequest = new PostMethod(String.format("%s://%s:%s/j_security_check", PROTOCOL, HOST, PORT));auth...
1503
Views
0
Likes
0
Answers
Re: How to upload multiple files in aem from java Qamar_khan - Adobe Experience Manager
Thanks, Gaurav for the reply, I try out and update you if find any difficulty thanks again.RegardsQamar
737
Views
0
Likes
0
Answers
Re: How to upload multiple files in aem from java Qamar_khan - Adobe Experience Manager
Hi, Thanks for your reply. Yes, we are able to write asset to given JCR location but in the case for load testing or uploading files continuously we are facing this exception OakState0001: Unresolved conflicts.Can you help me on this what is going wrong or will it require some other way?ThanksQamar
739
Views
0
Likes
0
Answers
How to upload multiple files in aem from java Qamar_khan - Adobe Experience Manager
Hello All, Once again I need help to upload multiple asset files into AEM dam/content/MyParentFolder/MyCustomFiles/File.jpg path level.1. My case is I am creating a MyCustomFiles sling folder to save the files under the MyParentFolder folder. Adding Node resNode = FolderNode.addNode("jcr:content", "dam:AssetContent"); then session.save();After sending the path with files to method readMultiPartFormData( request, FileName,FileID,FilePath) astry { final boolean isMultipart = org.apache.commons.fil...
1159
Views
0
Likes
4
Answers and Comments
Re: How to install and configure AEM for SSL? Qamar_khan - Adobe Experience Manager
Thanks Gauravb for help, I will check and let you if find any difficulty in it.
1466
Views
1
Like
0
Answers
How to install and configure AEM for SSL? Qamar_khan - Adobe Experience Manager
Hello, Can someone help me out with steps to install and configure AEM 6.4 for SSL. ThanksQamar
2692
Views
0
Likes
5
Answers and Comments
Re: How to resolve out of memory error Java heap space Qamar_khan - Adobe Experience Manager
Hi , Thanks for help will check and update how I can figure out solution by using first post.As far second link is concerns we have taken almost all possible ways from it to resolved my problem.ThanksQamar
10718
Views
0
Likes
1
Replies
Re: How to resolve out of memory error Java heap space Qamar_khan - Adobe Experience Manager
Hi Opkar, We have observing very slow(almost dead) running behavior while uploading or retrieving the assets files operation from AEM CREX respiratory by our java bundle pro-grammatically. So can you please suggest 1.What could be ideal size heap memory for AEM6.4 2.Second what can causing this server slow running behavior in our caseThanksQamar
10718
Views
1
Like
3
Replies
Re: How to resolve out of memory error Java heap space Qamar_khan - Adobe Experience Manager
Hi Opkar, Thanks for update, I try to increase size heap and as mentioned in section 3. And let you know our testing result.ThanksQamar
10718
Views
1
Like
4
Replies
Re: How to resolve out of memory error Java heap space Qamar_khan - Adobe Experience Manager
Hi Opkar, Currently with suggested changes by you and Wasil AEM operation looking normal with our customize java API bundle.But we still checking memory with QA load testing to find out is it our problem resolved or not.I have have allocated meomry AEM /crx-quickstart/quickstart and /start parameter as CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=1024M.Thanks both of you, I will update soon status of our problem with heap memory .ThanksQamar
10718
Views
2
Likes
6
Replies
Re: How to resolve out of memory error Java heap space Qamar_khan - Adobe Experience Manager
Hi Opkar, Currently we are using one single instance on localhost port 4502 which I am thinking is author instance.We have checked publish instance 4503 url which is currently stop in our AEM.With the help of this post https://helpx.adobe.com/experience-manager/kb/error-com-day-cq-replication-impl-AgentManagerImpl-Job-contains-agent-which-is-not-started-publish.html we have disable the agent.Is there any more setting required ? Thanks Qamar
8005
Views
1
Like
8
Replies
Re: How to resolve out of memory error Java heap space Qamar_khan - Adobe Experience Manager
Thanks Opkar for reply, Earlier this post in our AEM6.4 we had increased the heap size in parameter of stat.bat file and quickstart.bat file asif not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=1024M -Djava.awt.headless=truewhich suggested in Analyze Memory Problems. ​. But still we were facing the server hanging issue.1.Secondly we have tried this CQ_JVM_OPTS='-XX:+HeapDumpOnOutOfMemoryError' change which suggested in Analyze Memory Problems Page but in this case AEM were not ...
8005
Views
1
Like
10
Replies
Re: How to resolve out of memory error Java heap space Qamar_khan - Adobe Experience Manager
Hi Wasil, I have checked the AEM Error logs carefully and observed the below error repeatedly occurring 03.01.2019 00:04:49.722 *ERROR* [sling-threadpool-18ec3542-a5b7-481d-acbf-03ea9a230a95-(apache-sling-job-thread-pool)-5-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish Error while sending request: java.net.ConnectException: Connection refused: connect03.01.2019 00:04:49.722 *ERROR* [sling-threadpool-18ec3542-a5b7-481d-acbf-03ea9a230a...
8005
Views
1
Like
12
Replies
Re: How to resolve out of memory error Java heap space Qamar_khan - Adobe Experience Manager
Hi Wasil, Eclipse compilation warnings logs or AEM Error.log? And can you help me which kind of parameter I need to set forthis solution3.Use correct memory parameters[1] either with jar or /bin/start scriptThanks Qamar
8005
Views
1
Like
13
Replies
Re: How to resolve out of memory error Java heap space Qamar_khan - Adobe Experience Manager
Thanks Wasil for quick reply,1.Increase heap size first [I have done this]After posting this I have found below solution and I have done this also just one question,Is warnings also reason of it?2. Check your servlet/custom code for any possible memory leaks [I have done this]I will try this and update you result3.Use correct memory parameters[1] either with jar or /bin/start scriptThanks Qamar
8005
Views
1
Like
15
Replies
How to resolve out of memory error Java heap space Qamar_khan - Adobe Experience Manager
Hello All, We have implemented java sling servlet rest API for AEM 6.4 version. We are facing out of memory error at regular time interval and server hanging.Can someone help how to resolve it ? or is it due java sling servlet implementation or due to some server configuration issue.ThanksQamar
10946
Views
2
Likes
18
Replies
How to get logged user session details in AEM Qamar_khan - Adobe Experience Manager
Hello All, I am trying to get logged in user session details in my java servlet like user name,password,group,permission and complete profile details.In case of administrator logged in I am able get all details successfully but in case of other user I am getting error of "Anonymous ".1.http://localhost:port/useradmin AEM Page- I have applied all r/w permission to my user.2.By using AEM my user login token I have checked my rest API method call and I am able get user session details in this scena...
554
Views
0
Likes
0
Answers and Comments
How to enable Assets tool viewer presets configuration in AEM 6.3 Qamar_khan - Adobe Experience Manager
Hello All, I want to create my new asset view preset to views my folder files such as archive,folders and image files having same thumbnail size views.ForI have found the "Managing Image Presets" under dynamic media user guide as But in my aem i unable to see these setting. I can brows only Can anybody help me out how to enable these setting first? Second is it correct way to manage my folder assets thumbnail view with same size?ThanksQamar
552
Views
0
Likes
0
Replies
Re: document.cookie not working in js for aem 6.3.2 Qamar_khan - Adobe Experience Manager
Hello All, In this same context can you people help me how to get "login-token" in js in aem 6.3.Thanks Qamar
1207
Views
0
Likes
0
Replies
Re: DAM admin delete button functionality customization Qamar_khan - Adobe Experience Manager
Hello Radhakrishna, I need more help on this to override the delete action button.I have done overlay of /app/dam/gui/coral/components/admin/clientlibs/actions/js/delete.js and trying to calling the delete action on asset selection button as /apps/dam/gui/content/assets/jcr:content/actions/selection/myaction it calling default "Delete Asset" dialog successfully. But I want to handle some action on "Delete" button can you help me more on this. The properties of myaction button as belowThanks Qama...
1352
Views
0
Likes
0
Answers
Re: How to create custom Authentication Handler Qamar_khan - Adobe Experience Manager
Hi Arun, Ok I will check the permission and firewall and try to post request for j_security_check login. Also will check the redirected post link.ThanksQamar
1095
Views
0
Likes
0
Answers
Re: How to create custom Authentication Handler Qamar_khan - Adobe Experience Manager
Hello Arun, Thanks for post. Now I have successfully implemented my custom authentication handler bundle. Now on next step I am trying to login with my username and password by using http://[localhost]:[port]/j_mycustom_security_check?j_username=[user]&j_password=[password] so that I can get login session token as below//Extract data from request Object public AuthenticationInfo extractCredentials(HttpServletRequest request, HttpServletResponse response) { if (REQUEST_METHOD.equals(request.getMe...
1083
Views
0
Likes
0
Answers
Re: How to create custom Authentication Handler Qamar_khan - Adobe Experience Manager
Thanks Arun for quick reply. Will check and update.RegardsQamar
1161
Views
0
Likes
0
Answers
How to create custom Authentication Handler Qamar_khan - Adobe Experience Manager
Hello All, I want to create AEM bundle as my custom authentication. Can some one help me out the right steps with implementation example.RegardsQamar
2613
Views
0
Likes
5
Answers and Comments
How Create Custom Authentication Handler Qamar_khan - Adobe Experience Manager
Hello All, I want to create AEM bundle as my custom authentication. Can some one help me out the right steps with implementation example.RegardsQamar
521
Views
0
Likes
0
Replies
Re: How get UID of asset inside content/dam folder by api json http request. Qamar_khan - Adobe Experience Manager
Thanks for reply, yes true I am using this http API as I mentioned above.With the help of these API I have retrieved the below sequence as1./api.json response provide me /api/assets.json and /api/content.json like this2./api/assets.json response provide me./api/assets/MyFolder.json and all folders 3./api/assets/MyFolder.json response provide me /api/assets/MyFolder/Image2.jpg.json and other assets inside folder4./api/assets/MyFolder/Image2.jpg.json response provide me /api/assets/MyFolder/Image2...
1099
Views
0
Likes
0
Replies
How get UID of asset inside content/dam folder by api json http request. Qamar_khan - Adobe Experience Manager
Hello All, I am trying to get the view properties details of asset by using api json http request. Like1.http://localhost:4502/api.json 2.http://localhost:4502/api/assets.json3.And then searched folder and after that asset.Thanks & RegardsQamar
1165
Views
0
Likes
2
Replies
Likes given to
Likes from