since ‎29-09-2013
‎20-11-2020
Runal_Trivedi
MVP
Re: Sling Servlet Service
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Maddy737 wrote... I have installed Junit and junit runner bundle is osgi container but still getting this error.Kindly make sure the imported bundles are in active state, also validate the API version for bundle that you have imported in OSGI and the one that you are referring in code is same.

Views

200

Likes

0

Replies

0
Re: AEM 6 SlingBindings object is null
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Its hard to say why binding is coming up null, but if its null there is one more way of getting the service reference://serviceClass is the class object for which you need reference from OSGI BundleContext bundleContext = FrameworkUtil.getBundle(serviceClass).getBundleContext(); ServiceReference osgiRef = bundleContext.getServiceReference(serviceClass.getName()); serviceRef = (T) bundleContext.getService(osgiRef);Imports are as follows:import org.osgi.framework.BundleContext; import org.osgi.fra...

Views

299

Likes

0

Replies

0
Re: Cache update rule
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
I would suggest avoid caching the content on dispatcher and rather store webservice response under your repository, somewhere under /content or /etc.For your component all the time reference point for data would be the repository location where you are storing the content and not webservice directly.Now 2nd part is to regularly update the data in repository. For this requirement you can either use a scheduler OSGI service or Custom Importer, responsibility of these importer/scheduler would be to...

Views

222

Likes

0

Replies

0
Re: Angularjs not binding on second component when there are two same components are on the page
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
You cannot have more than one ng-app declaration on the page. Angular will consider only one ng-app and will ignore the other one.Right way would be to include ng-app may be at body tag level so that there is always one ng-app per page. Under that app you can then include your multiple controllers.If still you want to go with your current approach of multiple ng-app you will need to bootstrap all ng-app present on the page. Below article will explain how it can be achieved.http://stackoverflow.c...

Views

877

Likes

0

Replies

0
Re: Multifield Values not sent correctly as params in an ajax call during dialog post
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Thanks

Views

255

Likes

0

Replies

0
Re: Multifield Values not sent correctly as params in an ajax call during dialog post
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Hi Ravi,You should convert your array into string and then pass it in your AJAX call, JSON.stringify is very handy function for that, below is how you should do it: var info = []; info[0] = 'val1'; info[1] = 'val2'; var jsonString = JSON.stringify(info); $.ajax({ type: "POST", url: "/bin/servlet/samplepost.html", data: {data : jsonString}, success: function(data){ } }); On the servlet side you can use JSON utilities to convert the stringified JSON back to String Array. I love Google's GSON utili...

Views

261

Likes

0

Replies

0
Re: Ampersand in CQ5 Assets
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
More over I would suggest while you create DAM folders, then put the name without space because unlike new page option new folder option in DAM doesn't replace space with character '-', as with spaces you might later run into issues.

Views

156

Likes

0

Replies

0
Re: SessionStore values from Java code
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
See following article which explains how you can create your custom store using server data:http://blogs.adobe.com/aemtutorials/2013/07/24/customize-the-client-context/Along with this you will need to have working knowledge of ccjsapi that Scott mentioned in his comment.- Runal

Views

232

Likes

0

Replies

0
Re: Replacing Request parameters to selectors in URL.
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Ratna Kumar wrote... Hi Scott, We want to remove the question mark with request parameters for Apache caching.So, Is there any way to send the parameters and values through URL without "?". Thanks in Advance,Ratna Kumar. If your only concern is to cache the page when it contains query params then you can configure this in dispatcher itself under /ignoreUrlParams , here you need to configure all valid params under /ignoreUrlParams for which page should be cached.You can know more /ignoreUrlParams...

Views

1.2K

Likes

0

Replies

0
Re: End User page content is sometimes reflecting with old andsome times with new data
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
try turning off caching on dispatcher for .html pages and see if you are still facing the same issue?If you are still facing it then next step is to check whether content is really in sync on both publisher?

Views

576

Likes

0

Replies

0
Re: 503 error - AuthenticationSupport service missing. Cannot authenticate request.
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Check whether your Apache Sling Authentication Service Bundle is active or not. You can check at localhost:4502/system/console/bundles, if it is not active then try to activate it manually.If the bundle is active and you still get the issue then other solution is to re-index your repository.Refer to following article for How to re-index AEM Repository: http://www.wemblog.com/2011/12/how-to-rebuild-index-in-cq5-wem.html

