since ‎18-06-2020
‎13-08-2020
Hemalatha
Level 1
Re: Getting error while trying to refer OSGi Service or R...
Avatar

Hemalatha

Hemalatha
- Adobe Experience Manager
This is my class, which is similar as you mentioned, seems the issue is that the existing code base is still using SCR annotations. Even If I declare OSGi R7 dependencies and tried to use it in my class. It's not getting listed in the OSGi components list if I use OSGI annotation instead of SCR annotations. (If I rewrite using SCR annotation, it's showing as OSGi component but I am not able to refer any OSGi service inside that class) @component(property = { "pipeline.type=dmrewriter" }, service...

Views

145

Likes

0

Replies

0
Getting error while trying to refer OSGi Service or ResourceResolverFactory inside Custom Sling Rewriter class
Avatar

Hemalatha

Hemalatha
- Adobe Experience Manager
Hi all, I am writing a custom sling rewriter which implements Transformer Class. Usually, we will use it to parse the html and rewrite the needed tag elements. In my case, I have to get some dynamic values by accessing JCR and need to rewrite them as URLs. I am not able to Refer OSGi service or ResourceResolverFactory inside transformer class. It gives me either 500 error or null pointer exception. When I checked on samples in the web, they did a static rewrite. Could anyone help me to confirm w...

Views

187

Likes

0

Replies

4
Static Reference Rewriter is not working in AEM 6.4
Avatar

Hemalatha

Hemalatha
- Adobe Experience Manager
Hi Friends, I need to rewrite some of the /content/dam urls to Dynamic Media URLs. I am trying to achieve this functionality using ACS Commons - Static Reference Rewrite Transformer Factory and Apache Sling Rewriter configuration. Did the necessary configuration, but it's not working for me. Any suggestions. Any additional config or step that is needed apart from the above configurations. Pleas help. Regards,Hema

Views

328

Likes

0

Replies

2