I would like to ask if any one can help me in this case.
I have SocketException when i use HttpUnit 1.5.4 release and tomcat application server 5.0.28 with JDK 1.5
Initially my web application deployed on Tomcat application server version 5.0.28 based on JDK 1.5, so when i make submit request for any form it will be generates the flowing exception
java.lang.RuntimeException: URL 'javascript:onclick=processDocument('CMD_SAVE');' failed: org.mozilla.javascript.JavaScriptException: java.net.SocketException: Unexpected end of file from server at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.handleScriptException(JavaScript.java:189) at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.getURLContents(JavaScript.java:179) at com.meterware.httpunit.scripting.ScriptableDelegate.evaluateURL(ScriptableDelegate.java:73) at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:165) at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:125) at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:118) at com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:107) at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:245) at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:224) at com.meterware.httpunit.WebLink.click(WebLink.java:90) at net.sourceforge.jwebunit.HttpUnitDialog.submitRequest(HttpUnitDialog.java:592) at net.sourceforge.jwebunit.HttpUnitDialog.clickLink(HttpUnitDialog.java:772) at net.sourceforge.jwebunit.WebTester.clickLink(WebTester.java:955)
I send request using JavaScript method from client side to server side as below
function submitRequest(theUrl, target, submitFrameOrder){
I test this operation on Tomcat 5.0.18 with JDK 1.4 and it passed , therefore any one can help me in this case why dose not work if application server Tomcat version 5.0.28 ?
Thanks a lot for cooperation
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello every body:
I would like to ask if any one can help me in this case.
I have SocketException when i use HttpUnit 1.5.4 release and tomcat application server 5.0.28 with JDK 1.5
Initially my web application deployed on Tomcat application server version 5.0.28 based on JDK 1.5, so when i make submit request for any form it will be generates the flowing exception
java.lang.RuntimeException: URL 'javascript:onclick=processDocument('CMD_SAVE');' failed: org.mozilla.javascript.JavaScriptException: java.net.SocketException: Unexpected end of file from server at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.handleScriptException(JavaScript.java:189) at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.getURLContents(JavaScript.java:179) at com.meterware.httpunit.scripting.ScriptableDelegate.evaluateURL(ScriptableDelegate.java:73) at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:165) at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:125) at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:118) at com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:107) at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:245) at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:224) at com.meterware.httpunit.WebLink.click(WebLink.java:90) at net.sourceforge.jwebunit.HttpUnitDialog.submitRequest(HttpUnitDialog.java:592) at net.sourceforge.jwebunit.HttpUnitDialog.clickLink(HttpUnitDialog.java:772) at net.sourceforge.jwebunit.WebTester.clickLink(WebTester.java:955)
I send request using JavaScript method from client side to server side as below
function submitRequest(theUrl, target, submitFrameOrder){
top.frames[submitFrameOrder].document.forms[0].target = target;
top.frames[submitFrameOrder].document.forms[0].method = "post";
top.frames[submitFrameOrder].document.forms[0].action = theUrl;
top.frames[submitFrameOrder].document.forms[0].submit();
}
I test this operation on Tomcat 5.0.18 with JDK 1.4 and it passed , therefore any one can help me in this case why dose not work if application server Tomcat version 5.0.28 ?
Thanks a lot for cooperation