Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error when calling driver.quit for Mobile Web #210

Closed
sahajamit opened this issue Jan 10, 2014 · 1 comment
Closed

Getting Error when calling driver.quit for Mobile Web #210

sahajamit opened this issue Jan 10, 2014 · 1 comment

Comments

@sahajamit
Copy link

I am using C# as a client library and running Selendroid on Mac (Maverick) with Java 1.6 JDK. Everything is working fine but when I am calling driver.quit it shows lot of errors on the Terminal console where I have ran the selendroid. Here are the Error logs:

starting logcat:
/Users/Administrator/Desktop/Android/adt-bundle-mac-x86_64-20131030/sdk/platform-tools/adb -s 4df1ad83692c7fef logcat -v time
Jan 10, 2014 1:42:12 PM io.selendroid.android.impl.AbstractDevice isSelendroidRunning
INFO: using url: http://localhost:8080/wd/hub/status
Cleaning up unclosed ZipFile for archive /var/folders/90/_t_9nrk53yj9dv96400fpj_80000gn/T/selendroid-server6987043032016106330.apk
Jan 10, 2014 1:42:12 PM io.selendroid.android.impl.AbstractDevice isSelendroidRunning
INFO: got response status code: 200
Jan 10, 2014 1:42:12 PM io.selendroid.android.impl.AbstractDevice isSelendroidRunning
INFO: got response value: {"value":{"supportedApps":[],"build":{"browserName":"selendroid","version":"0.7.0"},"os":{"arch":"armeabi-v7a","version":"16","name":"Android"},"supportedDevices":[]},"status":0}
new Session URL: http://172.16.10.184:4444/wd/hub/session/d61ed545-3a1e-4de9-99f3-55af50f40937
Jan 10, 2014 1:42:14 PM io.selendroid.server.handler.GetCapabilities handle
INFO: get capabilities command
Jan 10, 2014 1:42:14 PM io.selendroid.server.handler.RequestRedirectHandler handle
INFO: forward request command: for session d61ed545-3a1e-4de9-99f3-55af50f40937
Jan 10, 2014 1:42:14 PM io.selendroid.server.handler.RequestRedirectHandler redirectRequest
INFO: POST redirect to: http://localhost:8080/wd/hub/session/d61ed545-3a1e-4de9-99f3-55af50f40937/url
Jan 10, 2014 1:42:14 PM io.selendroid.server.handler.RequestRedirectHandler redirectRequest
INFO: Payload? {"url":"http://google.com/"}
Jan 10, 2014 1:42:14 PM io.selendroid.server.handler.RequestRedirectHandler handle
INFO: return value from selendroid android server:
org.webbitserver.WebbitException: Connection reset by peer on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromException(WebbitException.java:36)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
at org.webbitserver.netty.NettyHttpChannelHandler$3.run(NettyHttpChannelHandler.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)
at sun.nio.ch.IOUtil.read(IOUtil.java:166)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:245)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:69)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:390)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
... 3 more
org.webbitserver.WebbitException: cannot send more responses than requests on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromException(WebbitException.java:36)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
at org.webbitserver.netty.NettyHttpChannelHandler$3.run(NettyHttpChannelHandler.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.IllegalStateException: cannot send more responses than requests
at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:101)
at org.jboss.netty.channel.Channels.write(Channels.java:712)
at org.jboss.netty.channel.Channels.write(Channels.java:679)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:246)
at org.webbitserver.netty.NettyHttpResponse.write(NettyHttpResponse.java:208)
at org.webbitserver.netty.NettyHttpResponse.flushResponse(NettyHttpResponse.java:196)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:169)
... 4 more
org.webbitserver.WebbitException: cannot send more responses than requests on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromException(WebbitException.java:36)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
at org.webbitserver.netty.NettyHttpChannelHandler$3.run(NettyHttpChannelHandler.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.IllegalStateException: cannot send more responses than requests
at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:101)
at org.jboss.netty.channel.Channels.write(Channels.java:712)
at org.jboss.netty.channel.Channels.write(Channels.java:679)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:246)
at org.webbitserver.netty.NettyHttpResponse.write(NettyHttpResponse.java:208)
at org.webbitserver.netty.NettyHttpResponse.flushResponse(NettyHttpResponse.java:196)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:169)
... 4 more
org.webbitserver.WebbitException: cannot send more responses than requests on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromException(WebbitException.java:36)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
at org.webbitserver.netty.NettyHttpChannelHandler$3.run(NettyHttpChannelHandler.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.IllegalStateException: cannot send more responses than requests
at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:101)
at org.jboss.netty.channel.Channels.write(Channels.java:712)
at org.jboss.netty.channel.Channels.write(Channels.java:679)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:246)
at org.webbitserver.netty.NettyHttpResponse.write(NettyHttpResponse.java:208)
at org.webbitserver.netty.NettyHttpResponse.flushResponse(NettyHttpResponse.java:196)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:169)
... 4 more
org.webbitserver.WebbitException: cannot send more responses than requests on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromException(WebbitException.java:36)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
at org.webbitserver.netty.NettyHttpChannelHandler$3.run(NettyHttpChannelHandler.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.IllegalStateException: cannot send more responses than requests
at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:101)
at org.jboss.netty.channel.Channels.write(Channels.java:712)
at org.jboss.netty.channel.Channels.write(Channels.java:679)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:246)
at org.webbitserver.netty.NettyHttpResponse.write(NettyHttpResponse.java:208)
at org.webbitserver.netty.NettyHttpResponse.flushResponse(NettyHttpResponse.java:196)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:169)
... 4 more
org.webbitserver.WebbitException: cannot send more responses than requests on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromException(WebbitException.java:36)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
at org.webbitserver.netty.NettyHttpChannelHandler$3.run(NettyHttpChannelHandler.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.IllegalStateException: cannot send more responses than requests
at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:101)
at org.jboss.netty.channel.Channels.write(Channels.java:712)
at org.jboss.netty.channel.Channels.write(Channels.java:679)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:246)
at org.webbitserver.netty.NettyHttpResponse.write(NettyHttpResponse.java:208)
at org.webbitserver.netty.NettyHttpResponse.flushResponse(NettyHttpResponse.java:196)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:169)
... 4 more
org.webbitserver.WebbitException: cannot send more responses than requests on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromException(WebbitException.java:36)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
at org.webbitserver.netty.NettyHttpChannelHandler$3.run(NettyHttpChannelHandler.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.IllegalStateException: cannot send more responses than requests
at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:101)
at org.jboss.netty.channel.Channels.write(Channels.java:712)
at org.jboss.netty.channel.Channels.write(Channels.java:679)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:246)
at org.webbitserver.netty.NettyHttpResponse.write(NettyHttpResponse.java:208)
at org.webbitserver.netty.NettyHttpResponse.flushResponse(NettyHttpResponse.java:196)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:169)
... 4 more
org.webbitserver.WebbitException: cannot send more responses than requests on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromException(WebbitException.java:36)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
at org.webbitserver.netty.NettyHttpChannelHandler$3.run(NettyHttpChannelHandler.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.IllegalStateException: cannot send more responses than requests
at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:101)
at org.jboss.netty.channel.Channels.write(Channels.java:712)
at org.jboss.netty.channel.Channels.write(Channels.java:679)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:246)
at org.webbitserver.netty.NettyHttpResponse.write(NettyHttpResponse.java:208)
at org.webbitserver.netty.NettyHttpResponse.flushResponse(NettyHttpResponse.java:196)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:169)
... 4 more
org.webbitserver.WebbitException: cannot send more responses than requests on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromException(WebbitException.java:36)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
at org.webbitserver.netty.NettyHttpChannelHandler$3.run(NettyHttpChannelHandler.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.IllegalStateException: cannot send more responses than requests
at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:101)
at org.jboss.netty.channel.Channels.write(Channels.java:712)
at org.jboss.netty.channel.Channels.write(Channels.java:679)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:246)
at org.webbitserver.netty.NettyHttpResponse.write(NettyHttpResponse.java:208)
at org.webbitserver.netty.NettyHttpResponse.flushResponse(NettyHttpResponse.java:196)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:169)
... 4 more
org.webbitserver.WebbitException: cannot send more responses than requests on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromException(WebbitException.java:36)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
at org.webbitserver.netty.NettyHttpChannelHandler$3.run(NettyHttpChannelHandler.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.IllegalStateException: cannot send more responses than requests
at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:101)
at org.jboss.netty.channel.Channels.write(Channels.java:712)
at org.jboss.netty.channel.Channels.write(Channels.java:679)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:246)
at org.webbitserver.netty.NettyHttpResponse.write(NettyHttpResponse.java:208)
at org.webbitserver.netty.NettyHttpResponse.flushResponse(NettyHttpResponse.java:196)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:169)
... 4 more
org.webbitserver.WebbitException: cannot send more responses than requests on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromException(WebbitException.java:36)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
at org.webbitserver.netty.NettyHttpChannelHandler$3.run(NettyHttpChannelHandler.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.IllegalStateException: cannot send more responses than requests
at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:101)
at org.jboss.netty.channel.Channels.write(Channels.java:712)
at org.jboss.netty.channel.Channels.write(Channels.java:679)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:246)
at org.webbitserver.netty.NettyHttpResponse.write(NettyHttpResponse.java:208)
at org.webbitserver.netty.NettyHttpResponse.flushResponse(NettyHttpResponse.java:196)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:169)
... 4 more
org.webbitserver.WebbitException: cannot send more responses than requests on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromException(WebbitException.java:36)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
at org.webbitserver.netty.NettyHttpChannelHandler$3.run(NettyHttpChannelHandler.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.IllegalStateException: cannot send more responses than requests
at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:101)
at org.jboss.netty.channel.Channels.write(Channels.java:712)
at org.jboss.netty.channel.Channels.write(Channels.java:679)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:246)
at org.webbitserver.netty.NettyHttpResponse.write(NettyHttpResponse.java:208)
at org.webbitserver.netty.NettyHttpResponse.flushResponse(NettyHttpResponse.java:196)
at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:169)
... 4 more
org.webbitserver.WebbitException: cannot send more responses than requests on [id: 0x6b687e7c, /172.16.16.222:55200 :> /172.16.10.184:4444]
at org.webbitserver.WebbitException.fromExcepti

DominikDary added a commit that referenced this issue Jan 10, 2014
…server.WebbitException: cannot send more responses than requests on.
@DominikDary
Copy link
Member

Please verify with latest version that you can find here:
http://ci.selendroid.io/job/selendroid/ws/selendroid-standalone/target/

Please also reopen if that is not solving your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants