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

The fail.on.missing.attributes="false" is not working with the source mapper #111

Open
Methma opened this issue May 2, 2023 · 0 comments

Comments

@Methma
Copy link

Methma commented May 2, 2023

Description:
The fail.on.missing.attributes="false" is not working with the source mapper. No errors related to the property in the error log and a mapping failed error is printed in the carbon log when empty values are passed for mapped attributes.

ERROR {io.siddhi.extension.map.json.sourcemapper.JsonSourceMapper} - Invalid Json String : {
. . .
}' , for the input Mapping 'json' for the stream 'InputStream'. io.siddhi.core.exception.MappingFailedException
at io.siddhi.extension.map.json.sourcemapper.JsonSourceMapper.mapAndProcess(JsonSourceMapper.java:260)
at io.siddhi.core.stream.input.source.SourceMapper.onEvent(SourceMapper.java:201)
at io.siddhi.core.stream.input.source.SourceMapper.onEvent(SourceMapper.java:145)
at io.siddhi.extension.io.http.source.HttpWorkerThread.run(HttpWorkerThread.java:73)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

Affected Product Version:
SI 4.2.0

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