[prev in list] [next in list] [prev in thread] [next in thread] 

List:       htmlunit-user
Subject:    Re: [Htmlunit-user] can not load "cnn.com" page
From:       Ahmed Ashour <asashour () yahoo ! com>
Date:       2009-12-31 4:40:42
Message-ID: 660114.26612.qm () web112221 ! mail ! gq1 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

* You must subscribe to the list before posting.
* The error is because '.caller" is not defined, see already opened \
http://sourceforge.net/tracker/?func=detail&aid=2914283&group_id=47038&atid=448266

Yours,
Ahmed----
Blog: http://asashour.blogspot.com 

----- Forwarded Message ----



      


[Attachment #5 (text/html)]

<html><head><style type="text/css"><!-- DIV {margin:0px;} \
--></style></head><body><div style="font-family:times new roman, new york, times, \
serif;font-size:12pt"><DIV></DIV> <DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>* You must subscribe to the list before posting.</DIV>
<DIV>* The error is because '.caller" is not defined, see already opened <A \
href="http://sourceforge.net/tracker/?func=detail&amp;aid=2914283&amp;group_id=47038&a \
mp;atid=448266">http://sourceforge.net/tracker/?func=detail&amp;aid=2914283&amp;group_id=47038&amp;atid=448266</A><BR></DIV>
 <DIV>Yours,</DIV>
<DIV>Ahmed</DIV>----<BR>Blog: http://asashour.blogspot.com
<DIV>&nbsp;</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt"><FONT size=2 \
face=Tahoma>----- Forwarded Message ----<BR></FONT></DIV></DIV><!-- \
cg8.c4.mail.gq1.yahoo.com compressed/chunked Sat Dec 26 22:52:20 PST 2009 \
--></div><br>

      </body></html>
--0-1365917968-1262234442=:26612--



Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124]
	helo=mx.sourceforge.net)
	by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69)
	(envelope-from <bounces@nabble.com>) id 1NPfLK-00020J-Jp
	for htmlunit-user@lists.sourceforge.net; Tue, 29 Dec 2009 16:54:46 +0000
Received-SPF: pass (sfi-mx-4.v28.ch3.sourceforge.com: domain of nabble.com
	designates 216.139.236.158 as permitted sender)
	client-ip=216.139.236.158; envelope-from=bounces@nabble.com;
	helo=kuber.nabble.com; 
Received: from kuber.nabble.com ([216.139.236.158])
	by sfi-mx-4.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.69) id 1NPfLE-0008Ch-IN
	for htmlunit-user@lists.sourceforge.net; Tue, 29 Dec 2009 16:54:46 +0000
Received: from isper.nabble.com ([192.168.236.156])
	by kuber.nabble.com with esmtp (Exim 4.63)
	(envelope-from <bounces@nabble.com>) id 1NPfL8-0007To-Qa
	for htmlunit-user@lists.sourceforge.net; Tue, 29 Dec 2009 08:54:34 -0800
Message-ID: <26956958.post@talk.nabble.com>
Date: Tue, 29 Dec 2009 08:54:34 -0800 (PST)
From: gridman <eepgssh@gmail.com>
To: htmlunit-user@lists.sourceforge.net
Subject: [Htmlunit-user] can not load "cnn.com" page
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: eepgssh@gmail.com
X-Spam-Score: -1.5 (-)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
	See http://spamassassin.org/tag/ for more details.
	-1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for
	sender-domain
	-0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
	-0.0 SPF_PASS               SPF: sender matches SPF record
X-Headers-End: 1NPfLE-0008Ch-IN


Your help is very appreciated.

Source code :

@Test
public void homePage() throws Exception {
    final WebClient webClient = new WebClient();
    final HtmlPage page = webClient.getPage("http://cnn.com");
    assertTrue(page.getTitleText().startsWith("CNN.com"));
}

error message is:

======= EXCEPTION START ========
Exception
class=[net.sourceforge.htmlunit.corejs.javascript.JavaScriptException]
com.gargoylesoftware.htmlunit.ScriptException: Error: There is no public
constructor for CSIManager.
(http://i.cdn.turner.com/cnn/.element/js/2.0/csiManager.js#7)
	at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:526)
  at
net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:529)
	at
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:536)
  at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:424)
  at
com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:963)
  at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:359)
  at
com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:213)
	at
com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:238)
  at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:690)
  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:648)
  at
org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1132)
	at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1034)
	at
org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
	at
org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
	at
org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3058)
	at
org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1994)
	at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:907)
	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:892)
  at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350)
	at
com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
	at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
  at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
  at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:447)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:387)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:372)
	at TestHtmlUnit.homePage(TestHtmlUnit.java:10)
	at TestHtmlUnit.main(TestHtmlUnit.java:29)
Caused by: net.sourceforge.htmlunit.corejs.javascript.JavaScriptException:
Error: There is no public constructor for CSIManager.
(http://i.cdn.turner.com/cnn/.element/js/2.0/csiManager.js#7)
	at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1048)
  at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
  at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
  at
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:427)
  at
com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:263)
  at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3058)
  at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
  at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:415)
  at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:520)
                
	... 31 more
JavaScriptException value = Error: There is no public constructor for
CSIManager.
======= EXCEPTION END ========

Regards,


-- 
View this message in context: \
http://old.nabble.com/can-not-load-%22cnn.com%22-page-tp26956958p26956958.html Sent \
from the HtmlUnit - General mailing list archive at Nabble.com.



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 

_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic