Expand my Community achievements bar.

SOLVED

6.2 AEm Crx de throwing null pointer exception

Avatar

Level 2

Hi All,

I have started with the AEM upgrade from 6.1 to 6.2 so when I placed a 6.2 jar parallel to quickstart folder of AEM 6.1 , after starting 6.2 I am getting below error.

21.04.2017 12:45:12.944 *ERROR* [sling-default-243] org.apache.sling.commons.scheduler.impl.QuartzScheduler No discovery available, therefore not executing job org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate@13640c4f with name Registered Service.605 and config SINGLE.
21.04.2017 12:45:17.943 *ERROR* [sling-default-243] org.apache.sling.commons.scheduler.impl.QuartzScheduler No discovery available, therefore not executing job org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate@7be150a8 with name Registered Service.602 and config SINGLE.
21.04.2017 12:45:17.943 *ERROR* [sling-default-243] org.apache.sling.commons.scheduler.impl.QuartzScheduler No discovery available, therefore not executing job org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate@13640c4f with name Registered Service.605 and config SINGLE.
21.04.2017 12:45:19.586 *ERROR* [qtp1420128218-2146] org.apache.felix.http.jetty Exception while processing request to /crx/de/index.jsp (java.lang.NullPointerException)
java.lang.NullPointerException: null
    at com.day.crx.delite.impl.servlets.IndexServlet.doService(IndexServlet.java:92)
    at com.day.crx.delite.impl.AbstractServlet.service(AbstractServlet.java:52)
    at com.day.crx.delite.impl.MainServlet.doService(MainServlet.java:129)
    at com.day.crx.delite.impl.MainServlet.service(MainServlet.java:107)
    at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:85)
    at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:79)
    at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:308)
    at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
    at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
    at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:89)
    at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
    at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
    at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:290)
    at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
    at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
    at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:129)
    at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
    at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
    at org.apache.sling.featureflags.impl.FeatureManager.doFilter(FeatureManager.java:116)
    at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
    at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
    at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75)
    at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
    at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
    at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:124)
    at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at or

 

can you please help me on this?

1 Accepted Solution

Avatar

Correct answer by
Level 2

MC Stuff wrote...

Hi Rohit,

If system is up and can access crx explorer then you can set reinde property to false. Or can use tools like [A] depending on aem version.  We personally used oak console and removed :data folder.  If steps are not clear to reindex please engage with official support team.

[A]   https://adobe-consulting-services.github.io/acs-aem-commons/features/deprecated/oak-index-manager/in...

Thanks,

 

Hi MC,

Yesterday itself I tried rebuilding the indexes but indexing was failing due to the below error

22.04.2017 11:37:37.158 *ERROR* [FelixDispatchQueue] com.day.cq.wcm.cq-wcm-core FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.commons.scheduler.impl.SchedulerServiceFactory (297)))
org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.commons.scheduler.impl.SchedulerServiceFactory (297))

 

But now issue is resolved after I restarted SchedulerServiceFactory bundle from felix console.

View solution in original post

6 Replies

Avatar

Level 9

Hi Rohit,

CRXDE Lite console missing grant read permission for the anonymous user to its own profile. For example if the user profile for the anonymous user is located at /home/users/a/ampPLIrxeWv-KeWCP1uv, then the user has to have read access to this path for the console to load properly.

Thanks,

Avatar

Level 2

HI MC,

Thanks for your reply, I tried giving read access to anonymus user for the /home/a folder from user admin screen and I am still getting the same error. Anything else I need to do for this?

Also I can see repeated entries for the below error in error.log:-

22.04.2017 11:19:26.915 *ERROR* [sling-default-14] org.apache.sling.commons.scheduler.impl.QuartzScheduler No discovery available, therefore not executing job org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate@1a97b9d4 with name Registered Service.602 and config SINGLE.
22.04.2017 11:19:26.931 *ERROR* [sling-default-15] org.apache.sling.commons.scheduler.impl.QuartzScheduler No discovery available, therefore not executing job org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate@d452813 with name Registered Service.605 and config SINGLE.

Regards

Rohit

Avatar

Level 9

Hi Rohit,

Sounds like an index issue. Can you  reindex and verify.

Thanks,

Avatar

Level 2

MC Stuff wrote...

Hi Rohit,

Sounds like an index issue. Can you  reindex and verify.

Thanks,

 

tried deleting crx-quickstart\repository\index folder so that it will reindex on restart but that didn't help. Any other way of doing reindexing in 6.2?

Also, looks like due to below error indexing is failing:-

22.04.2017 11:37:37.158 *ERROR* [FelixDispatchQueue] com.day.cq.wcm.cq-wcm-core FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.commons.scheduler.impl.SchedulerServiceFactory (297)))
org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.commons.scheduler.impl.SchedulerServiceFactory (297))
    at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:380)
    at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
    at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:344)
    at org.apache.felix.framework.Felix.getService(Felix.java:3699)

Avatar

Level 9

Hi Rohit,

If system is up and can access crx explorer then you can set reinde property to false. Or can use tools like [A] depending on aem version.  We personally used oak console and removed :data folder.  If steps are not clear to reindex please engage with official support team.

[A]   https://adobe-consulting-services.github.io/acs-aem-commons/features/deprecated/oak-index-manager/in...

Thanks,

Avatar

Correct answer by
Level 2

MC Stuff wrote...

Hi Rohit,

If system is up and can access crx explorer then you can set reinde property to false. Or can use tools like [A] depending on aem version.  We personally used oak console and removed :data folder.  If steps are not clear to reindex please engage with official support team.

[A]   https://adobe-consulting-services.github.io/acs-aem-commons/features/deprecated/oak-index-manager/in...

Thanks,

 

Hi MC,

Yesterday itself I tried rebuilding the indexes but indexing was failing due to the below error

22.04.2017 11:37:37.158 *ERROR* [FelixDispatchQueue] com.day.cq.wcm.cq-wcm-core FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.commons.scheduler.impl.SchedulerServiceFactory (297)))
org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.commons.scheduler.impl.SchedulerServiceFactory (297))

 

But now issue is resolved after I restarted SchedulerServiceFactory bundle from felix console.