shirone / nativedriver

Automatically exported from code.google.com/p/nativedriver
Apache License 2.0
0 stars 0 forks source link

"Connection reset" error #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. do the things from the wiki for the android native driver
2. run one of the 3 java classes which are in the test project (doesn't matter 
which one)

What is the expected output? What do you see instead?
the expected output should be something on my screen but instead of this I see 
an error which begins with org.openqa.selenium.WebDriverException: 
java.net.SocketException": Connection reset"

What version of the product are you using? On what operating system?
I'm using Android Native Driver with android_server_2.16.apk on Mac OS X, 
version 10.6.8.

Please provide any additional information below.
my full stack trace is here:
org.openqa.selenium.WebDriverException: java.net.SocketException: Connection 
reset
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8', 
java.version: '1.6.0_29'
Driver info: driver.version: AndroidNativeDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:406)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:103)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:86)
    at com.google.android.testing.nativedriver.client.AndroidNativeDriver.<init>(Unknown Source)
    at com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder.build(Unknown Source)
    at com.google.android.testing.nativedriver.TextValueTest.getDriver(TextValueTest.java:49)
    at com.google.android.testing.nativedriver.TextValueTest.setUp(TextValueTest.java:38)
    at junit.framework.TestCase.runBare(TestCase.java:128)
    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:120)
    at junit.framework.TestSuite.runTest(TestSuite.java:230)
    at junit.framework.TestSuite.run(TestSuite.java:225)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:130)
    at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:127)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:233)
    at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:210)
    at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:271)
    at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:233)
    at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:209)
    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:292)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:126)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:483)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
    at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:272)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:252)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:389)
    ... 19 more

Original issue reported on code.google.com by r...@qype.com on 30 Jan 2012 at 11:34

GoogleCodeExporter commented 9 years ago
Just me too!

org.openqa.selenium.WebDriverException: java.net.SocketException: Connection 
reset
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', 
java.version: '1.7.0_03'
Driver info: driver.version: AndroidNativeDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:406)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:103)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:86)
    at com.google.android.testing.nativedriver.client.AndroidNativeDriver.<init>(Unknown Source)
    at com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder.build(Unknown Source)
    at com.google.android.testing.nativedriver.FindByTextTest.getDriver(FindByTextTest.java:57)
    at com.google.android.testing.nativedriver.FindByTextTest.setUp(FindByTextTest.java:46)
    at junit.framework.TestCase.runBare(TestCase.java:128)
    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:120)
    at junit.framework.TestSuite.runTest(TestSuite.java:230)
    at junit.framework.TestSuite.run(TestSuite.java:225)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:130)
    at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:127)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:233)
    at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:210)
    at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:271)
    at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:233)
    at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:209)
    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:292)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:126)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:483)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
    at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:272)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:252)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:389)
    ... 19 more

Original comment by HeartPan...@gmail.com on 20 Mar 2012 at 4:02

GoogleCodeExporter commented 9 years ago
Has anyone been able to resolve this?

Original comment by balajis...@gmail.com on 20 Apr 2012 at 6:54

GoogleCodeExporter commented 9 years ago
Anyone managed to solve this?

Original comment by richard....@gmail.com on 13 Oct 2012 at 6:59

GoogleCodeExporter commented 9 years ago
org.openqa.selenium.WebDriverException: java.net.SocketException: Connection 
reset
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8', 
java.version: '1.6.0_37'
Driver info: driver.version: AndroidNativeDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:406)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:103)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:86)
    at com.google.android.testing.nativedriver.client.AndroidNativeDriver.<init>(Unknown Source)
    at com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder.build(Unknown Source)
    at com.google.android.testing.nativedriver.ListViewTest.getDriver(ListViewTest.java:54)
    at com.google.android.testing.nativedriver.ListViewTest.setUp(ListViewTest.java:43)
    at junit.framework.TestCase.runBare(TestCase.java:128)
    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:120)
    at junit.framework.TestSuite.runTest(TestSuite.java:230)
    at junit.framework.TestSuite.run(TestSuite.java:225)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:130)
    at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:127)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:233)
    at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:210)
    at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:271)
    at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:233)
    at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:209)
    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:292)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:126)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:483)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
    at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:272)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:252)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:389)
    ... 19 more

Original comment by bor...@gmail.com on 13 Nov 2012 at 1:24

GoogleCodeExporter commented 9 years ago
In the Build Path settings in eclipse, I moved the server-standalone.jar file 
up in the order, and then it worked.

Original comment by bor...@gmail.com on 13 Nov 2012 at 2:56

GoogleCodeExporter commented 9 years ago
Please execute the following command

adb shell am instrument 
com.google.android.testing.nativedriver.simplelayouts/com.google.android.testing
.nativedriver.server.ServerInstrumentation
adb forward tcp:54129 tcp:54129

after navigating to "drive:\nativedriver\android\sample-aut\simplelayouts\src" 
at the command prompt.
It is working fine for me.

Original comment by bor...@gmail.com on 13 Nov 2012 at 3:12

GoogleCodeExporter commented 9 years ago
I am doing same thing and showing error -
org.openqa.selenium.WebDriverException: java.net.SocketException: Software 
caused connection abort: recv failed
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', 
java.version: '1.7.0_04'
Driver info: driver.version: AndroidNativeDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:406)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:103)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:86)
    at com.google.android.testing.nativedriver.client.AndroidNativeDriver.<init>(Unknown Source)
    at com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder.build(Unknown Source)
    at com.google.android.testing.nativedriver.ListViewTest.getDriver(ListViewTest.java:54)
    at com.google.android.testing.nativedriver.ListViewTest.setUp(ListViewTest.java:43)
    at junit.framework.TestCase.runBare(TestCase.java:128)
    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:120)
    at junit.framework.TestSuite.runTest(TestSuite.java:230)
    at junit.framework.TestSuite.run(TestSuite.java:225)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.net.SocketException: Software caused connection abort: recv 
failed
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:130)
    at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:127)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:233)
    at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:210)
    at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:271)
    at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:233)
    at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:209)
    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:292)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:126)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:483)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
    at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:272)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:252)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:389)
    ... 19 more

Original comment by mcamanis...@gmail.com on 1 Mar 2013 at 4:46

GoogleCodeExporter commented 9 years ago
@ #6, what's the mean of "moved the server-standalone.jar file up in the 
order". the .jar had been generated after we build the sample project with Ant, 
where should i move?

Original comment by phoebusl...@gmail.com on 30 Mar 2013 at 5:50

Attachments: