Laatst bijgewerkt op
3 mei 2021
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
- Open the Google Chrome browser.
- Access the OSGi Web Console - http://aem-host:port/system/console/bundles.
- In the browser, open Developer Tools (Ctrl-Shift-J or Settings > More Tools > Developer Tools).
- Select the Console tab.
- In the console prompt, enter the following JavaScript command:
document.cookie="felix-webconsole-locale=en"