Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.util.ArrayList cannot be cast to java.util.Map error message not clear enough #972

Open
dumagalex opened this issue Mar 8, 2017 · 0 comments

Comments

@dumagalex
Copy link

dumagalex commented Mar 8, 2017

Used .inputs.yaml file:

- origin_string: origin
- text: appendText

to run in --if for base's append.sl

Got error in logs:

08/03/17 17:59:19 [INFO] Loading file: C:\Backup\cslang-1_0_17Feb\test.inputs.yaml
08/03/17 17:59:19 [ERROR] Error loading file: C:\Backup\cslang-1_0_17Feb\test.inputs.yaml. Nested exception is: java.util.ArrayList cannot be cast to java.util.Map
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Map
	at io.cloudslang.lang.cli.utils.CompilerHelperImpl.loadMapsFromFiles(CompilerHelperImpl.java:130)
	at io.cloudslang.lang.cli.utils.CompilerHelperImpl.loadInputsFromFile(CompilerHelperImpl.java:112)
	at io.cloudslang.lang.cli.SlangCLI.run(SlangCLI.java:110)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:216)
	at org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleExecutionStrategy.java:64)
	at org.springframework.shell.core.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:57)
	at org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:127)
	at org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:533)
	at org.springframework.shell.core.JLineShell.run(JLineShell.java:179)
	at java.lang.Thread.run(Unknown Source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants