Menu

#671 JavaScript Exceptions

closed
None
5
2012-10-21
2008-08-06
No

Hi,

I started using HTMLUNIT recently for a different purpose. I am trying to retrieve the content and inner links from the web page.
But, while processing some of the webpages, I am getting javascript exceptions like:

  • EcmaError: lineNumber=[297] column=[0] lineSource=[<no source="">]</no> name=[TypeError]

  • org.mozilla.javascript.EvaluatorException: missing ; before statement (script in http://www.uiaa.org/urbana/constituents/ from (62, 31) to (0, 0)#71)

  • com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function item in object [object]. (http://www.lis.uiuc.edu/export/system/modules/edu.uiuc.lis/_common/resources/emaillinks-compact.js#1)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:554)

Can anyone please help me out as it is urgent.
Here I am uploading the exceptions.

Thanks,
Prasu

Discussion

  • Prasanna Bale

    Prasanna Bale - 2008-08-06
     
  • Marc Guillemot

    Marc Guillemot - 2008-08-26

    Logged In: YES
    user_id=402164
    Originator: NO

    Before to report an issue with HtmlUnit's js support, please have a look in your "normal" browser. With Firefox, you would see following:

    Error: missing ; before statement
    Source file: http://www.uiaa.org/urbana/constituents/
    Line: 71, Column: 61
    Source code:
    If (request.getSession().getAttribute(ÒuserInfoBeanÓ) == null) {

     

Log in to post a comment.

MongoDB Logo MongoDB