Views

753

Likes

0

Replies

0
Re: Remove parbase
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
If you are using sightly parsys component in your page component script (i.e. /libs/wcm/foundation/components/parsys) then the default cq generated div tags are auto suppressed you don't need to do anything extra. It is also mentioned on dev.day.com that sightly won't generate default tags - http://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html#resource. You can also verify the same by creating a page template configured on sightly based page component available OOTB at /libs/wcm/foundation...

Views

315

Likes

0

Replies

0
Re: Parse JSON in Sightly JS
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
If you are using JS-Use API then its ultimately JS at the end and parsing it is nothing but simply using the keys to get desired value out of JSON.If you are using Java-Use API then the one I have been using to map JSON to java objects is GSON. GSON is pretty handy in converting JSON to JAVA Object and vice-versa.- Runal

Views

890

Likes

0

Replies

0
Re: JS Errors with Explain Query
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Seeing the logs it seems one of the angular dependency is not met thats usually when $injector reports the issue.I would suggest in your system/console change the settings for HTMLClientLibraryManager and change debug to checked and gzip and minify to uncheck and try once again. This should help you identify which js is failing.localhost:4502/system/console/configMgr#com.day.cq.widget.impl.HtmlLibraryManagerImpl- Runal

Views

242

Likes

0

Replies

0
Re: Setup replication agents group
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
There is nothing OOTB available for selective replication.You will need to create a custom process step for this and you can pass the agent id dynamically using dialog participant step (have it as step before process step that does selective replication) so that author can select which agent to replicate to.Or if agent id's are mapped to some page path then you can configure the mapping under arguments options of process step, something like path1~agent1:path2~agent2 etcArguments options you get...

Views

235

Likes

0

Replies

0
Re: Sling resourceType , sling:resourceSuperType.
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
You can see an example of sling:resourceType and sling:resourceSuperType in geometrixx too.Simply open geometrixx contentpage component at - /apps/geometrixx/components/contentpagecontentpage component node declares sling:resourceSuperType as geometrixx/components/page and the script that it contains is content.jspWhat happens here is all the scripts are referred from geometrixx/components/page except content.jspcontent.jsp is referred from /apps/geometrixx/components/contentpageThats how sling:...

Views

2.2K

Likes

0

Replies

0
Re: Productio AEM Publisher Instances taking 4 hours to restart
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
then I would suggest take the repository backup and re-index the repository, I am not 100% sure but it might fix your TAR related issues, follow the article to re-index your Repo - http://www.wemblog.com/2011/12/how-to-rebuild-index-in-cq5-wem.html- Runal

Views

421

Likes

0

Replies

0
Re: Productio AEM Publisher Instances taking 4 hours to restart
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
and I assume your server administrators have been running TAR optimization regularly, the invalid reference errors in TAR should get removed once you have run TAR optimization. If you have not already tried, I would advice try it once and see if it reduces your start time or not.Go through following link to know more on performance tuning and optimization:http://docs.adobe.com/docs/en/cq/5-6-1/core/administering/persistence_managers.html#Optimizing%20Tar%20Fileshttps://helpx.adobe.com/experience...

Views

380

Likes

0

Replies

0
Re: custom, OOTB component
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
if you simply want to identify which all components are dragged on page, i.e. either the custom one or OOTB one, then you can use either of the below 2 options:append query parameter to the page ?debug=layout in author and reload the page, this will let you identify which all components are dragged on the page along with their repository path.else you can directly go to crxde lite and see which all components are present on the page.If you simply want to make sure you are dragging the right comp...

Views

180

Likes

0

Replies

0
Re: is there a way for an author to define a layout and save it as a template?
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
There is a feature called Scaffolding it does something similar, basically you can create a scaffold that defines the component structure for a template and use the same to create a page.Refer to following link for more details - http://docs.adobe.com/docs/en/cq/5-6-1/wcm/scaffolding.html

Views

341

Likes

0

Replies

