# Finding "java.lang.reflect.InvocationTargetException" error while running Sample Test Project

**URL:** <https://forum.katalon.com/t/finding-java-lang-reflect-invocationtargetexception-error-while-running-sample-test-project/93622>\
**Category:** Mobile Testing\
**Tags:** new-users, mobile-testing, katalon-studio\
**Created:** [August 9, 2023, 4:06am UTC](https://forum.katalon.com/t/finding-java-lang-reflect-invocationtargetexception-error-while-running-sample-test-project/93622 "2023-08-09T04:06:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuvashishsqa](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/shuvashishsqa/32/23869_2.png) [@shuvashishsqa](https://forum.katalon.com/u/shuvashishsqa)\
**Post date:** [August 9, 2023, 4:06am UTC](https://forum.katalon.com/t/finding-java-lang-reflect-invocationtargetexception-error-while-running-sample-test-project/93622/1 "2023-08-09T04:06:33Z")

</div>

I am using KATALON v8.6.5 and have fulfilled all the instructions provided by Katalon documentation. Installed all the dependencies, configured appium location, appium log level as “debug” and these stuffs too,

jdk - 16.0.2  
node - 20.5.0

But it shows the same issue all the time. Error log is given below,

=============== ROOT CAUSE =====================  
Caused by: java.lang.reflect.InvocationTargetException

# For trouble shooting, please visit: [https://docs.katalon.com/katalon-studio/docs/troubleshooting.html](https://docs.katalon.com/katalon-studio/docs/troubleshooting.html)

08-09-2023 09:06:37 AM Test Cases/Verify Correct Alarm Message

Elapsed time: 14.011s

Test Cases/Verify Correct Alarm Message FAILED.  
Reason:  
com.kms.katalon.core.exception.StepFailedException: Unable to start app at: ‘C:\Users\Shuvo\Katalon Studio\sample test\androidapp\APIDemos.apk’ (Root cause: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-I7PI3OF’, ip: ‘192.168.42.199’, os.name: ‘Windows 11’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_362’  
Driver info: driver.version: SwipeableAndroidDriver  
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
at getResponseForW3CError (C:\Users\Shuvo\AppData\Roaming\nvm\v20.5.0\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:804:9)  
at asyncHandler (C:\Users\Shuvo\AppData\Roaming\nvm\v20.5.0\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\protocol.js:380:37)  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-I7PI3OF’, ip: ‘192.168.42.199’, os.name: ‘Windows 11’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_362’  
Driver info: driver.version: SwipeableAndroidDriver  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)  
at io.appium.java\_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.android.AndroidDriver.execute(AndroidDriver.java:1)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.android.AndroidDriver.(AndroidDriver.java:85)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(SwipeableAndroidDriver.java:24)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:510)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:492)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:568)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:481)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.doCall(StartApplicationKeyword.groovy:61)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.call(StartApplicationKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:63)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:42)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:78)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)  
at Verify Correct Alarm Message.run(Verify Correct Alarm Message:16)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:448)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:144)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:135)  
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)  
at TempTestCase1691550395917.run(TempTestCase1691550395917.groovy:25)  
Caused by: java.lang.reflect.InvocationTargetException  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)  
at io.appium.java\_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.android.AndroidDriver.execute(AndroidDriver.java:1)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.android.AndroidDriver.(AndroidDriver.java:85)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(SwipeableAndroidDriver.java:24)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:510)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:492)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:568)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:481)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.doCall(StartApplicationKeyword.groovy:61)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.call(StartApplicationKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:63)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:42)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:78)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)  
at Script1529986178839.run(Script1529986178839.groovy:16)  
… 11 more  
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-I7PI3OF’, ip: ‘192.168.42.199’, os.name: ‘Windows 11’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_362’  
Driver info: driver.version: SwipeableAndroidDriver  
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
at getResponseForW3CError (C:\Users\Shuvo\AppData\Roaming\nvm\v20.5.0\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:804:9)  
at asyncHandler (C:\Users\Shuvo\AppData\Roaming\nvm\v20.5.0\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\protocol.js:380:37)  
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)  
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)  
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)  
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)  
… 38 more  
)  
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:51)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:40)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:23)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:63)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:42)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:78)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)  
at Verify Correct Alarm Message.run(Verify Correct Alarm Message:16)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:448)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:144)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:135)  
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)  
at TempTestCase1691550395917.run(TempTestCase1691550395917.groovy:25)  
Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-I7PI3OF’, ip: ‘192.168.42.199’, os.name: ‘Windows 11’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_362’  
Driver info: driver.version: SwipeableAndroidDriver  
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
at getResponseForW3CError (C:\Users\Shuvo\AppData\Roaming\nvm\v20.5.0\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:804:9)  
at asyncHandler (C:\Users\Shuvo\AppData\Roaming\nvm\v20.5.0\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\protocol.js:380:37)  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-I7PI3OF’, ip: ‘192.168.42.199’, os.name: ‘Windows 11’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_362’  
Driver info: driver.version: SwipeableAndroidDriver  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)  
at io.appium.java\_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.android.AndroidDriver.execute(AndroidDriver.java:1)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.android.AndroidDriver.(AndroidDriver.java:85)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(SwipeableAndroidDriver.java:24)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:510)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:492)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:568)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:481)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.doCall(StartApplicationKeyword.groovy:61)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.call(StartApplicationKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
… 17 more  
Caused by: java.lang.reflect.InvocationTargetException  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)  
at io.appium.java\_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.android.AndroidDriver.execute(AndroidDriver.java:1)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.android.AndroidDriver.(AndroidDriver.java:85)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(SwipeableAndroidDriver.java:24)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:510)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:492)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:568)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:481)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.doCall(StartApplicationKeyword.groovy:61)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.call(StartApplicationKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:63)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:42)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:78)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)  
at Script1529986178839.run(Script1529986178839.groovy:16)  
… 11 more  
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-I7PI3OF’, ip: ‘192.168.42.199’, os.name: ‘Windows 11’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_362’  
Driver info: driver.version: SwipeableAndroidDriver  
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
at getResponseForW3CError (C:\Users\Shuvo\AppData\Roaming\nvm\v20.5.0\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:804:9)  
at asyncHandler (C:\Users\Shuvo\AppData\Roaming\nvm\v20.5.0\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\protocol.js:380:37)  
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)  
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)  
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)  
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)  
at io.appium.java\_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.android.AndroidDriver.execute(AndroidDriver.java:1)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.android.AndroidDriver.(AndroidDriver.java:85)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(SwipeableAndroidDriver.java:24)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:510)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:492)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:568)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:481)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.doCall(StartApplicationKeyword.groovy:61)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.call(StartApplicationKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:63)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:42)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:78)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)  
at Verify Correct Alarm Message.run(Verify Correct Alarm Message:16)  
… 11 more

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/f/f/ff880d9e6f521057d38c8ab8df8000202f03d302.png)

