Hi all, 
    I am beginner of jwebunit. When I execute my
parnter's code or examples, I got error as below. I
think it is the problem of my envirnoment. I am using
NetBean 3.6 and have already mounted jwebunit-1.2.jar
and all jar files in jwebunit-1.2\lib. Thanks for your
help.

Regards,
David 

.java.net.UnknownHostException: C|
        at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
        at java.net.Socket.connect(Socket.java:452)
        at java.net.Socket.connect(Socket.java:402)
        at
sun.net.NetworkClient.doConnect(NetworkClient.java:139)
        at
sun.net.NetworkClient.openServer(NetworkClient.java:118)
        at
sun.net.ftp.FtpClient.openServer(FtpClient.java:423)
        at
sun.net.ftp.FtpClient.<init>(FtpClient.java:692)
        at
sun.net.www.protocol.ftp.FtpURLConnection.connect

(FtpURLConnection.java:175)
        at
sun.net.www.protocol.ftp.FtpURLConnection.getInputStream

(FtpURLConnection.java:257)
        at
com.meterware.httpunit.HttpWebResponse.getInputStream

(HttpWebResponse.java:64)
        at
com.meterware.httpunit.HttpWebResponse.<init>

(HttpWebResponse.java:57)
        at
com.meterware.httpunit.WebConversation.newResponse

(WebConversation.java:61)
        at
com.meterware.httpunit.WebWindow.getResource(WebWindow.java:162)
        at
com.meterware.httpunit.ParsedHTML.getIncludedScript

(ParsedHTML.java:305)
        at
com.meterware.httpunit.HTMLPage$1.getIncludedScript

(HTMLPage.java:246)
        at
com.meterware.httpunit.parsing.NekoDOMParser.getIncludedScript

(NekoDOMParser.java:105)
        at
com.meterware.httpunit.parsing.ScriptFilter.startElement

(ScriptFilter.java:92)
        at
org.cyberneko.html.HTMLTagBalancer.callStartElement(Unknown
Source)
        at
org.cyberneko.html.HTMLTagBalancer.startElement(Unknown
Source)
        at
org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement

(Unknown Source)
        at
org.cyberneko.html.HTMLScanner$ContentScanner.scan(Unknown
Source)
        at
org.cyberneko.html.HTMLScanner.scanDocument(Unknown
Source)
        at
org.cyberneko.html.HTMLConfiguration.parse(Unknown
Source)
        at
org.cyberneko.html.HTMLConfiguration.parse(Unknown
Source)
        at
org.apache.xerces.parsers.XMLParser.parse(Unknown
Source)
        at
org.apache.xerces.parsers.DOMParser.parse(Unknown
Source)
        at
com.meterware.httpunit.parsing.NekoHTMLParser.parse

(NekoHTMLParser.java:41)
        at
com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:244)
        at
com.meterware.httpunit.WebResponse.getReceivedPage

(WebResponse.java:1014)
        at
com.meterware.httpunit.WebResponse$Scriptable.load

(WebResponse.java:611)
        at
com.meterware.httpunit.javascript.JavaScript$Window.initialize

(JavaScript.java:424)
        at
com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java:80)
        at
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associate

(JavaScriptEngineFactory.java:46)
        at
com.meterware.httpunit.RequestContext.runScripts

(RequestContext.java:44)
        at
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:119)
        at
com.meterware.httpunit.WebClient.getResponse(WebClient.java:112)
        at
net.sourceforge.jwebunit.HttpUnitDialog.<init>

(HttpUnitDialog.java:48)
        at
net.sourceforge.jwebunit.WebTester.beginAt(WebTester.java:55)
        at
net.sourceforge.jwebunit.WebTestCase.beginAt(WebTestCase.java:46)
        at
admin.jsptest.AdminTest.testAdmin(AdminTest.java:27)
        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke

(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke

(DelegatingMethodAccessorImpl.java:25)
        at
java.lang.reflect.Method.invoke(Method.java:324)
        at
junit.framework.TestCase.runTest(TestCase.java:154)
        at
junit.framework.TestCase.runBare(TestCase.java:127)
        at
junit.framework.TestResult$1.protect(TestResult.java:106)
        at
junit.framework.TestResult.runProtected(TestResult.java:124)
        at
junit.framework.TestResult.run(TestResult.java:109)
        at
junit.framework.TestCase.run(TestCase.java:118)
        at
junit.framework.TestSuite.runTest(TestSuite.java:208)
        at
junit.framework.TestSuite.run(TestSuite.java:203)
        at
junit.framework.TestSuite.runTest(TestSuite.java:208)
        at
junit.framework.TestSuite.run(TestSuite.java:203)
        at
junit.textui.TestRunner.doRun(TestRunner.java:116)
        at
junit.textui.TestRunner.doRun(TestRunner.java:109)
        at
junit.textui.TestRunner.run(TestRunner.java:72)
        at
admin.jsptest.AllTests.main(AllTests.java:28)
E
Time: 18.344
There was 1 error:
1)
testAdmin(admin.jsptest.AdminTest)java.lang.RuntimeException:


java.lang.RuntimeException:
java.net.UnknownHostException: C|
        at
com.meterware.httpunit.WebResponse.getReceivedPage

(WebResponse.java:1018)
        at
com.meterware.httpunit.WebResponse$Scriptable.load

(WebResponse.java:611)
        at
com.meterware.httpunit.javascript.JavaScript$Window.initialize

(JavaScript.java:424)
        at
com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java:80)
        at
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associate

(JavaScriptEngineFactory.java:46)
        at
com.meterware.httpunit.RequestContext.runScripts

(RequestContext.java:44)
        at
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:119)
        at
com.meterware.httpunit.WebClient.getResponse(WebClient.java:112)
        at
net.sourceforge.jwebunit.HttpUnitDialog.<init>

(HttpUnitDialog.java:48)
        at
net.sourceforge.jwebunit.WebTester.beginAt(WebTester.java:55)
        at
net.sourceforge.jwebunit.WebTestCase.beginAt(WebTestCase.java:46)
        at
admin.jsptest.AdminTest.testAdmin(AdminTest.java:27)
        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke

(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke

(DelegatingMethodAccessorImpl.java:25)
        at
admin.jsptest.AllTests.main(AllTests.java:28)

        at
net.sourceforge.jwebunit.HttpUnitDialog.<init>

(HttpUnitDialog.java:50)
        at
net.sourceforge.jwebunit.WebTester.beginAt(WebTester.java:55)
        at
net.sourceforge.jwebunit.WebTestCase.beginAt(WebTestCase.java:46)
        at
admin.jsptest.AdminTest.testAdmin(AdminTest.java:27)
        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke

(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke

(DelegatingMethodAccessorImpl.java:25)
        at
admin.jsptest.AllTests.main(AllTests.java:28)

FAILURES!!!
Tests run: 1,  Failures: 0,  Errors: 1



_________________________________________________________
必殺技、飲歌、小星星...
浪漫鈴聲  情心連繫
http://us.rd.yahoo.com/evt=22281/*http://ringtone.yahoo.com.hk/


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Jwebunit-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to