Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

azus_Khan
Community profile azus_Khan Level 2
Job title here
Location here
5 BADGES
Level 2

Level 2

Learn more
Joined the community 24-09-2018 9:56:55 PM
Offline
Top badges earned by azus_Khan
Customize the badges you want to showcase on your profile
Error While Creating an Adobe Experience Manager 6.4 Project using Adobe Maven Archetype 13
Avatar
Ignite 3
Level 2
azus_Khan
Level 2

Likes

2 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Ignite 1
Give Back 3
Give Back
Boost 1
View profile
azus_Khan
- Adobe Experience Manager
This widget could not be displayed.
Re: NullPointerException in resolverFactory.getServiceResourceResolver(param)
Avatar
Ignite 3
Level 2
azus_Khan
Level 2

Likes

2 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Ignite 1
Give Back 3
Give Back
Boost 1
View profile
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.8K

Like

1

Replies

3
Re: NullPointerException in resolverFactory.getServiceResourceResolver(param)
Avatar
Ignite 3
Level 2
azus_Khan
Level 2

Likes

2 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Ignite 1
Give Back 3
Give Back
Boost 1
View profile
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.8K

Likes

0

Replies

2
Re: NullPointerException in resolverFactory.getServiceResourceResolver(param)
Avatar
Ignite 3
Level 2
azus_Khan
Level 2

Likes

2 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Ignite 1
Give Back 3
Give Back
Boost 1
View profile
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.8K

Likes

0

Replies

4
NullPointerException in resolverFactory.getServiceResourceResolver(param)
Avatar
Ignite 3
Level 2
azus_Khan
Level 2

Likes

2 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Ignite 1
Give Back 3
Give Back
Boost 1
View profile
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

2.2K

Like

1

Replies

11
Store data/ access data in/from AEM JCR in AEM 6.3
Avatar
Ignite 3
Level 2
azus_Khan
Level 2

Likes

2 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Ignite 1
Give Back 3
Give Back
Boost 1
View profile
azus_Khan
- Adobe Experience Manager
How to store data in AEM JCR and access it?

Views

256

Likes

0

Replies

1
Likes from