NullPointerException from /system/console when the 'felix-webconsole-locale' Cookie is missing | AEM 6.0, 6.1, 6.2

Issue

The Apache Felix OSGi Web Console (/system/console UI) is inaccessible and displays the following error in the logs:

31.03.2017 16:55:06.528 *ERROR* [qtp472136182-152] org.apache.felix.http.jetty Exception while processing request to /system/console/bundles (java.lang.NullPointerException)
java.lang.NullPointerException: null
at org.apache.felix.webconsole.internal.servlet.OsgiManager.ensureLocaleCookieSet(OsgiManager.java:502)
at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:561)
at org.apache.felix.webconsole.internal.servlet.OsgiManager$3.run(OsgiManager.java:465)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:461)
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 org.apache.sling.tracer.internal.LogTracer$TracerFilter.doFilter(LogTracer.java:367)
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 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.tracer.internal.LogTracer$TracerFilter.doFilter(LogTracer.java:367)
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)

Cause

Cause of the issue is a bug in Apache Felix: FELIX-5387

Resolution

  1. Open the Google Chrome browser.
  2. Access the OSGi Web Console - http://aem-host:port/system/console/bundles.
  3. In the browser, open Developer Tools (Ctrl-Shift-J or Settings > More Tools > Developer Tools).
  4. Select the Console tab.
  5. In the console prompt, enter the following JavaScript command:
document.cookie="felix-webconsole-locale=en"

 Adobe

Krijg sneller en gemakkelijker hulp

Nieuwe gebruiker?