Forum Xamarin Test Cloud (Read Only)

How to start a server for Calabash- Java in android? I am facing this issue.

Smita13Smita13 INMember

Console output:
ERROR sh.calaba.utils.DefaultAdbConnection (line:84) - Error occured:
java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at sh.calaba.utils.DefaultAdbConnection.runProcess(DefaultAdbConnection.java:76)
at sh.calaba.driver.utils.CalabashAdbCmdRunner.deleteSavedAppData(CalabashAdbCmdRunner.java:110)
at sh.calaba.driver.server.CalabashProxy.initializeCalabashServer(CalabashProxy.java:180)
at sh.calaba.driver.server.CalabashProxy.startCalabashServerAndStartConnector(CalabashProxy.java:216)
at sh.calaba.driver.server.CalabashProxy.initializeSessionForCapabilities(CalabashProxy.java:120)
at sh.calaba.driver.server.command.impl.NewSession.handle(NewSession.java:50)
at sh.calaba.driver.server.servlet.CalabashServlet.getResponse(CalabashServlet.java:139)
at sh.calaba.driver.server.servlet.CalabashServlet.process(CalabashServlet.java:76)
at sh.calaba.driver.server.servlet.CalabashServlet.doPost(CalabashServlet.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:533)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:920)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:856)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:352)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1066)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 34 more

  • 14:12:48 ERROR sh.calaba.driver.server.servlet.CalabashServlet (line:141) - Error occured: /session Error:
    sh.calaba.utils.AdbConnetionException: An IOException occurred when starting ADB.
    at sh.calaba.utils.DefaultAdbConnection.runProcess(DefaultAdbConnection.java:85)
    at sh.calaba.driver.utils.CalabashAdbCmdRunner.deleteSavedAppData(CalabashAdbCmdRunner.java:110)
    at sh.calaba.driver.server.CalabashProxy.initializeCalabashServer(CalabashProxy.java:180)
    at sh.calaba.driver.server.CalabashProxy.startCalabashServerAndStartConnector(CalabashProxy.java:216)
    at sh.calaba.driver.server.CalabashProxy.initializeSessionForCapabilities(CalabashProxy.java:120)
    at sh.calaba.driver.server.command.impl.NewSession.handle(NewSession.java:50)
    at sh.calaba.driver.server.servlet.CalabashServlet.getResponse(CalabashServlet.java:139)
    at sh.calaba.driver.server.servlet.CalabashServlet.process(CalabashServlet.java:76)
    at sh.calaba.driver.server.servlet.CalabashServlet.doPost(CalabashServlet.java:54)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:533)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:920)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:856)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
    at org.eclipse.jetty.server.Server.handle(Server.java:352)
    at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
    at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1066)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
    at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
    at java.lang.Thread.run(Thread.java:745)

  • 14:12:48 ERROR sh.calaba.driver.server.servlet.CalabashServlet (line:142) - POST:/session

Sign In or Register to comment.