This is a bug in WebView. I ran into something similar a while back, but
wasn't able to reproduce it, and didn't file a bug at that time. In
looking at it, there are two problems. First, the getLocalizedProperty
method should catch MissingResourceException and log a warning rather
than letting the exception propagate. Second, there are a few missing
property strings that should be added. I'll file both bugs.
If you notice other issues, please file bugs for them (if not already
filed).
Thanks.
-- Kevin
On 1/22/2022 8:10 PM, Scott Palmer wrote:
Is this an issue with WebView, my code, both?
Exception in thread "JavaFX Application Thread"
java.util.MissingResourceException: Can't find resource for bundle
java.util.PropertyResourceBundle, key blockedPluginByContentSecurityPolicyText
at java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:564)
at java.base/java.util.ResourceBundle.getString(ResourceBundle.java:521)
at
javafx.web/com.sun.webkit.LocalizedStrings.getLocalizedProperty(LocalizedStrings.java:45)
at javafx.web/com.sun.webkit.Timer.twkFireTimerEvent(Native Method)
at javafx.web/com.sun.webkit.Timer.fireTimerEvent(Timer.java:84)
at javafx.web/com.sun.webkit.Timer.notifyTick(Timer.java:65)
at
javafx.web/javafx.scene.web.WebEngine$PulseTimer.lambda$static$0(WebEngine.java:1205)
at
javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
at
java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at
javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
at
javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
I’m just testing out some WebView things in a new modular app on Java 17.0.1
(Azul’s Zulu build with JavaFX included). Noticing a lot of issues actually..
I’ll have to search the bug tracker to see if they are known.
Regards,
Scott