since ‎28-07-2017
‎10-12-2019
anands82757572
Level 2
Uncaught SyntaxError: Unexpected token < in JSON at position 4
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
I have an AEM 6.4 project that works fine in the local environment, but on deployment to the enterprise AEM 6.4 environment, I can no longer delete components in a page, or even move them, images used in components do not show up in dialog and so on.I see the following errors in the browser console:I am clueless as to why this could be happening.Any help on this would be great to move forward.

Views

697

Likes

0

Replies

2
Re: Image drag and drop in AEM 6.4 multifield component
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
Hi, I was trying out different options, results seem to be the same with sling:resourceType="granite/ui/components/coral/foundation/form/fileupload".

Views

(val/1000)?string[".0"]}K

Likes

0

Replies

0
Re: Image drag and drop in AEM 6.4 multifield component
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
No errors in console.This is my dialog: cq:EditConfig: If I change the granite/ui/components/foundation/form/fileupload to granite/ui/components/coral/foundation/form/pathfield,all works fine.Changing to cq/gui/components/authoring/dialog/fileupload results in the same behavior, no errors in the logs.

Views

(val/1000)?string[".0"]}K

Likes

0

Replies

0
Re: Image drag and drop in AEM 6.4 multifield component
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
The same config works in non-multifield and fails when ported to multifield.To answer gauravb10066713​, I already has cq:editConfig in place.Followed your suggestion to no avail.The dialog just does not close on save.

Views

(val/1000)?string[".0"]}K

Likes

0

Replies

0
Image drag and drop in AEM 6.4 multifield component
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
Hello,I am having trouble getting Image drag and drop working in a multi-field component in AEM 6.4. I am using sling:resourceType="granite/ui/components/foundation/form/fileupload". Based on suggestions I tried cq/gui/components/authoring/dialog/fileupload but neither of them work.In neither of the cases do I see an image file drag and drop option.Has anyone go this working successfully? Help will be appreciated,.

Views

(val/1000)?string[".0"]}K

Like

1

Replies

25
Re: Adding default filter to sidekick
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
Recently moved to AEM 6.3, still on static templates but using touch ui.

Views

531

Likes

0

Replies

1
Adding default filter to sidekick
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
I have a requirement where I want to display components only relevant to the template being used to create a page. This would mean that there will not be any dropdown that allows the user to toggle between component groups. Could you help me in understanding how this could be implemented?

Views

621

Like

1

Replies

3
Apache Sling JSP Script Handler setting for ‘Trim Spaces’
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
Hello All,I am on AEM 6.3.In an attempt to cleanup the html output I enabled the trimspaces option in Config Mgr on the publisher.This did not have any effect.I read through on the internet and saw the following : AEM 6.1 - How to Trim Whitespaces Tried the steps, no result.In the forum I did come across threads stating this is a bug and not supported.Is this correct? Has anyone for this working for them?Thank you.Anand

Views

363

Likes

0

Replies

1
AEM + Prometheus JMX Exporter
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
Does anyone have experience integrating AEM with Prometheus JMX Exporter (GitHub - prometheus/jmx_exporter: A process for exposing JMX Beans via HTTP for Prometheus consumption)?I am trying to setup a monitoring/alerting system in place for some of the key metrics such as replication queues etc.

Views

(val/1000)?string[".0"]}K

Like

1

Replies

6
Re: Understanding how OR Split in workflow works
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
Thank you Arun!!

Views

(val/1000)?string[".0"]}K

Likes

0

Replies

0
Understanding how OR Split in workflow works
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
I am having some troubles understanding how the OR split works.I have a workflow model that is supposed to do the following:1. Check if page is valid2. If yes 2a. Deactive page 2b. Move and Archive page, more like a soft delete of content 2c. Notification email3. If No 3a. Notification emailIn Step 1, I set the following key/value pair:item.getWorkflowData().getMetaDataMap().put("IsValid", String.valueOf(isValidContent));In the OR condition, I have this in the ecma script for Batch 1: function c...

Views

(val/1000)?string[".0"]}K

Like

1

Replies

4
Re: Get replication agent id in Replication EventHandler
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
Thank you All for the guidance. As a quick fix I am now listening to the org/apache/sling/event/notification/job/FINISHED topic and further filtering on the ACTIVATE and DEACTIVATE event types. In the long run will follow the suggestion from Jorg Hoh and add this logging as a workflow step.Thank you again!!!

Views

824

Likes

0

Replies

0
Re: Get replication agent id in Replication EventHandler
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
There are custom logs, and on an activate we do print the agent ids that is referred to in the agent filter.Another question, when I check system/console/events I see detailed information on the actual event, as an example:How can I read either the event.job.queuename or event.job.topic for ACTIVATE and job/FINISHED.This way I can probably extract the agent ids.4/25/2018, 1:55:54 PMorg/apache/sling/event/notification/job/START:time100045212replicationContentReplicationContentFacade{path='/var/re...

Views

702

Likes

0

Replies

0
Re: Get replication agent id in Replication EventHandler
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
Are you using custom process step for approval/ replicating wherein you explicitly set the replication agents via "setFilter" of ReplicationOptions for replicator.replicate?Yes, I have a custom process step. The agent names are fetched from the process args and then we set to ReplicationOptionsfor(String agentId : agentIdsArray) { try{ agentIdFilter = new AgentIdFilter(agentId); replicationOptions = new ReplicationOptions(); replicationOptions.setFilter(agentIdFilter);Can you elaborate on this, ...

Views

697

Likes

0

Replies

0
Re: Get replication agent id in Replication EventHandler
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
Thank you for looking into it.We have a event audit functionality that feeds an audit log for page create/update/delete, asset create/delete, workflow start, active, deactivate events that in turn is fed to ELK where we have custom ops dashboards.Specifically to the activate event, when a reviewer approves a workflow task, a series of activate events are triggered corresponding to the targeted replication agents.As an example, I have publish, flush, test_target as the 3 configured agents. I see ...

Views

699

Likes

0

Replies

0
Re: Get replication agent id in Replication EventHandler
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
Yes, my replication agents are active and content is getting replicated successfully.One thing I did notice in the logs further is that some how the event handler is getting invoked few seconds earlier than the actual replication happening.Is this a possibility?

Views

693

Likes

0

Replies

0
Re: Get replication agent id in Replication EventHandler
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
Hi,I did some more debugging and see that the AgentConfig object returned by replicationAction.getConfig() itself is null.So all methods for the AgentConfig return null.That is very strange and I am clueless

Views

707

Likes

0

Replies

0
Get replication agent id in Replication EventHandler
Avatar

anands82757572

anands82757572
- Adobe Experience Manager
Hello All,I am implementing a replication event handler and one of the requirements is to get the replication agent id for each of the activate processes.This is snippet of what I have written in the handleEvent methodReplicationAction replicationAction = ReplicationAction.fromEvent(event);if (null != replicationAction) {String path = replicationAction.getPath();String type = replicationAction.getType() != null ? replicationAction.getType().toString() : "";LOG.info("Replication triggered {} for ...

Views

(val/1000)?string[".0"]}K

Likes

0

Replies

15