0
Re: How to restore a version programmaticaly?
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
michaelvino86 wrote... for(Revision r :revisions){ currentId=r.getId(); break; } try{ pageManager.restore(currentPage.getPath(), currentId); }catch(Exception e) When you are using revision to restore, make sure it has content resource (pagecontent) attached with that revision id. Simply make following check before break and see if it solves the problem:Check to make -for(Revision r :revisions){ //selecting version only if it has content attached if(r.hasContent()){ log.info('selected version id ...

Views

335

Likes

0

Replies

0
Re: Uploading large files
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
You can use webdav to upload such files. More on webdav - http://docs.adobe.com/docs/en/cq/5-6-1/core/how_to/webdav_access.html.

Views

172

Likes

0

Replies

0
Re: Issue with suspending and resuming workflows
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
That's how it even works from UI workflow console, the step at which you suspend the workflow always gets completed, it won't suspend the current step and re-execute on resume.

Views

457

Likes

0

Replies

0
Re: Issue with suspending and resuming workflows
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
You will need to call workflowsession.complete to take the workflow to the next step. Resuming the workflow doesn't automatically take the workflow to next step. I know that's the weird behavior but that's how workflow resume option behaves.https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/workflow/WorkflowSession.html#complete%28com.day.cq.workflow.exec.WorkItem,%20com.day.cq.workflow.exec.Route%29Also there is a catch here, if somebody resumes the workflow from UI there it is stuck be...

Views

455

Likes

0

Replies

0
Re: Issue with suspending and resuming workflows
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
You can either of the following:complete and then suspend.Doing so, the workflow item will appear in the inbox of next step participants, though participants wont be able to act on the step as the workflow is in suspended state.session.complete(item, (session.getRoutes(item)).get(0)); session.suspendWorkflow(item.getWorkflow());resume and then complete.Doing so will only make workflow item appear in inbox of participants in next step, till the point you resume it; it won't appear in the inbox of...

Views

452

Likes

0

Replies

0
Re: Find all users who have access to a folder
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Jörg Hoh wrote... when you can do proper assumptions. For example that users can only be in groups A, B and C, and that a user is only in exactly one of these. Then you can take only 1 user of this group for checking and you know for sure, that the same result applies for all other users in the same group as well.I agree with what Jorg mentioned, just to rule out the case of assumptions, what you can do is, create dummy users for each of the group, lets call it dam_user_a, dam_user_b and dam_use...

Views

232

Likes

0

Replies

0
Re: Find all users who have access to a folder
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
You can use workflow launchers to automate the process. More on workflow launchers - http://docs.adobe.com/docs/en/cq/5-6-1/workflows/wf-using.html#Starting%20Workflows%20When%20Nodes%20ChangeCreate 3 groups asset_group_a, asset_group_b and asset_group_c.Trigger a workflow when the asset is uploaded.have a process step that checks where the asset is uploaded (i.e. under which folder A or B or C)likewise trigger the notification for that group.For mapping dam paths to user groups, you can use arg...

Views

231

Likes

0

Replies

0
Re: Sling:folder Vs nt:folder
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
I could find one very old reference forum post that more or less explains the difference between sling:folder and nt:folderhttps://forums.adobe.com/thread/984113#expires_in=86399986&token_type=bearer&access_token=eyJhbGciOiJSUzI1NiIsIng1dSI6Imltc19uYTEta2V5LTEuY2VyIn0.eyJpZCI6IjE0MzAzMzQ4NzYyMTMtMmQwNjViM2EtY2NmNi00MzIzLTk4MWEtNGViNTg3NDJjODBkIiwic2NvcGUiOiJBZG9iZUlELG9wZW5pZCxhZGRpdGlvbmFsX2luZm8uc2NyZWVuX25hbWUsdXBkYXRlX3Byb2ZpbGUuc2NyZWVuX25hbWUiLCJjIjoiUmRMdHh6YWJTejB3TlVrQU0xZTRqZz09Iiwic3R...

Views

525

Likes

0

Replies

0
Re: Sling:folder Vs nt:folder
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Defining the node of type sling:folder gives you additional capabilities of defining sling characteristics on that node like binding a script, defining a resource type etc that you don't get with nt:folder.One such example with OOTB components is form action component /libs/foundation/components/account/actions/accountrequest this node too is of type sling:folder there you can see sling:resourceType defined along with POST script which comes into play in form submit action.- Runal

Views

406

Likes

0

Replies

0
Re: Is it possible to convert AEM 6 form into PDF?
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
iText is another handy 3rd party API available to create PDF with whatever content you need.http://hmkcode.com/itext-html-to-pdf-using-java/http://www.rgagnon.com/javadetails/java-html-to-pdf-using-itext.html

Views

476

Likes

0

Replies

0