I am using JavaFX WebView in my application. Some sites are opening perfectly, but some sites are not.
We have our internal web application which is working in all the browsers like chrome, firefox.
While opening through WebView it's launching the login page, but when I click login our application itself throwing error like Some thing went wrong
, which is working fine on all other browsers.
Some SAP urls are also not working.
After searching through stackoverflow found some solutions, tried with below solutions but problem is not solved:
System.setProperty("jsse.enableSNIExtension", "false");
System.setProperty("-Djdk.tls.client.protocols", "TLSv1");
System.setProperty("javax.net.ssl.trustStore", "path to truststore");
Added below code to see the errors:
webEngine.getLoadWorker().stateProperty().addListener(new ChangeListener<State>() {
@Override
public void changed(ObservableValue<? extends State> ov, State oldState, State newState) {
System.out.println(webView.getEngine().getLoadWorker().exceptionProperty());
}
}
What is JavaFX WebView browser funtionality? Is it support for all kind of sites?