Even after going through the community content, found no solution to fix it.

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [August 9, 2023, 6:30am UTC](https://forum.katalon.com/t/finding-java-lang-reflect-invocationtargetexception-error-while-running-sample-test-project/93622/2 "2023-08-09T06:30:49Z")

</div>

Hi,

You can refer to this: [org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: The instrumentation pr](http://forum.katalon.com/t/org-openqa-selenium-sessionnotcreatedexception-unable-to-create-a-new-remote-session-please-check-the-server-log-for-more-details-original-error-an-unknown-server-side-error-occurred-while-processing-the-command-original-error-the-instrumentation-pr/93395).

---

<div class="post-metadata">

**Author:** ![kreno](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kreno/32/24257_2.png) [@kreno](https://forum.katalon.com/u/kreno)\
**Post date:** [August 9, 2023, 2:37pm UTC](https://forum.katalon.com/t/finding-java-lang-reflect-invocationtargetexception-error-while-running-sample-test-project/93622/3 "2023-08-09T14:37:09Z")

</div>

@shuvashishsqa Can you share the appium version you are using. Currently if you want to use android execution you cannot use appium 2.0 and will need to downgrade to the newest supported appium version of 1.22.3.

---

<div class="post-metadata">

**Author:** ![shuvashishsqa](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/shuvashishsqa/32/23869_2.png) [@shuvashishsqa](https://forum.katalon.com/u/shuvashishsqa)\
**Post date:** [August 9, 2023, 6:41pm UTC](https://forum.katalon.com/t/finding-java-lang-reflect-invocationtargetexception-error-while-running-sample-test-project/93622/4 "2023-08-09T18:41:29Z")

</div>

I am using appium v1.8.0 now. Running fine with the real app in the real devices now but was facing the same old issue for readymade Test Sample Android projects. Yes, I’ve tried 1.22.3 too. I’ve always failed to run any Test sample android test cases successfully yet with real devices.
