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

RuntimeExceptions thrown from YamlMacroProcessorImpl are not enriched with YAML source file name and position #711

Open
kwin opened this issue May 7, 2024 · 0 comments

Comments

@kwin
Copy link
Member

kwin commented May 7, 2024

In case of runtime exceptions in the YamlMacroProcessorImpl you just see an exception/error like this:

org.apache.jackrabbit.vault.packaging.PackageException: LOOP over EL ${${whitelistedTenants}} is null
....
Caused by: java.lang.IllegalStateException: LOOP over EL ${${whitelistedTenants}} is null
	at biz.netcentric.cq.tools.actool.configreader.YamlMacroProcessorImpl.evaluateForStatement(YamlMacroProcessorImpl.java:226)
	at biz.netcentric.cq.tools.actool.configreader.YamlMacroProcessorImpl.transform(YamlMacroProcessorImpl.java:138)
	at biz.netcentric.cq.tools.actool.configreader.YamlMacroProcessorImpl.transform(YamlMacroProcessorImpl.java:124)
	at biz.netcentric.cq.tools.actool.configreader.YamlMacroProcessorImpl.transform(YamlMacroProcessorImpl.java:155)
	at biz.netcentric.cq.tools.actool.configreader.YamlMacroProcessorImpl.transform(YamlMacroProcessorImpl.java:124)
	at biz.netcentric.cq.tools.actool.configreader.YamlMacroProcessorImpl.processMacros(YamlMacroProcessorImpl.java:66)
	at biz.netcentric.cq.tools.actool.configreader.YamlConfigurationMerger.getMergedConfigurations(YamlConfigurationMerger.java:134)

The stack trace and the error message doesn't give a pointer where in which YAML file this line is coming from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant