My JAVAFX app doesn't work; Maven,JDBC,Jpackage - java

im trying to use jpackage but my .exe doesn't work. I havenĀ“t work with maven before and actually this is my first big proyect so...if you can help me I would be thankful That is the exception in the console, Im in W11. IDK what to do, i dont know where is my mistake...........................................................................................................jpackage, module-info
Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at javafx.fxml#18.0.2/javafx.fxml.FXMLLoader$MethodHandler.invoke(Unknown Source)
at javafx.fxml#18.0.2/javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.base#18.0.2/javafx.event.Event.fireEvent(Unknown Source)
at javafx.graphics#18.0.2/javafx.scene.Node.fireEvent(Unknown Source)
at javafx.controls#18.0.2/javafx.scene.control.Button.fire(Unknown Source)
at javafx.controls#18.0.2/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source) at javafx.controls#18.0.2/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.base#18.0.2/javafx.event.Event.fireEvent(Unknown Source)
at javafx.graphics#18.0.2/javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.graphics#18.0.2/javafx.scene.Scene.processMouseEvent(Unknown Source)
at javafx.graphics#18.0.2/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at javafx.graphics#18.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at javafx.graphics#18.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at javafx.graphics#18.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
at javafx.graphics#18.0.2/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
at javafx.graphics#18.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at javafx.graphics#18.0.2/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at javafx.graphics#18.0.2/com.sun.glass.ui.View.notifyMouse(Unknown Source)
at javafx.graphics#18.0.2/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics#18.0.2/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javafx.reflect.Trampoline.invoke(Unknown Source)
at jdk.internal.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at javafx.base#18.0.2/com.sun.javafx.reflect.MethodUtil.invoke(Unknown Source)
at javafx.fxml#18.0.2/com.sun.javafx.fxml.MethodHelper.invoke(Unknown Source)
... 47 more
Caused by: java.lang.NoClassDefFoundError: javax/naming/NamingException
at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:186)
at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
at com.example.inicio.Conexion.<init>(Conexion.java:13)
at com.example.inicio.HelloController.BTN_Llenar(HelloController.java:123)
... 57 more
Caused by: java.lang.ClassNotFoundException: javax.naming.NamingException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 62 more

Related

Received fatal alert: handshake_failure when running the program as EXE

My app uses JSOUP to connect to websites. I am using JSOUP 1.15. In the development environment of Intellij everything as working fine.
Then I generated an EXE file using jpackage.
Her I am getting this error.
The trace is as follows:
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)
at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)
at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
at java.base/sun.security.ssl.Alert$AlertConsumer.consume(Unknown Source)
at java.base/sun.security.ssl.TransportContext.dispatch(Unknown Source)
at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:859)
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:829)
at org.jsoup.helper.HttpConnection.execute(HttpConnection.java:366)
at org.jsoup.helper.HttpConnection.get(HttpConnection.java:353)
at com.workingelectrons.susannesrezeptbuch.GetRecipeFromChefkoch.<init>(GetRecipeFromChefkoch.java:32)
at com.workingelectrons.susannesrezeptbuch.ImportTab.startWebimport(ImportTab.java:192)
at com.workingelectrons.susannesrezeptbuch.ImportTab.lambda$startImport$3(ImportTab.java:120)
at javafx.base#19/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.base#19/javafx.event.Event.fireEvent(Unknown Source)
at javafx.graphics#19/javafx.scene.Node.fireEvent(Unknown Source)
at javafx.controls#19/javafx.scene.control.Button.fire(Unknown Source)
at javafx.controls#19/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
at javafx.controls#19/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
at javafx.base#19/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at javafx.base#19/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.base#19/javafx.event.Event.fireEvent(Unknown Source)
at javafx.graphics#19/javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.graphics#19/javafx.scene.Scene.processMouseEvent(Unknown Source)
at javafx.graphics#19/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at javafx.graphics#19/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at javafx.graphics#19/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at javafx.graphics#19/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
at javafx.graphics#19/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
at javafx.graphics#19/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at javafx.graphics#19/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at javafx.graphics#19/com.sun.glass.ui.View.notifyMouse(Unknown Source)
at javafx.graphics#19/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics#19/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
As Java I am using openjdk 17.0.2
Thank you

builded maven's jar dosn't work

