since ‎24-01-2017
‎19-08-2020
Parusharam
Level 2
Dispatcher Flushing Issue
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Problem:When I tried to invalidate dispatcher cache using acs aem commons dispatcher flush,"/content/" is getting removed from the path and appending the remaining path to the doc root and trying to flush the new path which is not a valid path. Example:When I flush "/content/abc/home.html" "/content"is getting trimmed and remaining URL is getting appended to the "/opt/aem/data" and the final url will be /opt/aem/data/abc/home.html which is invalid path in apache and the cache invalidation is fai...

Views

1.2K

Likes

0

Replies

1
Re: Access issue for etc in AEM 6.4
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Is it same with 6.2..? Same pages are loading without giving access in 6.2

Views

946

Likes

0

Replies

0
Re: Access issue for etc in AEM 6.4
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
I am trying to access the page in publisher environment without login into publisher.i.e everyone group.

Views

928

Likes

0

Replies

0
Access issue for etc in AEM 6.4
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Hi, Is it mandatory to give access to everyone group to the /etc/designs explicitly in AEM 6.4? We have compressed clientLibs under etc/designs and they are not loading in publishers without giving access to everyone group in /etc.

Views

1.7K

Likes

0

Replies

5
Re: Access issue through sling.scripting in aem 6.4
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Yeah, you are right. I am just rewriting this in sling model by using a service to get the valid system user.

Views

990

Likes

0

Replies

0
Re: Access issue through sling.scripting in aem 6.4
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
I gave the access to sling-scripting user then it is working fine.

Views

946

Likes

0

Replies

0
Re: Access issue through sling.scripting in aem 6.4
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Please find the bellow code. public class StartComponent extends AbstractComponent{ private static Logger log = LoggerFactory.getLogger(StartComponent.class); /** dialog property variable formid. */ @JcrProperty(name = "formid") private String formid; /** dialog property variable overridebsubmitText. */ @JcrProperty(name = "overrideanalyticssubmittext") private String overrideanalyticssubmittext; /** dialog property variable actionType. */ @JcrProperty(name = "actionType") private String actionT...

Views

953

Likes

0

Replies

0
Access issue through sling.scripting in aem 6.4
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Hi,We are migrating from AEM 6.2 to 6.4. In 6.2, we are able to access any node under /etc or /content using sling-scripting bundle. but the same is not working in aem 6.4.Steps to Reproduce the issue:1. Get the ResourceResolverFactory from "getSling().getService(ResourceResolverFactory.class)" 2. Get the resource resolver and system user from the above factory.3. Get the resource using "resourceResolver.getResource("/etc/cloudServices") ".and I have created the system user and gave the access t...

Views

2.3K

Likes

0

Replies

8
Re: AEM 6.4 sp2 cq:actions doesn't work with editannotatecopymovedeleteinsert
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
We are also facing the same issue. Raised a day care ticket with adobe. But I can suggest some workaround.In the edit config node, update edit instead of editannotate in the cq :actions. it will work.

Views

2.5K

Likes

0

Replies

0
Re: Maven build issue in AEM 6.4
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
It worked. In the jsp, variable is created with the name of "class" and whenever the variable is try to replace the value it is appending the unwanted text as "class"is a keyword. I changed the variable name from "class"to new name it started working fine.

Views

763

Like

1

Replies

0
Re: Maven build issue in AEM 6.4
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Yes, I am using maven archetype 13.

Views

746

Likes

0

Replies

0
Maven build issue in AEM 6.4
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Hi,We are in process of migrating AEM 6.2 to 6.4. While doing maven build or jenkins build, in existing jsp's some random text is getting appended like "org.apache.maven.project.MavenProject".example:actual code should be: and after the build the code is like : .Any pointers please..

Views

1.3K

Like

1

Replies

5
AEM mocks returns Null for @Reference objects
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
I am trying to mock Querybuilder and resolverfactory in my test class but I am getting null always.Main class:@ReferenceQueryBuilder builder;@ReferenceResourceResoloverFactory resolverFactory;Test class:@Mock QueryBuilder builder;setup(){ context.registerAdapter(ResourceResolver.class, QueryBuilder.class, builder); when(builder.createQuery(any(PredicateGroup.class), any(Session.class))).thenReturn(query);}Suggest me how to mock @Reference objects in mockito.Note: I am using Junit4 and mokito and...

Views

1.6K

Likes

0

Replies

3
Re: Unable to reference the osgi service into a servlet
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Yes, i removed it and it's working fine. But If I add Configuration-policy = require then My service is missing in /system/console/components.

Views

1.2K

Likes

0

Replies

0
Re: Unable to reference the osgi service into a servlet
Avatar

Parusharam

Parusharam
- Adobe Experience Manager

Views

1.3K

Likes

0

Replies

0
Re: Unable to reference the osgi service into a servlet
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Yes looks like issue with the service as it is showing unsatisfied (reference). When I tried to make it active it is going to disabled state.Do I need create ocd class for service as well..?

Views

1.3K

Likes

0

Replies

0
Re: Unable to reference the osgi service into a servlet
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Hi, Yes, I am using import org.osgi.service.component.annotations.Reference annotation only.

Views

1.2K

Likes

0

Replies

0
Unable to reference the osgi service into a servlet
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
I am trying to reference a service into a servlet,but when I use @Refernce annotation i am getting 404 not found exception even though my service is registered properly. here is my code snippetNote: I am using OSGI R6 Annotations in AEM 6.2Servlet:--------@Component(immediate = true, service = Servlet.class, property = { "sling.servlet.paths=/express/bin/getDynamicData", "sling.servlet.extensions=json", "sling.servlet.methods=GET" })@Designate(ocd=DynamicDataServlet.Configuration.class)public cl...

Views

3.6K

Like

1

Replies

12
How can I read the segmented data from third party DMP tool to display the AEM personalisation using context hub?
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Hi,I am trying to read the data to create the segments in aem from third party dmp tool (relay 42). Based on the segments, i want the display the dynamic content in aem using contexthub. How to achieve this use case. I also want to load the segments frequently. I am using AEM 6.2

Views

734

Like

1

Replies

1
Event is not working when I add EVENT_FILTER in sling event handling
Avatar

Parusharam

Parusharam
- Adobe Experience Manager
Hi,I am trying to trigger an event when any file is uploaded under particular path. I am using Event_filter to specify the path.Sample code snippet:@Properties({@Property(name=EventConstants.EVENT_TOPIC, value={SlingConstants.TOPIC_RESOURCE_ADDED,SlingConstants.TOPIC_RESOURCE_CHANGED})@Property(name=EventConstants.EVENT_FILTER, value="(Path=/content/fca-brands/na/jeep/product-data)")}) and the same is working when when I remove the EVENT_FILTER property.Can some one help me here.

Views

594

Likes

0

Replies

0