I am not able to start selendroid server with apk,, please help on it.I have already set java home

100 views
Skip to first unread message

Abhinav Sharma

unread,
Sep 29, 2016, 7:23:42 AM9/29/16
to selendroid
Sep 29, 2016 4:41:15 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Program Files (x86)\Android\android-sdk\buil
d-tools\24.0.2\aapt.exe remove C:\Users\Selendroid\Guru99App.apk META-INF/CERT.R
SA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:143)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addT
oAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<ini
t>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(Sel
endroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Sep 29, 2016 4:41:15 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Program Files (x86)\Android\android-sdk\build-
tools\24.0.2\aapt.exe remove C:\Users\Selendroid\Guru99App.apk META-INF/CERT.SF
Sep 29, 2016 4:41:15 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Program Files (x86)\Android\android-sdk\buil
d-tools\24.0.2\aapt.exe remove C:\Users\Selendroid\Guru99App.apk META-INF/CERT.S
F
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:144)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addT
oAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<ini
t>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(Sel
endroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Sep 29, 2016 4:41:15 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Program Files (x86)\Android\android-sdk\build-
tools\24.0.2\aapt.exe remove C:\Users\Selendroid\Guru99App.apk META-INF/ANDROIDD
.SF
Sep 29, 2016 4:41:16 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Program Files (x86)\Android\android-sdk\buil
d-tools\24.0.2\aapt.exe remove C:\Users\Selendroid\Guru99App.apk META-INF/ANDROI
DD.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:145)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addT
oAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<ini
t>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(Sel
endroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Sep 29, 2016 4:41:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Program Files (x86)\Android\android-sdk\build-
tools\24.0.2\aapt.exe remove C:\Users\Selendroid\Guru99App.apk META-INF/ANDROIDD
.RSA
Sep 29, 2016 4:41:16 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Program Files (x86)\Android\android-sdk\buil
d-tools\24.0.2\aapt.exe remove C:\Users\Selendroid\Guru99App.apk META-INF/ANDROI
DD.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:146)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addT
oAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<ini
t>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(Sel
endroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Sep 29, 2016 4:41:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Program Files (x86)\Android\android-sdk\build-
tools\24.0.2\aapt.exe remove C:\Users\Selendroid\Guru99App.apk META-INF/NDKEYSTO
.SF
Sep 29, 2016 4:41:16 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Program Files (x86)\Android\android-sdk\buil
d-tools\24.0.2\aapt.exe remove C:\Users\Selendroid\Guru99App.apk META-INF/NDKEYS
TO.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:147)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addT
oAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<ini
t>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(Sel
endroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Sep 29, 2016 4:41:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Program Files (x86)\Android\android-sdk\build-
tools\24.0.2\aapt.exe remove C:\Users\Selendroid\Guru99App.apk META-INF/NDKEYSTO
.RSA
Sep 29, 2016 4:41:16 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Program Files (x86)\Android\android-sdk\buil
d-tools\24.0.2\aapt.exe remove C:\Users\Selendroid\Guru99App.apk META-INF/NDKEYS
TO.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:148)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addT
oAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<ini
t>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(Sel
endroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Sep 29, 2016 4:41:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Program Files\Java\jdk1.8.0_101\bin\jarsigner.
exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Selendroid\resigned-G
uru99App.apk -storepass android -keystore C:\Users\abhishek\.android\debug.keyst
ore C:\Users\Selendroid\Guru99App.apk androiddebugkey
Sep 29, 2016 4:41:16 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Program Files\Java\jdk1.8.0_101\bin\jarsigne
r.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Selendroid\resigned
-Guru99App.apk -storepass android -keystore C:\Users\abhishek\.android\debug.key
store C:\Users\Selendroid\Guru99App.apk androiddebugkey
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.signTestServ
er(SelendroidServerBuilder.java:296)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:154)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addT
oAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<ini
t>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(Sel
endroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Sep 29, 2016 4:41:16 PM io.selendroid.standalone.SelendroidLauncher launchServer

SEVERE: Error building server: An error occurred while resigning the app 'Guru99
App.apk'.
Exception in thread "main" io.selendroid.server.common.exceptions.SessionNotCrea
tedException: An error occurred while resigning the app 'Guru99App.apk'.
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addT
oAppsStore(SelendroidStandaloneDriver.java:124)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<ini
t>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(Sel
endroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error exec
uting shell command: C:\Program Files\Java\jdk1.8.0_101\bin\jarsigner.exe -sigal
g MD5withRSA -digestalg SHA1 -signedjar C:\Users\Selendroid\resigned-Guru99App.a
pk -storepass android -keystore C:\Users\abhishek\.android\debug.keystore C:\Use
rs\Selendroid\Guru99App.apk androiddebugkey
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:56)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.signTestServ
er(SelendroidServerBuilder.java:296)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:154)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addT
oAppsStore(SelendroidStandaloneDriver.java:121)
        ... 6 more
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: jarsigner:
 unable to create: C:\Users\Selendroid\resigned-Guru99App.apk

        ... 10 more

C:\Users\Selendroid>
Reply all
Reply to author
Forward
0 new messages