hassio-addons / addon-unifi

UniFi Network Application - Home Assistant Community Add-ons
https://addons.community
MIT License
276 stars 137 forks source link

Illegal reflective access #410

Closed kongo09 closed 1 year ago

kongo09 commented 1 year ago

Problem/Motivation

On a fresh installation of 64bit HAOS 9.4 on a raspberry pi 3b without any integrations added, a fresh installation of the unifi add-on brings up a illegal reflective access warning on the first start.

Expected behavior

No warning

Actual behavior

Log shows an illegal reflective access:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
-----------------------------------------------------------
 Add-on: UniFi Network Application
 Manage your UniFi network using a web browser
-----------------------------------------------------------
 Add-on version: 2.5.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.4  (aarch64 / raspberrypi3-64)
 Home Assistant Core: 2022.12.8
 Home Assistant Supervisor: 2022.11.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[23:54:37] INFO: Configuring timezone (Europe/Berlin)...
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-unifi: starting
s6-rc: info: service init-unifi successfully started
s6-rc: info: service unifi: starting
s6-rc: info: service unifi successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[23:54:39] INFO: Now starting the UniFi Network Application...
[23:54:39] INFO: Note: No add-on specific logs beyond this point.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/usr/lib/unifi/lib/tomcat-embed-core-9.0.59.jar) to field java.io.ObjectStreamClass$Caches.localDescs
WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Steps to reproduce

Install add-on on fresh 64bit HAOS on raspberry pi 3b

Proposed changes

None

frenck commented 1 year ago

Thanks for the report @kongo09 👍

However, this is not an issue the add-on can do anything about. This is an upstream "issue".

I quoted "issue" as it is a warning that doesn't cause problems at this point (so not a real issue at this point).

I'm closing this GitHub issue on this end, as there is no action I can take from the add-on end.

../Frenck

kongo09 commented 1 year ago

Thanks for the explanation!

I brought it into context of the raspberry pi coming to a standstill with the fresh HAOS and this add-on installed after an hour or so. But maybe it has nothing to do with that.

Merry Christmas