From: Gian F. C. <gia...@to...> - 2004-10-26 10:41:03
|
Hi, I've written some code in a jsp page that calls some java code that uses HtmlUnit to connect to a web site. The java code works correctly when I use it in isolation as a java application. Problems arise with the above mentioned jsp page. When the code is running I get a long list with the same message: ---------------list begin--------------- ... [26-10-04 8:54:20:914 CEST] 5dc773e1 HttpMethodBas W org.apache.commons.httpclient.HttpMethodBase Response content length is not known [26-10-04 8:54:30:398 CEST] 5dc773e1 HttpMethodBas W org.apache.commons.httpclient.HttpMethodBase Response content length is not known ... ---------------list end--------------- This continues for a long time, until I get the message: ---------------list begin--------------- JVMDG315: JVM Requesting Heap dump file ...JVMDG318: Heap dump file written to E:\Program Files\IBM\WebSphere... JVMDG303: JVM Requesting Java core file JVMDG304: Java core file written to E:\Program Files\IBM\WebSphere\... JVMDG215: Dump Handler has Processed Outofmemory Signal -1. ---------------list end--------------- A printStackTrace() shows the following: ---------------list begin--------------- com.gargoylesoftware.htmlunit.ObjectInstantiationException: Exception when calling constructor [com.gargoylesoftware.htmlunit.html.HtmlFrame = (com.gargoylesoftware.htmlunit.html.HtmlPage,org.w3c.dom.Element)] com.gargoylesoftware.htmlunit.html.SimpleHtmlElementCreator.create (SimpleHtmlElementCreator.java:91) com.gargoylesoftware.htmlunit.html.HtmlPage.getHtmlElement (HtmlPage.java:464) = com.gargoylesoftware.htmlunit.html.HtmlElement.getHtmlElementsByTagNames (HtmlElement.java:721) com.gargoylesoftware.htmlunit.html.HtmlPage.initializeFramesIfNeeded (HtmlPage.java:1108) = com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:172)= com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:356) com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:276) = com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:169) = com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:120) ---------------list end--------------- Can anyone help me with this? Cheers, Gian Franco Casula |