Universalmediaserver: illegal reflective access by net.pms.service.ProcessManager

Created on 15 Oct 2020  路  4Comments  路  Source: UniversalMediaServer/UniversalMediaServer

The following error message appears at startup (using version 9.8.1 under linux):

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.pms.service.ProcessManager (file:/home/yoho/ums-9.8.1/ums.jar) to field java.lang.ProcessImpl.pid
WARNING: Please consider reporting this to the maintainers of net.pms.service.ProcessManager
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

Attached trace:
ums_dbg_2020-10-15-18-11.zip

confirmed

All 4 comments

I have noticed that happening too when I build the program. I don't think it causes any problems but it would be nice to not have that warning.

Yes it works fine but last warning suggests something will go wrong in future releases.

The only way to avoid the warning is to stick to Java 8. There's nothing wrong with the code other than that Oracle decided that using reflection to access unavailable information has become "illegal". They will probably block it completely in some future Java version, but for now they just whine about it.

The good thing about us now bundling Java is that we have control over the impact of this. For now this is a low priority thing - I would welcome a contributed fix but likely won't work on it myself - but if it isn't fixed by the time they remove that support then I'll fix it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sami32 picture Sami32  路  10Comments

SubJunk picture SubJunk  路  3Comments

SubJunk picture SubJunk  路  4Comments

SubJunk picture SubJunk  路  3Comments

drakulis picture drakulis  路  8Comments