since ‎22-09-2016
10 hours ago
rampai
Level 3
Segment Not found on opening maintenance console jobs rampai - Adobe Experience Manager
We recently encountered this issue while trying to fix repository inconsistency. Since we were getting 503 error (Authentication support missing) after reverting to last healthy revision, we restored the AEM instance to the backup created before the operation. After this backup was restored, we can no longer access the maintenance jobs configuration from the touch UI console. This is the error that we are getting. Can someone please suggest how to fix this? Segment 7d732fb7-a908-49aa-a3c9-78ddbf...
748
Views
0
Likes
2
Answers and Comments
Re: Why doesn't an OSGi Bundle start even when all the Dependencies are resolved? rampai - Adobe Experience Manager
Probably an OSGi component that you have in your bundle is in unsatisfied state.
626
Views
0
Likes
0
Answers
Re: Get a data-sly-list element as a jsonarray rampai - Adobe Experience Manager
Thanks. This is precisely what I did in the end.
610
Views
1
Like
0
Answers
Get a data-sly-list element as a jsonarray rampai - Adobe Experience Manager
How can we pass a list from HTL to a sling model?I need a nested list to be converted into JsonArray format. ${item.title} ${item.description}Now I want the same thing as a json string from ${values}:[{"title":"test1", "description":"desc1"},{"title":"test2", "description":"desc2"}]Any inputs would be helpful.
1141
Views
1
Like
5
Answers and Comments
Duplicate tags after move operation in AEM 6.3 publish rampai - Adobe Experience Manager
Hi All,We are facing this issue in AEM 6.3 GA.Steps to reproduce:Create a new tag under We-Retail (/etc/tags/we-retail).Move the tag to under Activity and Publish.Notice Test is duplicated in Publish.When moving a default tag into a container tag, I can see cq:movedTo and cq:backlinks being set on the nodes.But when I move a tag from within a container tag to outside, none of these properties are being set. The behaviour is not consistent. Can someone please help?
605
Views
0
Likes
2
Answers and Comments
Re: Error when creating an AEM project in Eclipse rampai - Adobe Experience Manager
For the 500 error fix refer this.https://stackoverflow.com/questions/38388879/setup-aem-in-eclipse-and-create-a-project I had to uncheck it and restart my server in debug mode.But even with the flag checked I could start the server in debug mode in around 4 tries. Gives me 500 a couple of times and then works all of a sudden. The same URL is very much accessible from the browser.Thanks,Ram
571
Views
0
Likes
0
Answers
Re: Page.listChildren() or data-sly-list=currentPage.listChildren to return sorted list rampai - Adobe Experience Manager
Hi mohani57395378​,Please check this as well.Best Way to Sort a List of Resources ? Regards,Ram
616
Views
0
Likes
0
Answers
Re: Populating aem pathfield with custom datasource rampai - Adobe Experience Manager
Hi bradc10998411​,Do you mean parsing a json to display as tree without actually creating the nodes in JCR?This was possible in Classic UI using CQ.Ext.tree.TreePanel but in Touch UI am yet to find anything similar.
1334
Views
0
Likes
1
Replies
Re: Adding a node (component) via Eclipse rampai - Adobe Experience Manager
Hi karloe75358780​,That can be because the AEM plugin is syncing the incorrect root folder.To confirm, right click on the ui.apps directory and click on Properties.Next in AEM, reset the path to your jcr_root directory as shown below:If it is the correct path, then navigate to the one where it shows the complete path and not where it only says src.Regards,Ram
469
Views
2
Likes
0
Answers
Re: sling model choice rampai - Adobe Experience Manager
Hi kusumam24182037​,The above links should clear your understanding.Adapting to a SlingHttpServletRequest gives you more options to manipulate resources in general.Moreover you can even access request params if you do so.Adapting to a resource can be done when you just need resource properties and there is not much to do with the request.Please check if my answer here helps.Regards,Ram
483
Views
0
Likes
0
Answers
Re: How to read a file or stream in Most Robust way using Java? rampai - Adobe Experience Manager
Hi karthickv99865601​,Can you please check if this is of any help since this query is not AEM specific?The suggestion is to leverage StringBuffer to split the stream and read it in chunks rather than one whole stream.https://stackoverflow.com/questions/17084657/most-robust-way-of-reading-a-file-or-stream-using-java-to-prevent-dos-attac… Regards,Ram
612
Views
0
Likes
0
Replies
Re: How to using Sling Models in Component Java Class rampai - Adobe Experience Manager
Hi pdg2491​,pdg2491I don't think you can include Sling models in components because Sling models are annotation driven POJOs deployed via OSGi bundle.As stated in the Sling documentation:The Java Use Provider can be used to load OSGi services, objects exported by bundles or backed by a Resource.Sling Models Use Provider works in a different manner.Refer this for more info.
638
Views
4
Likes
0
Answers
Re: Get the resource directory in AEM rampai - Adobe Experience Manager
If you want to manipulate the files using Java then you can use relative paths instead and take advantage of ClassLoader.e.g. to read a file test.json inside test-folder under src/main/resources and get its contents in Java code:InputStream is = getStreamFromResources("test-folder/test.json");printFileContents(is);If not inside a folder:InputStream is = getStreamFromResources("test.json");printFileContents(is);Methods:private static void printFileContents(InputStream inputStream) throws IOExcept...
930
Views
0
Likes
2
Replies
Is it possible to have parameterized function calls in AEM Use API? rampai - Adobe Experience Manager
I have seen parameters being passed to the Use API while invoking the same in HTL.e.g. ${params.newValue}Is it possible to pass parameters to the Use API function call instead of the API invocation itself?e.g. ${params.newValue @ value1='feike', value2='visser', seperator=' '} ${params.newValue @ value1='firstname', value2='lastname', seperator=' '}That way we can initialize the use api once and call functions with multiple params in code.
363
Views
0
Likes
1
Answers and Comments
Re: check if the page url contain specific text rampai - Adobe Experience Manager
Does not work in AEM 6.4 GA.You can try using a small use js file and pass it the test string value as shown below:Or go for Java.filepath.js:use(function () { var testStr= this.value; var retValue = currentPage.path.toLowerCase().contains(testStr.toLowerCase()); return { hasString: retValue };});HTL Code: ${path.hasString}I have converted both strings to lower case for case insensitive check.
472
Views
1
Like
0
Answers
Re: Get the resource directory in AEM rampai - Adobe Experience Manager
Hi shekhart64009905​,Do you want to read a file included in resources section?
930
Views
0
Likes
0
Replies
Re: How to custom logs(manual created logs) from application rampai - Adobe Experience Manager
Then goto /apps/system/config in CRXDE and double click on the factory config to check if it is the duplicate one. If yes, then delete it or move it to /tmp as mentioned by Lisa earlier.Once done, come back and cross check that you have only single entry in configMgr which is from the application codebase.No restart is needed ideally. The changes take place immediately since it is OSGi.
699
Views
0
Likes
1
Replies
Re: How to custom logs(manual created logs) from application rampai - Adobe Experience Manager
Then you might still be having some manually created duplicate logging config for the same.Please check if you can see multiple entries for the logger under Apache Sling Logging Logger Configuration in configMgr.You should be able to find the duplicate entries under /apps/system/config as explained above.The location under quickstart where these get stored is \crx-quickstart\launchpad\config\org\apache\sling\commons\log\LogManager\factory\config if you want to cross-check.
2722
Views
0
Likes
3
Replies
Re: How to custom logs(manual created logs) from application rampai - Adobe Experience Manager
Hi gavyas​,Can you please explain what do you mean when you say delete the logs? I believe you have already removed the config for the logger from sling log as mentioned in the question.Do you mean that you want to delete the old logs that were generated before you moved them to a project specific logger? If that is the case you can do say by opening the respective log file from /crx-quickstart/logs/ and deleting them.If not, can you post some screenshots with more details?
2722
Views
0
Likes
5
Replies
Re: @via annotation and adaptable attribute in model rampai - Adobe Experience Manager
Hi AdobeID24​,You can refer the links mentioned by Veena for more clarity.The difference is simple. In WCMUsePojo we used HTL Global Objects. Sling models is more annotation driven.Sling models ease the mapping of Sling/JCR resources into POJOs. This can be done using the resource or the request or both.1) When we use each?Consider you have a simple Node that stores details about an Image and you need to expose those details into HTL. You can define a Sling model and using @Inject define the pro...
2508
Views
2
Likes
0
Replies
What are the pros and cons of Adobe Managed Services? rampai - Adobe Experience Manager
How has the experience with Adobe Managed Services been so far for those who have migrated to the same?What are the reasons and in which use cases should one recommend this to clients?Is there anything different in terms of integration that has to be kept in mind while using AEM Managed Services?How easy is it to make the transition?
1284
Views
1
Like
2
Answers and Comments
Re: Clientlib || Minification Engine rampai - Adobe Experience Manager
Hi anupamm13392644​,GCC is primarily used for JS Minification and not CSS.As stated in the official documentation:The Closure Compiler is a tool for making JavaScript download and run faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript.
324
Views
1
Like
0
Answers
Re: AEM6.3 Touch ui autocomplete coral tags storing as String instead of String[] required for classic dialog rampai - Adobe Experience Manager
Hi srinivas channappa​,This works for me although I tested in AEM 6.4Parallel to your tag node create another node called tag-hint with same name as the original node followed by "@TypeHint" as shown below: As mentioned in the documentation:@TypeHintParameters with the @TypeHint suffix may be used to force storing the named parameter in a property with the given type. The value of the @TypeHint parameter, if applied to a parameter for a property, is the JCR property type name. If the @TypeHint ...
377
Views
0
Likes
0
Answers
Re: Deleting Packages (OOB) rampai - Adobe Experience Manager
Hi Maddy737,Why do you want to do this in the first place?The OOTB Packages have most of the code that is needed for proper functioning of AEM. How would you know which ones to keep and which ones to delete?If you are looking for a production ready instance without the sample code, then you can start AEM in nosamplecontent run mode.
372
Views
1
Like
0
Answers
Re: Touch ui Tool tip broken when field description is big rampai - Adobe Experience Manager
Hi srinivas channappa​,Can you try using the alert resourceType instead for big text? Default info variant should do the trick.Alert — Granite UI 1.0 documentation The difference will be that it will be fixed and displayed all the time in the authoring UI.Or put your dialog items inside accordion to give more room to the tooltip to expand.It is mostly the first item in the dialog that will be affected when there is big text. Rest will work fine.If you still want the text to be shown as a tooltip...
449
Views
0
Likes
0
Answers
Re: When will support for Felix SCR annotations be removed? rampai - Adobe Experience Manager
Hi andyshreve​,Although there is no mention of the support being removed totally anywhere, it has been stated in Apache Felix documentation that the SCR annotations are in maintenance mode. This means that no new features will be added and one can expect minimal to no support for issues.Also as mentioned here, SCR annotations still work in AEM 6.4 but recommendation is to update any existing files using SCR to use DS annotations in an incremental manner whenever you happen to touch the files. Th...
750
Views
0
Likes
0
Answers
Re: Acs Aem common package rampai - Adobe Experience Manager
As mentioned by Jaideep, you cannot install 3.x on AEM 6.0.For complete info on compatibility refer this link.Compatibility In your case the latest version would be 2.14.xMaven Repository: com.adobe.acs » acs-aem-commons » 2.14.0
538
Views
2
Likes
0
Replies
Re: How to pass parameters to Sling Modal from Sightly Component rampai - Adobe Experience Manager
Hi,Correction in this for the curly braces: @Model(adaptables = {Resource.class, SlingHttpServletRequest.class})
3118
Views
0
Likes
0
Answers
Re: AEM 6.4 org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.SlingException: Error during i rampai - Adobe Experience Manager
Try this. com.adobe.aem uber-jar 6.4.5 apis provided Ignore the below dependency if you have it already. org.apache.geronimo.specs geronimo-atinject_1.0_spec 1.0 provided Also please check in depfinder as well and try adding the dependency for org.apache.sling.commons.json explicitly in your POM file.
1315
Views
0
Likes
1
Replies
Re: AEM 6.4 org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.SlingException: Error during i rampai - Adobe Experience Manager
Hi,Did you update the uber jar version to 6.4.5 in your project Pom before deploying?Can you check in /system/console/depfinder what you are getting for org.apache.sling.commons.json.JSONException because the error states that the class cannot be found?Also you should try and replace org.apache.sling.commons.json API references in your project with Gson or Jackson since it is deprecated.
1315
Views
0
Likes
3
Replies