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

Spring dependencies are not registering in the AEM services

swapnan73983825
Level 2
Level 2

Hi All,

We are using spring related API's in our AEM bundle. The below services needs to be registered as Services in Felix console. As the springframework API's are not getting registered as Services, we are getting Service java.lang.NullPointerException: Specified service reference cannot be null.

 

 DelegatedExecutionOsgiBundleApplicationContext springContext

                = (DelegatedExecutionOsgiBundleApplicationContext) 
                ViewHelperUtil.getService(DelegatedExecutionOsgiBundleApplicationContext.class);

 

We also deployed all the spring bundles in felix console, but still we have issue. Does any one faced this issue. 

Thanks.

0 Replies