Sidebar

java.lang.IllegalAccessError: class com.qvera.launcher.utils.QieLauncher$LogFormatter (in unnamed module @0x4e50df2e)

0 votes
26 views
asked Apr 25 by rich-c-2789 (16,810 points)
The full error:

2023-03-31 10:29:38 Commons Daemon procrun stderr initialized

Exception in thread "main" m.qvera.launcher.utils.QieLauncher main

INFO: End of the 'main' line.

java.lang.IllegalAccessError: class com.qvera.launcher.utils.QieLauncher$LogFormatter (in unnamed module @0x4e50df2e) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x4e50df2e

at com.qvera.launcher.utils.QieLauncher$LogFormatter.<init>(QieLauncher.java:680)

at com.qvera.launcher.utils.QieLauncher.main(QieLauncher.java:83)

1 Answer

0 votes

Fix:

When you see this error update the QieLauncher by running the latest installer.

Cause:

This is caused by using an old QIELauncher.  One prior to a code change on 2/12/2015 to obtain the system property for "line.separator" via internal sun.security package.

So, if the initial install of the QieLauncher was for an install of QIE version 2.0.40 build 4091 on 01/22/2015 or earlier  It would require the --add-opens=java.base/sun.security.action=ALL-UNNAMED to be added to the java options on the java tab of the Qie Service Manager. The best fix going forward is to update the QieLauncher.

answered Apr 25 by rich-c-2789 (16,810 points)
...