From: David M. G. <mic...@gm...> - 2014-02-03 15:16:05
|
Hi, I still get these errors. I use the latest snapshot from maven. Thanks, David On Mon, Feb 3, 2014 at 4:36 PM, <htm...@li... > wrote: > Send Htmlunit-user mailing list submissions to > htm...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > or, via email, send a message with subject or body 'help' to > htm...@li... > > You can reach the person managing the list at > htm...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Htmlunit-user digest..." > > > Today's Topics: > > 1. Re: htmlunit dies on page (David Michael Gang) > 2. Re: htmlunit dies on page (Ronald Brill) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 3 Feb 2014 16:34:16 +0200 > From: David Michael Gang <mic...@gm...> > Subject: Re: [Htmlunit-user] htmlunit dies on page > To: htm...@li... > Message-ID: > < > CAJ...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > Is the new version available through maven? > > Thanks, > David > > > > > > ------------------------------ > > > > Message: 2 > > Date: Mon, 03 Feb 2014 15:26:04 +0100 (CET) > > From: "Ronald Brill" <rb...@rb...> > > Subject: Re: [Htmlunit-user] htmlunit dies on page > > To: "htm...@li..." > > <htm...@li...> > > Message-ID: <100...@rb...> > > Content-Type: text/plain; charset="iso-8859-15" > > > > Hi David, > > > > at the moment we have some problems with our build environment. I had the > > same problems yesterday but this should be solved now. > > Please use the latest snapshot (did a refresh some minutes before) and > > make sure you also refresh the core-js thing. > > I guess this will solve your problem. > > > > RBRi > > > > On Mon, 3 Feb 2014 16:12:39 +0200 David Michael Gang wrote: > > > > > >Hi all, > > > > > >I run the following class > > > > > >package test; > > > > > >import java.io.IOException; > > >import java.net.MalformedURLException; > > > > > >import com.gargoylesoftware.htmlunit.BrowserVersion; > > >import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException; > > >import com.gargoylesoftware.htmlunit.ImmediateRefreshHandler; > > >import com.gargoylesoftware.htmlunit.Page; > > >import com.gargoylesoftware.htmlunit.WebClient; > > >import com.gargoylesoftware.htmlunit.html.HtmlPage; > > > > > >public class Redalcyc { > > > > > > public static void main(String[] args) throws > > >FailingHttpStatusCodeException, MalformedURLException, IOException { > > > // TODO Auto-generated method stub > > > String url = "http://www.redalyc.org/articulo.oa?id=35700204"; > > > WebClient client = new WebClient(BrowserVersion.FIREFOX_24); > > > client.setRefreshHandler(new ImmediateRefreshHandler()); > > > final HtmlPage page = client.getPage(url); > > > System.out.println(page.asText()); > > > } > > > > > >} > > > > > > > > >and get: > > >03/02/2014 16:07:11 > > com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl > > >notify > > >WARNING: Obsolete content type encountered: 'text/javascript'. > > >03/02/2014 16:07:20 > > com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl > > >notify > > >WARNING: Obsolete content type encountered: 'text/javascript'. > > >03/02/2014 16:07:21 > > com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl > > >notify > > >WARNING: Obsolete content type encountered: 'application/x-javascript'. > > >Exception in thread "main" ======= EXCEPTION START ======== > > >Exception class=[java.lang.NullPointerException] > > >com.gargoylesoftware.htmlunit.ScriptException > > > at > > > > > >com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:689) > > > at > > > >net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:620) > > > at > > > > > >net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513) > > > at > > > > > >com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:575) > > > at > > > > > >com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1067) > > > at > > > > > >com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:391) > > > at > > > > > >com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:272) > > > at > > > > > >com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:286) > > > at > > > > > >com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:702) > > > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown > > >Source) > > > at > > > > > >com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:662) > > > at > > > > > >org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1170) > > > at > > >org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1072) > > > at > > > > > >org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) > > > at > > > > > >org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:330) > > > at > > > > > >org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3126) > > > at > > > >org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2093) > > > at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:920) > > > at > > >org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) > > > at > > >org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) > > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > > at > > > > > >com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:926) > > > at > > >com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:245) > > > at > > > > > >com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:191) > > > at > > > |