运行脚本过程中失败了

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

运行脚本过程中失败了

seiitsu
2016-06-03 10:01:05,075 ERROR Aborted run: Java exception calling TestRunner
net.grinder.scriptengine.jython.JythonScriptExecutionException: Java exception calling TestRunner
        result = request1.GET("https://www.baidu.com/")
        File "/root/.ngrinder_agent/file-store/admin/current/TestRunner.py", line 35, in __call__
java.net.SocketException: Network is unreachable
        at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.7.0_75]
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ~[na:1.7.0_75]
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ~[na:1.7.0_75]
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) ~[na:1.7.0_75]
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.7.0_75]
        at java.net.Socket.connect(Socket.java:579) ~[na:1.7.0_75]
        at java.net.Socket.connect(Socket.java:528) ~[na:1.7.0_75]
        at java.net.Socket.<init>(Socket.java:425) ~[na:1.7.0_75]
        at java.net.Socket.<init>(Socket.java:241) ~[na:1.7.0_75]
        at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:4082) ~[grinder-httpclient-3.9.1.jar:na]
2016-06-03 10:01:05,077 ERROR Aborted run: Java exception calling TestRunner
net.grinder.scriptengine.jython.JythonScriptExecutionException: Java exception calling TestRunner
        result = request1.GET("https://www.baidu.com/")
        File "/root/.ngrinder_agent/file-store/admin/current/TestRunner.py", line 35, in __call__
java.net.SocketException: Network is unreachable
        at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.7.0_75]
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ~[na:1.7.0_75]
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ~[na:1.7.0_75]
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) ~[na:1.7.0_75]
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.7.0_75]
        at java.net.Socket.connect(Socket.java:579) ~[na:1.7.0_75]
        at java.net.Socket.connect(Socket.java:528) ~[na:1.7.0_75]
        at java.net.Socket.<init>(Socket.java:425) ~[na:1.7.0_75]
        at java.net.Socket.<init>(Socket.java:241) ~[na:1.7.0_75]
        at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:4082) ~[grinder-httpclient-3.9.1.jar:na]
Reply | Threaded
Open this post in threaded view
|

Re: 运行脚本过程中失败了

neven7
java.net.SocketException: Network is unreachable


你在你的agent所在机器,ping www.baidu.com能ping通吗,看报错栈是网络连不上。