I'm new in JavaFX. I created JavaFX project with maven and I add all dependecies. Project in idea works perfectly but when I build it in maven and try to open in target folder jar dosn't react and it gives following errors.
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at sample.JdbcPlainTest.createConnection(JdbcPlainTest.java:21)
at sample.JdbcPlainTest.ProductsSelectQuery(JdbcPlainTest.java:84)
at sample.Controller.initialize(Controller.java:84)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at sample.Main.start(Main.java:14)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$153
(Unknown Source)
at com.sun.javafx.application.LauncherImpl$$Lambda$51/881058039.run(Unkn
own Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$166(Unknown
Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$45/584634336.run(Unkn
own Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$164(Unknown Sourc
e)
at com.sun.javafx.application.PlatformImpl$$Lambda$47/474818150.run(Unkn
own Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(Unknown S
ource)
at com.sun.javafx.application.PlatformImpl$$Lambda$46/501263526.run(Unkn
own Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(Unknown Source)
at com.sun.glass.ui.win.WinApplication$$Lambda$37/96639997.run(Unknown S
ource)
at java.lang.Thread.run(Unknown Source) Exception in Application start method java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Unk
nown Source)
at com.sun.javafx.application.LauncherImpl.launchApplication(Unknown Sou
rce)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source) Caused by: java.lang.RuntimeException: Exception in Application start
method
at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown So
urce)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$147(
Unknown Source)
at com.sun.javafx.application.LauncherImpl$$Lambda$48/815033865.run(Unkn
own Source)
at java.lang.Thread.run(Unknown Source) Caused by: javafx.fxml.LoadException:
file:/D:/work%20proyeqt%20immidetely/JASMIN/Qassa%20-%20CopyWORKING/target/Qassa
Copy-1.0-SNAPSHOT.jar!/sample.fxml
at javafx.fxml.FXMLLoader.constructLoadException(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at sample.Main.start(Main.java:14)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$153
(Unknown Source)
at com.sun.javafx.application.LauncherImpl$$Lambda$51/881058039.run(Unkn
own Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$166(Unknown
Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$45/584634336.run(Unkn
own Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$164(Unknown Sourc
e)
at com.sun.javafx.application.PlatformImpl$$Lambda$47/474818150.run(Unkn
own Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(Unknown S
ource)
at com.sun.javafx.application.PlatformImpl$$Lambda$46/501263526.run(Unkn
own Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(Unknown Source)
at com.sun.glass.ui.win.WinApplication$$Lambda$37/96639997.run(Unknown S
ource)
... 1 more Caused by: java.lang.NullPointerException
at sample.JdbcPlainTest.ProductsSelectQuery(JdbcPlainTest.java:108)
at sample.Controller.initialize(Controller.java:84)
... 23 more Exception running application sample.Main
seems your dependencies are not included into your jar. Open your .jar and see whether all the dependency classes (like com.mysql.cj.jdbc.Driver) are inside. If they are not please see, Including dependencies in a jar with Maven.

NullPointerException on jnlp file execution on java 9

I am getting the exception below (endlessly) after run my jnlp app. I am using the java 9 early-access release. It was working on java-8 so I thought it is about the changes on 9. I could not find anything in java-9 issues. Any idea about the reason?
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.isSupported(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.isSupportedImpl(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.isSupported(Unknown Source)
at javafx.graphics/javafx.application.Platform.isSupported(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.input.PickResultChooser.processOffer(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.input.PickResultChooser.offer(Unknown Source)
at javafx.graphics/javafx.scene.Node.intersects(Unknown Source)
at javafx.graphics/javafx.scene.Node.doPickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.Node.access$500(Unknown Source)
at javafx.graphics/javafx.scene.Node$1.doPickNodeLocal(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.pickNodeLocalImpl(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.pickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.Node.pickNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent.doPickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.Parent.access$600(Unknown Source)
at javafx.graphics/javafx.scene.Parent$1.doPickNodeLocal(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.ParentHelper.pickNodeLocalImpl(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.pickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.Node.pickNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent$1.pickChildrenNode(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.ParentHelper.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.doPickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.access$600(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region$1.doPickNodeLocal(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.layout.RegionHelper.pickNodeLocalImpl(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.pickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.Node.pickNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent$1.pickChildrenNode(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.ParentHelper.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.doPickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.access$600(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region$1.doPickNodeLocal(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.layout.RegionHelper.pickNodeLocalImpl(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.pickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.Node.pickNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent$1.pickChildrenNode(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.ParentHelper.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.doPickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.access$600(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region$1.doPickNodeLocal(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.layout.RegionHelper.pickNodeLocalImpl(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.pickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.Node.pickNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent$1.pickChildrenNode(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.ParentHelper.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.doPickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.access$600(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region$1.doPickNodeLocal(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.layout.RegionHelper.pickNodeLocalImpl(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.pickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.Node.pickNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent$1.pickChildrenNode(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.ParentHelper.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.doPickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.access$600(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region$1.doPickNodeLocal(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.layout.RegionHelper.pickNodeLocalImpl(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.pickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.Node.pickNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent$1.pickChildrenNode(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.ParentHelper.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.doPickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.access$600(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region$1.doPickNodeLocal(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.layout.RegionHelper.pickNodeLocalImpl(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.pickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.Node.pickNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.Parent$1.pickChildrenNode(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.ParentHelper.pickChildrenNode(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.doPickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region.access$600(Unknown Source)
at javafx.graphics/javafx.scene.layout.Region$1.doPickNodeLocal(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.layout.RegionHelper.pickNodeLocalImpl(Unknown Source)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.pickNodeLocal(Unknown Source)
at javafx.graphics/javafx.scene.Node.pickNode(Unknown Source)
at javafx.graphics/javafx.scene.Scene$MouseHandler.pickNode(Unknown Source)
at javafx.graphics/javafx.scene.Scene$MouseHandler.access$1400(Unknown Source)
at javafx.graphics/javafx.scene.Scene.pick(Unknown Source)
at javafx.graphics/javafx.scene.Scene.access$6900(Unknown Source)
at javafx.graphics/javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.graphics/javafx.scene.Scene$MouseHandler.access$1300(Unknown Source)
at javafx.graphics/javafx.scene.Scene.processMouseEvent(Unknown Source)
at javafx.graphics/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at javafx.graphics/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at javafx.graphics/com.sun.glass.ui.View.notifyMouse(Unknown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Edit: It is working on java-8 perfectly. So problem should be about java-9 changes.

access denied ("java.lang.RuntimePermission" "loadLibrary.sunec"

getting below access permission exception while encrypting from a applet.
Please help .
Error :
security: Loading Root CA certificates from C:\Program Files\Java\jre7\lib\security\cacerts
basic: error: null.
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.security.jca.ProviderConfig$2.run(Unknown Source)
at sun.security.jca.ProviderConfig$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.jca.ProviderConfig.doLoadProvider(Unknown Source)
at sun.security.jca.ProviderConfig.getProvider(Unknown Source)
at sun.security.jca.ProviderList.getProvider(Unknown Source)
at sun.security.jca.ProviderList.getService(Unknown Source)
at sun.security.jca.GetInstance.getInstance(Unknown Source)
at java.security.Security.getImpl(Unknown Source)
at java.security.AlgorithmParameters.getInstance(Unknown Source)
at sun.security.x509.AlgorithmId.decodeParams(Unknown Source)
at sun.security.x509.AlgorithmId.<init>(Unknown Source)
at sun.security.x509.AlgorithmId.parse(Unknown Source)
at sun.security.x509.X509Key.parse(Unknown Source)
at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
at sun.security.x509.X509CertInfo.parse(Unknown Source)
at sun.security.x509.X509CertInfo.<init>(Unknown Source)
at sun.security.x509.X509CertImpl.parse(Unknown Source)
at sun.security.x509.X509CertImpl.<init>(Unknown Source)
at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at com.sun.deploy.security.RootCertStore$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.RootCertStore.loadCertStore(Unknown Source)
at com.sun.deploy.security.RootCertStore.load(Unknown Source)
at com.sun.deploy.security.RootCertStore.load(Unknown Source)
at com.sun.deploy.security.ImmutableCertStore.load(Unknown Source)
at com.sun.deploy.security.LazyRootStore.loadJREStores(Unknown Source)
at com.sun.deploy.security.LazyRootStore.getTrustAnchors(Unknown Source)
at com.sun.deploy.security.TrustDecider.getValidationState(Unknown Source)
at com.sun.deploy.security.TrustDecider.validateChain(Unknown Source)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByTrustDecider(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCodeSources(Unknown Source)
at com.sun.deploy.security.CPCallbackHandler$ParentCallback.strategy(Unknown Source)
at com.sun.deploy.security.CPCallbackHandler$ParentCallback.openClassPathElement(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "loadLibrary.sunec")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkLink(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.ec.SunEC$1.run(SunEC.java:60)
at sun.security.ec.SunEC$1.run(SunEC.java:58)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.ec.SunEC.<clinit>(SunEC.java:58)
... 69 more"
security: Reset deny session certificate store
basic: Removed progress listener: sun.plugin.util.ProgressMonitorAdapter#c4f9e6
security: Reset deny session certificate store

Java Failed To Validate Certificate Java 8 Update 25

I am trying to access different sites that use Java and every time I get the failed to validate certificate error. I have looked at the security setting for this version and there are only 2 options, high and very high. How do I get around this error? I shouldn't have to add every site I want to use to the exception list. Here is the error
java.io.EOFException
at java.io.DataInputStream.readInt(Unknown Source)
at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at com.sun.deploy.security.DeploySigningCertStore$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeploySigningCertStore.loadCertStore(Unknown Source)
at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
at com.sun.deploy.security.ImmutableCertStore.load(Unknown Source)
at com.sun.deploy.security.TrustDecider.ensureBasicStoresLoaded(Unknown Source)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByTrustDecider(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCodeSources(Unknown Source)
at com.sun.deploy.security.CPCallbackHandler$ParentCallback.strategy(Unknown Source)
at com.sun.deploy.security.CPCallbackHandler$ParentCallback.openClassPathElement(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$800(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Categories

Resources