nikolaymetchev
01/28/2018, 8:04 PMjava.security.AccessControlException: access denied ("java.util.PropertyPermission" "os.name" "read")
. We were able to mitigate some of them by wrapping certain calls in AccessController.doPrivileged(...)
, but that only pushed the problem furthe down and eventually we got NullPointerExceptions deep in our swing code java.lang.NullPointerException
at javax.swing.SizeRequirements.calculateAlignedPositions(Unknown Source)
at javax.swing.BoxLayout.layoutContainer(Unknown Source)
at java.awt.Container.layout(Unknown Source)
at java.awt.Container.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at java.awt.CardLayout.first(Unknown Source)
Once we reverted the code back to using SwingWorker all those security exceptions disappeared. We are using Oracle Java 8 build 162 with kotlin 1.2.21 and coroutines swing version 0.22. Please let me know if this is a known problem and if I should bother trying to create a bug report for Jetbrains. Many thanks.louiscad
01/28/2018, 9:57 PMnikolaymetchev
01/28/2018, 10:04 PM<security>
<all-permissions/>
</security>
elizarov
01/29/2018, 6:57 AMkotlinx.coroutines
library, then, please report it to http://github.com/kotlin/kotlinx.coroutines/issuesnikolaymetchev
01/29/2018, 9:06 AM