I just truncated the openhab.log file and restarted OH4:
023-08-12 10:38:06.388 [INFO ] [org.openhab.core.Activator ] - Starting openHAB 4.0.1 (build Release Build)
2023-08-12 10:38:07.157 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Europe/Zurich'.
2023-08-12 10:38:07.172 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '47.25322666105025,8.608962893486025'.
2023-08-12 10:38:07.174 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'gsw_CH'.
2023-08-12 10:38:10.544 [ERROR] [core.io.rest.auth.internal.JwtHelper] - Error while initializing the JWT helper
java.lang.NullPointerException: Cannot invoke "String.length()" because "s" is null
at java.io.StringReader.<init>(StringReader.java:51) ~[?:?]
at org.jose4j.json.internal.json_simple.parser.JSONParser.parse(JSONParser.java:77) ~[?:?]
at org.jose4j.json.JsonUtil.parseJson(JsonUtil.java:62) ~[?:?]
at org.jose4j.jwk.JsonWebKey$Factory.newJwk(JsonWebKey.java:292) ~[?:?]
[...]
2023-08-12 10:38:10.609 [ERROR] [core.io.rest.auth.internal.JwtHelper] - bundle org.openhab.core.io.rest.auth:4.0.1 (176)[org.openhab.core.io.rest.auth.internal.JwtHelper(155)] : Error during instantiation of the implementation object
java.lang.reflect.InvocationTargetException: null
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
[...]
2023-08-12 10:38:10.665 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - bundle org.openhab.core.io.rest.auth:4.0.1 (176)[org.openhab.core.io.rest.auth.AuthFilter(154)] : Could not get service from ref {org.openhab.core.io.rest.auth.internal.JwtHelper}={service.id=301, service.bundleid=176, service.scope=bundle, osgi.ds.satisfying.condition.target=(osgi.condition.id=true), component.name=org.openhab.core.io.rest.auth.internal.JwtHelper, component.id=155}
2023-08-12 10:38:10.667 [ERROR] [openhab.core.io.rest.auth.AuthFilter] - bundle org.openhab.core.io.rest.auth:4.0.1 (176)[org.openhab.core.io.rest.auth.AuthFilter(154)] : Error during instantiation of the implementation object: Unable to get service for reference $000
2023-08-12 10:38:10.674 [WARN ] [rd.internal.AriesJaxrsServiceRuntime] - Extension from reference CachingServiceReference {
cachedProperties={osgi.jaxrs.application.select=(osgi.jaxrs.name=openhab), service.id=302, objectClass=[javax.ws.rs.container.ContainerRequestFilter, org.openhab.core.io.rest.auth.AuthFilter], osgi.jaxrs.name=null (cached), osgi.jaxrs.extension.select=null (cached), osgi.jaxrs.whiteboard.target=null (cached)}
serviceReference={javax.ws.rs.container.ContainerRequestFilter, org.openhab.core.io.rest.auth.AuthFilter}={service.id=302, service.bundleid=176, service.scope=bundle, osgi.jaxrs.application.select=(osgi.jaxrs.name=openhab), allowBasicAuth=true, osgi.ds.satisfying.condition.target=(osgi.condition.id=true), component.name=org.openhab.core.io.rest.auth.AuthFilter, service.config.label=API Security, component.id=154, service.config.factory=false, osgi.jaxrs.extension=true, service.config.category=system, service.config.description.uri=system:restauth, service.pid=[org.openhab.restauth, org.openhab.restauth]}
} can't be got
2023-08-12 10:38:10.678 [ERROR] [core.io.rest.auth.internal.JwtHelper] - Error while initializing the JWT helper
java.lang.NullPointerException: Cannot invoke "String.length()" because "s" is null
at java.io.StringReader.<init>(StringReader.java:51) ~[?:?]
at org.jose4j.json.internal.json_simple.parser.JSONParser.parse(JSONParser.java:77) ~[?:?]
[...]
2023-08-12 10:38:10.689 [ERROR] [core.io.rest.auth.internal.JwtHelper] - bundle org.openhab.core.io.rest.auth:4.0.1 (176)[org.openhab.core.io.rest.auth.internal.JwtHelper(155)] : Error during instantiation of the implementation object
java.lang.reflect.InvocationTargetException: null
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?]
[...]
2023-08-12 10:38:11.281 [WARN ] [.io.rest.auth.internal.TokenResource] - bundle org.openhab.core.io.rest.auth:4.0.1 (176)[org.openhab.core.io.rest.auth.internal.TokenResource(157)] : Could not get service from ref {org.openhab.core.io.rest.auth.internal.JwtHelper}={service.id=301, service.bundleid=176, service.scope=bundle, osgi.ds.satisfying.condition.target=(osgi.condition.id=true), component.name=org.openhab.core.io.rest.auth.internal.JwtHelper, component.id=155}
2023-08-12 10:38:11.282 [ERROR] [.io.rest.auth.internal.TokenResource] - bundle org.openhab.core.io.rest.auth:4.0.1 (176)[org.openhab.core.io.rest.auth.internal.TokenResource(157)] : Error during instantiation of the implementation object: Unable to get service for reference $001
2023-08-12 10:38:11.286 [WARN ] [rd.internal.AriesJaxrsServiceRuntime] - Resource from reference CachingServiceReference {
cachedProperties={osgi.jaxrs.application.select=(osgi.jaxrs.name=openhab), osgi.jaxrs.name=auth, osgi.jaxrs.extension.select=(osgi.jaxrs.media.type=application/json), osgi.jaxrs.whiteboard.target=null (cached)}
serviceReference={org.openhab.core.io.rest.RESTResource, org.openhab.core.io.rest.auth.internal.TokenResource}={osgi.jaxrs.resource=true, service.id=304, service.bundleid=176, service.scope=bundle, osgi.jaxrs.application.select=(osgi.jaxrs.name=openhab), osgi.jaxrs.name=auth, osgi.ds.satisfying.condition.target=(osgi.condition.id=true), osgi.jaxrs.extension.select=(osgi.jaxrs.media.type=application/json), component.name=org.openhab.core.io.rest.auth.internal.TokenResource, component.id=157}
} can't be got
2023-08-12 10:38:11.888 [WARN ] [org.openhab.core.net.NetUtil ] - Found multiple local interfaces - ignoring 192.168.178.130
2023-08-12 10:38:12.021 [WARN ] [.io.websocket.CommonWebSocketServlet] - bundle org.openhab.core.io.websocket:4.0.1 (186)[org.openhab.core.io.websocket.CommonWebSocketServlet(187)] : Could not get service from ref {javax.ws.rs.container.ContainerRequestFilter, org.openhab.core.io.rest.auth.AuthFilter}={service.id=302, service.bundleid=176, service.scope=bundle, osgi.jaxrs.application.select=(osgi.jaxrs.name=openhab), allowBasicAuth=true, osgi.ds.satisfying.condition.target=(osgi.condition.id=true), component.name=org.openhab.core.io.rest.auth.AuthFilter, service.config.label=API Security, component.id=154, service.config.factory=false, osgi.jaxrs.extension=true, service.config.category=system, service.config.description.uri=system:restauth, service.pid=[org.openhab.restauth, org.openhab.restauth]}
2023-08-12 10:38:12.022 [ERROR] [.io.websocket.CommonWebSocketServlet] - bundle org.openhab.core.io.websocket:4.0.1 (186)[org.openhab.core.io.websocket.CommonWebSocketServlet(187)] : Error during instantiation of the implementation object: Unable to get service for reference $000
2023-08-12 10:38:14.564 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'jdbc.persist'
[...]
Doesn’t look good, I think… But why / what happened? OH3 had been in use for over a year without any such problems, than I upgraded (both system to new stable and OH to 4.0.1).
Unfortunately, by searching for this error messages here in the forum I didn’t find much being helpful 