Troubleshoot common exception when executing in console mode

Tips

  • Please use Ctrl+F to look for the exceptions and errors you have encountered quickly.
  • If the exception you are looking for is not documented, please go to the Katalon forum for further support.
Issue Solution

joptsimple.IllegalOptionSpecificationException: is not a legal option character 
Expand to see the full logjoptsimple.IllegalOptionSpecificationException: $ is not a legal option character at joptsimple.ParserRules.ensureLegalOptionCharacter(ParserRules.java:77) at joptsimple.ParserRules.ensureLegalOption(ParserRules.java:67) at joptsimple.ParserRules.ensureLegalOptions(ParserRules.java:72) at joptsimple.OptionParser.acceptsAll(OptionParser.java:267) at joptsimple.OptionParser.acceptsAll(OptionParser.java:260) at joptsimple.OptionParser.accepts(OptionParser.java:252) at com.kms.katalon.execution.console.ConsoleMain.acceptConsoleOptionList(ConsoleMain.java:421) at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:217) at com.kms.katalon.console.application.Application.runConsole(Application.java:71) at com.kms.katalon.core.application.Application.runConsole(Application.java:93) at com.kms.katalon.core.application.Application.start(Application.java:72) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610) at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

This is because the name of your global variables might contain special characters like $, or a space. For instance: 

  • -g_myVar="test" (supported)
  • -g_$myVar="test" (not supported)
We recommend giving global variables a name without $, and/or space.
When executing tests in KRE in Windows with Chrome version 93.x or 94.x, users may come across the following error:
SessionNotCreatedException: Message: session not created from timeout: Timed out receiving message from renderer: 600.000
This is an issue from Chrome version 93.x and 94.x that doesn’t allow the ChromeDriver to start as a Windows service. 
Here are two workarounds for this issue:
1. Set --disable-gpu for the desired capability in Project Settings > Desired Capabilities > Web UI > Chrome. Click Add, then input as follows:
 
Name Type Value
args List --disable-gpu

 

Set desired capabilities in chrome
 
2. Downgrade to Chrome version 92.x. To downgrade ChromeDriver versions, you can refer to this guide here: Update or Downgrade WebDrivers.

Feedback