Do you run openHAB as a service? Perhaps it doesn’t properly execute the startup script. Does it work if you start openHAB from the command line instead? There is some config to prevent exceptions like these by “opening” the package. By default Java class internals are unavailable but some older code still depends on Java internals so that’s why these packages are opened.