javafx webview doesn't work properly with google keywords tool
997259Mar 15 2013 — edited Mar 19 2013Hi,
I am trying to load https://adwords.google.com/o/KeywordTool in a javafx webview but I keep getting the following error:
There was an error with your operation. If you were trying to make a change, it may not have saved. Please refresh this page to try again. If the error continues, log out of your AdWords account, then log in again and return to this page.
The issue is not consistent - once every 10 tries it works. I read in another forum that the issue could be due to missing sunjce_provider.jar but it persists even if I add sunjce_provider.jar to the libraries in my Netbeans project.
The test is as follows:
public class TestBrowser extends Application {
@Override
public void start(Stage stage) throws IOException {
StackPane root = new StackPane();
WebView view = new WebView();
WebEngine engine = view.getEngine();
String uri = "https://adwords.google.com/o/KeywordTool";
engine.load(uri);
root.getChildren().add(view);
Scene scene = new Scene(root, 800, 600);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}
Am I doing something wrong ? or missing something ?
Thanks.