shirone / nativedriver

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

ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7289): java.net.BindException: The address is already in use #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start the instrumentation by running this at the command line: 
adb shell am instrument 
{app_package_name}/com.google.android.testing.nativedriver.server.ServerInstrume
ntation
2. Then at the logcat, I see the exception output.
3.

What is the expected output? What do you see instead?
expected output:no exception
I see "java.net.BindException"

What version of the product are you using? On what operating system?

Sonyericsson X10i, Android 2.1-update1 system

Please provide any additional information below.

I am the first time to use NativeDriver to test our app, but I don't known how 
to use it . I see the url below, but when I follow it, I also have the problem, 
I can't start the service, I think maybe I had started it,but not 
close.Though,what's the command to stop the ServerInstrumentation? 
url:http://code.google.com/p/nativedriver/wiki/AndroidMakeAnAppTestable

Original issue reported on code.google.com by 360buyof...@gmail.com on 28 Jul 2011 at 9:59

GoogleCodeExporter commented 9 years ago
add infomation:the excption as below
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
: Exception when starting Jetty.
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
: java.net.BindException: The address is already in use
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at org.apache.harmony.luni.platform.OSNetworkSystem.socketBindImpl(Native 
Method)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at 
org.apache.harmony.luni.platform.OSNetworkSystem.bind(OSNetworkSystem.java:107)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at 
org.apache.harmony.luni.net.PlainSocketImpl.bind(PlainSocketImpl.java:184)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at java.net.ServerSocket.<init>(ServerSocket.java:136)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at java.net.ServerSocket.<init>(ServerSocket.java:105)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at 
org.mortbay.jetty.bio.SocketConnector.newServerSocket(SocketConnector.java:80)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:283)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:147)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at org.mortbay.jetty.Server.doStart(Server.java:235)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at 
com.google.android.testing.nativedriver.server.ServerInstrumentation.callServerS
tart(Unknown Source)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at 
com.google.android.testing.nativedriver.server.ServerInstrumentation.startJetty(
Unknown Source)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at 
com.google.android.testing.nativedriver.server.ServerInstrumentation.onStart(Unk
nown Source)
07-28 18:07:41.967: 
ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7650)
:     at 
android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447)

Original comment by 360buyof...@gmail.com on 28 Jul 2011 at 10:10

GoogleCodeExporter commented 9 years ago
You can check and stop running processes in [Settings]-[Applications]-[Running 
services].

Original comment by tka...@google.com on 28 Jul 2011 at 3:43