Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
4.4.4
-
None
-
None
-
Apache Karaf 4.4.4 (binary release), Java 17, Alpine Linux x86-64.
Executed commands: feature install http webconsole
$ java -version
openjdk version "17.0.8" 2023-07-18
OpenJDK Runtime Environment (build 17.0.8+7-alpine-r2)
OpenJDK 64-Bit Server VM (build 17.0.8+7-alpine-r2, mixed mode, sharing)$ uname -a
Linux cinder 6.1.53-0-lts #1-Alpine SMP PREEMPT_DYNAMIC Wed, 13 Sep 2023 12:45:27 +0000 x86_64 GNU/Linux
Apache Karaf 4.4.4 (binary release), Java 17, Alpine Linux x86-64. Executed commands: feature install http webconsole $ java -version openjdk version "17.0.8" 2023-07-18 OpenJDK Runtime Environment (build 17.0.8+7-alpine-r2) OpenJDK 64-Bit Server VM (build 17.0.8+7-alpine-r2, mixed mode, sharing) $ uname -a Linux cinder 6.1.53-0-lts #1-Alpine SMP PREEMPT_DYNAMIC Wed, 13 Sep 2023 12:45:27 +0000 x86_64 GNU/Linux
Description
Starting with Karaf 4.4.4 several webconsole pages no longer work:
- Main > Features (blank content)
- Main > Gogo (blank content)
- Main > HTTP (blank content)
- Main > Instances (blank content)
- OSGi > Events (500 error, see below)
- Other felix webconsole components also give a 500 error
In the case of the 500 error the content is:
HTTP ERROR 500 java.lang.NullPointerException: Cannot invoke "javax.servlet.ServletConfig.getServletName()" because the return value of "org.apache.felix.webconsole.internal.WebConsolePluginAdapter.getServletConfig()" is null
URI: | /system/console/events |
---|---|
STATUS: | 500 |
MESSAGE: | java.lang.NullPointerException: Cannot invoke "javax.servlet.ServletConfig.getServletName()" because the return value of "org.apache.felix.webconsole.internal.WebConsolePluginAdapter.getServletConfig()" is null |
SERVLET: | org.apache.felix.webconsole.internal.servlet.KarafOsgiManager |
CAUSED BY: | java.lang.NullPointerException: Cannot invoke "javax.servlet.ServletConfig.getServletName()" because the return value of "org.apache.felix.webconsole.internal.WebConsolePluginAdapter.getServletConfig()" is null |
Attachments
Issue Links
- is duplicated by
-
KARAF-7769 Karaf webconsole plugins don't work since Felix WebConsole update
- Resolved