Unable to start application via Mobile Object Spy

Hi,
I can’t start the application via Mobile Object Spy and application ID - the following error appears. However, it works using the application file and when running the test.

Reinstalling katalon, appium, drivers and uiautomator did not help.

Unable to start application
Reason:
No enum constant com.kms.katalon.core.model.RynningModel.null
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: No enum constant com.kms.katalon.core.model.RunningMode.null
	at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:49)
	at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12.run(MobileLocalAppComposite.java:491)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:124)
Caused by: java.lang.IllegalArgumentException: No enum constant com.kms.katalon.core.model.RunningMode.null
	at com.kms.katalon.core.model.RunningMode.valueOf(RunningMode.java:1)
	at com.kms.katalon.core.configuration.RunConfiguration.getRunningMode(RunConfiguration.java:792)
	at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.saveWebDriverSessionData(MobileDriverFactory.java:524)
	at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:474)
	at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startExistingApp(MobileInspectorController.java:153)
	at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12$1.call(MobileLocalAppComposite.java:503)
	at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.startThreadAndWait(ProgressMonitorDialogWithThread.java:36)
	at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:48)
	... 2 more
1 Like

Hi there, and thanks for posting in the Katalon community! :hugs:

To help you faster, please review our guide on Record Mobile Utility here:

Double-checking the steps and configurations might resolve the issue.

If the doc doesn’t help, feel free to provide more details, and a community member will assist you soon.

Thanks for being a part of our community!
Best,
Elly Tran

EVerything is in accordance with the documentation

Hi @marysia9622,

Based on your error, some possible problems might be:

  1. Double-check your Mobile Object Spy setup:
  • Make sure Device Name, Platform Name, Application ID, and Start With are all properly filled.
  • Especially under Start with, ensure it points to Existing Application with correct settings.
  1. Re-set your project settings: Sometimes the project gets stuck. Try:
  • Go to Project > Settings > Execution > Default > Mobile.
  • Ensure the device settings are correctly set there.
  1. Clean and reopen the project:
  • Project > Clean up Project.
  • Then close and reopen Katalon Studio.
  1. (If still not working)
  • Create a new Katalon project and try Mobile Object Spy there.
  • This can help you test if the problem is project-specific.
  1. Update to the latest Katalon Studio + Appium version:
  • Especially if you’re running on older Katalon (before 8.5), some Mobile Spy bugs have been fixed in newer releases. Please help upgrade to the latest one

Hope this can help. Thank you

The error occurs because Katalon expects a valid RunningMode enum value (e.g., LOCAL, REMOTE), but receives null when starting the app via Mobile Object Spy with an Application ID. Here’s how to fix it:

Solution

  1. Set Running Mode Explicitly
  • In your test case or desired capabilities, specify the runningMode as LOCAL (or another valid value).
  • Example in Desired Capabilities (go to Project Settings > Desired Capabilities > Mobile):
"runningMode" = "LOCAL"  
  1. Verify Application ID
  • Ensure the app is installed on the device/emulator and the appId matches the package name (e.g., com.example.app).
  • Use ADB to check installed packages:
adb shell pm list packages
  1. Reconfigure Mobile Object Spy
  • When using Mobile Object Spy, manually select LOCAL as the running mode in the setup wizard (if prompted).
  • If using a Custom Capabilities file, ensure it includes "runningMode": "LOCAL".
  1. Check Execution Profile
  • In your Execution Profile (Run Configurations), confirm the runningMode is set under the Mobile section.
  1. Update Katalon Studio
  1. Create a New Project
  • If the issue persists, create a new project and import your existing tests to rule out project corruption.

Why This Happens

  • The error No enum constant...RunningMode.null indicates Katalon’s configuration expects a valid RunningMode (e.g., LOCAL), but receives null when using the Application ID method.
  • When using the Application File (APK/IPA), Katalon defaults to LOCAL mode automatically, which is why that method works.

I checked everything according to the above advice and I still have the same error.

In the settings/internal/com.kms.katalon.core.mobile.android.properties I have the following content:
{"ANDROID_DRIVER":{"app":"","language":"pl","locale":"PL","noReset":"true","deviceId":"","runningMode":"LOCAL"}}

@marysia9622 It looks like it might be an issue with Katalon 10.2. Are you able to downgrade to see if that fixes the issue for you? See this other post with a similar issue: