An error occurred while executing shell command: "android.bat list avds"

280 views
Skip to first unread message

BHAWANI PRASAD

unread,
May 7, 2014, 6:30:53 AM5/7/14
to selen...@googlegroups.com
Hi All,
I am getting error while starting the Selendroid server.
It gets struck while executing the " android.bat list avds" . Actually this command takes more time in windows OS to execute, around 60 secs, Thats why the Selendroid server fails to execute successfully and displays error message.....

Kindly help.....Any suggestions ...

Attached the error log ::

May 07, 2014 2:44:08 PM io.selendroid.SelendroidLauncher main
INFO: ################# Selendroid #################
May 07, 2014 2:44:08 PM io.selendroid.SelendroidLauncher lauchServer
INFO: Starting selendroid-server port 4444
May 07, 2014 2:44:08 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files (x86)\Android\android-sdk\build-tools\19.0.3\aapt.exe remove C:\Users\BHAWAN~1.PRA\
AppData\Local\Temp\android-driver4200702499317395405.apk META-INF/MANIFEST.MF
May 07, 2014 2:44:09 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files (x86)\Android\android-sdk\build-tools\19.0.3\aapt.exe remove C:\Users\BHAWAN~1.PRA\
AppData\Local\Temp\android-driver4200702499317395405.apk META-INF/CERT.RSA
May 07, 2014 2:44:09 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files (x86)\Android\android-sdk\build-tools\19.0.3\aapt.exe remove C:\Users\BHAWAN~1.PRA\
AppData\Local\Temp\android-driver4200702499317395405.apk META-INF/CERT.SF
May 07, 2014 2:44:09 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files (x86)\Android\android-sdk\build-tools\19.0.3\aapt.exe remove C:\Users\BHAWAN~1.PRA\
AppData\Local\Temp\android-driver4200702499317395405.apk META-INF/ANDROIDD.SF
May 07, 2014 2:44:09 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files (x86)\Android\android-sdk\build-tools\19.0.3\aapt.exe remove C:\Users\BHAWAN~1.PRA\
AppData\Local\Temp\android-driver4200702499317395405.apk META-INF/ANDROIDD.RSA
May 07, 2014 2:44:09 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files\Java\jdk1.8.0_05\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:
\Users\BHAWAN~1.PRA\AppData\Local\Temp\resigned-android-driver4200702499317395405.apk -storepass android -keystore C:\Users\b
hawani.prasad\.android\debug.keystore C:\Users\BHAWAN~1.PRA\AppData\Local\Temp\android-driver4200702499317395405.apk androidd
ebugkey
May 07, 2014 2:44:10 PM io.selendroid.builder.SelendroidServerBuilder signTestServer
INFO: App signing output: jar signed.

Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this
jar after the signer certificate's expiration date (2041-09-13) or after any future revocation date.

May 07, 2014 2:44:10 PM io.selendroid.builder.SelendroidServerBuilder signTestServer
INFO: The app has been signed: C:\Users\BHAWAN~1.PRA\AppData\Local\Temp\resigned-android-driver4200702499317395405.apk
May 07, 2014 2:44:12 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files (x86)\Android\android-sdk\tools\android.bat list avds
May 07, 2014 2:44:35 PM io.selendroid.SelendroidLauncher lauchServer
SEVERE: Error occurred while building server: io.selendroid.exceptions.ShellCommandException: An error occured while executin
g shell command: C:\Program Files (x86)\Android\android-sdk\tools\android.bat list avds
io.selendroid.exceptions.AndroidDeviceException: io.selendroid.exceptions.ShellCommandException: An error occured while execu
ting shell command: C:\Program Files (x86)\Android\android-sdk\tools\android.bat list avds
        at io.selendroid.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:113)
        at io.selendroid.server.model.DeviceStore.initAndroidDevices(DeviceStore.java:110)
        at io.selendroid.server.model.SelendroidStandaloneDriver.initAndroidDevices(SelendroidStandaloneDriver.java:162)
        at io.selendroid.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:83)
        at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:91)
        at io.selendroid.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:65)
        at io.selendroid.SelendroidLauncher.lauchServer(SelendroidLauncher.java:67)
        at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:114)
Caused by: io.selendroid.exceptions.ShellCommandException: An error occured while executing shell command: C:\Program Files (
x86)\Android\android-sdk\tools\android.bat list avds
        at io.selendroid.io.ShellCommand.exec(ShellCommand.java:53)
        at io.selendroid.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:111)
        ... 7 more
Caused by: io.selendroid.exceptions.ShellCommandException:
        ... 9 more
Exception in thread "main" java.lang.RuntimeException: io.selendroid.exceptions.AndroidDeviceException: io.selendroid.excepti
ons.ShellCommandException: An error occured while executing shell command: C:\Program Files (x86)\Android\android-sdk\tools\a
ndroid.bat list avds
        at com.google.common.base.Throwables.propagate(Throwables.java:160)
        at io.selendroid.SelendroidLauncher.lauchServer(SelendroidLauncher.java:77)
        at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:114)
Caused by: io.selendroid.exceptions.AndroidDeviceException: io.selendroid.exceptions.ShellCommandException: An error occured
while executing shell command: C:\Program Files (x86)\Android\android-sdk\tools\android.bat list avds
        at io.selendroid.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:113)
        at io.selendroid.server.model.DeviceStore.initAndroidDevices(DeviceStore.java:110)
        at io.selendroid.server.model.SelendroidStandaloneDriver.initAndroidDevices(SelendroidStandaloneDriver.java:162)
        at io.selendroid.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:83)
        at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:91)
        at io.selendroid.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:65)
        at io.selendroid.SelendroidLauncher.lauchServer(SelendroidLauncher.java:67)
        ... 1 more
Caused by: io.selendroid.exceptions.ShellCommandException: An error occured while executing shell command: C:\Program Files (
x86)\Android\android-sdk\tools\android.bat list avds
        at io.selendroid.io.ShellCommand.exec(ShellCommand.java:53)
        at io.selendroid.android.impl.DefaultAndroidEmulator.listAvailableAvds(DefaultAndroidEmulator.java:111)
        ... 7 more
Caused by: io.selendroid.exceptions.ShellCommandException:
        ... 9 more

Reply all
Reply to author
Forward
0 new messages