Exception java.lang.IllegalStateException

"Jesper Sahner" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
Hi!

I get the following exception:
Exception in thread "main" java.lang.IllegalStateException: Unable to 
retrieve script included by this response, since it was loaded by 
getResource(). Use getResponse() instead.
        at 
com.meterware.httpunit.ParsedHTML.getIncludedScript(ParsedHTML.java:356)
        at com.meterware.httpunit.ParsedHTML.getScript(ParsedHTML.java:339)
        at 
com.meterware.httpunit.ParsedHTML.interpretScriptElement(ParsedHTML.java:319)
        at com.meterware.httpunit.ParsedHTML.access$700(ParsedHTML.java:37)
        at 
com.meterware.httpunit.ParsedHTML$ScriptFactory.recordElement(ParsedHTML.java:489)
        at 
com.meterware.httpunit.ParsedHTML$2.processElement(ParsedHTML.java:706)
        at 
com.meterware.httpunit.NodeUtils$PreOrderTraversal.perform(NodeUtils.java:195)
        at 
com.meterware.httpunit.ParsedHTML.loadElements(ParsedHTML.java:722)
        at com.meterware.httpunit.ParsedHTML.getTables(ParsedHTML.java:185)
        at 
com.meterware.httpunit.WebResponse.getTables(WebResponse.java:555)

In my code I have:
HttpUnitOptions.setScriptingEnabled( false );
HttpUnitOptions.setExceptionsThrownOnScriptError( false );  // necessary?

How can I get rid of the exception?

Regards,
Jesper




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.