I have a problem with Grails project.
I'm using HtmlUnit and I don't know why but Grails shows a Evaluator Exception.
The code is:
WebClient webClient = new WebClient();
webClient.getOptions().setJavaScriptEnabled(true);
webClient.getOptions().setActiveXNative(true);
webClient.getOptions().setAppletEnabled(true);
webClient.getOptions().setCssEnabled(false);
webClient.getOptions().setPopupBlockerEnabled(true);
webClient.getOptions().setRedirectEnabled(true);
webClient.getOptions().setThrowExceptionOnFailingStatusCode(false);
webClient.getOptions().setThrowExceptionOnScriptError(false);
webClient.getOptions().setUseInsecureSSL(true);
webClient.setAjaxController(new NicelyResynchronizingAjaxController());
HtmlPage currentPage = webClient.getPage(web);
System.out.println("TITULO" + currentPage.getTitleText());
and the error is:
URI: /SRL/busqueda/showProgress2
Class: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException
Message In order to define a property, getter public void com.gargoylesoftware.htmlunit.javascript.host.html.HTMLInsElement.setCite(java.lang.String) must have zero parameters or a single ScriptableObject parameter. (BusquedaService.groovy#48)
The line contains the error is: HtmlPage currentPage = webClient.getPage(web);
Any idea o suggestion? :(