since ‎24-09-2018
‎10-12-2019
azus_Khan
Level 1
Error While Creating an Adobe Experience Manager 6.4 Project using Adobe Maven Archetype 13
Avatar

azus_Khan

azus_Khan
- Adobe Experience Manager
This widget could not be displayed.
Re: NullPointerException in resolverFactory.getServiceResourceResolver(param)
Avatar

azus_Khan

azus_Khan
- Adobe Experience Manager
My issue has been resolved when I used getSlingHelper() instead of creating a new object using new keyword in the Activate() ​method.AccessPageProp accessPageProp = getSlingScriptHelper().getService(AccessPagePropImpl.class);

Views

1.4K

Like

1

Replies

3
Re: NullPointerException in resolverFactory.getServiceResourceResolver(param)
Avatar

azus_Khan

azus_Khan
- Adobe Experience Manager
I used below import statement for @Reference import org.osgi.service.component.annotations.Reference;I used logger to print exception in my catch block like,catch (Exception e) {logger.info("Exception...." + e.toString());e.printStackTrace();}It prints the below message,com.myproject.core.AcccessPagePropImpl Exception....java.lang.NullPointerException

Views

1.4K

Likes

0

Replies

2
Re: NullPointerException in resolverFactory.getServiceResourceResolver(param)
Avatar

azus_Khan

azus_Khan
- Adobe Experience Manager
I used the Symbolic name of my OSGi Bundle in user mapper service, I gave all the required permissions to my system user and I followed this article too but still I am getting Null Pointer Exception.

Views

1.4K

Likes

0

Replies

4
NullPointerException in resolverFactory.getServiceResourceResolver(param)
Avatar

azus_Khan

azus_Khan
- Adobe Experience Manager
I am trying to access page properties using services in AEM 6.4I have created an interface,public interface AccessPageProp {public String getPageProp();}I have created a class that implements this interface,@Component(service = AcccessPagePropImpl.class, immediate = true)public class AcccessPagePropImpl implements AccessPageProp {Logger logger = LoggerFactory.getLogger(AcccessPagePropImpl.class);@Referenceprivate ResourceResolverFactory resolverFactory;@Overridepublic String getPageProp() {logge...

Views

1.8K

Like

1

Replies

11
Store data/ access data in/from AEM JCR in AEM 6.3
Avatar

azus_Khan

azus_Khan
- Adobe Experience Manager
How to store data in AEM JCR and access it?

Views

220

Likes

0

Replies

1
Likes from