You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.agrona.concurrent.AgentTerminationException: java.lang.NullPointerException: Cannot invoke "jakarta.json.spi.JsonProvider.createParser(java.io.InputStream)" because "provider" is null
at io.aklivity.zilla.runtime.engine/io.aklivity.zilla.runtime.engine.internal.registry.EngineWorker.doWork(EngineWorker.java:761)
at org.agrona.core/org.agrona.concurrent.AgentRunner.doDutyCycle(AgentRunner.java:291)
at org.agrona.core/org.agrona.concurrent.AgentRunner.run(AgentRunner.java:164)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.NullPointerException: Cannot invoke "jakarta.json.spi.JsonProvider.createParser(java.io.InputStream)" because "provider" is null
at io.aklivity.zilla.runtime.model.json/io.aklivity.zilla.runtime.model.json.internal.JsonValidatorHandler.validate(JsonValidatorHandler.java:78)
at io.aklivity.zilla.runtime.engine/io.aklivity.zilla.runtime.engine.model.ValidatorHandler.validate(ValidatorHandler.java:41)
at io.aklivity.zilla.runtime.binding.http/io.aklivity.zilla.runtime.binding.http.internal.stream.HttpServerFactory$HttpServer$HttpExchange.validateContent(HttpServerFactory.java:3231)
at io.aklivity.zilla.runtime.binding.http/io.aklivity.zilla.runtime.binding.http.internal.stream.HttpServerFactory$HttpServer.onDecodeBody(HttpServerFactory.java:2300)
at io.aklivity.zilla.runtime.binding.http/io.aklivity.zilla.runtime.binding.http.internal.stream.HttpServerFactory.decodeContent(HttpServerFactory.java:1425)
Expected behavior
Zilla shouldn't crash.
There is a decision to be made whether we deem inputs valid or invalid in the case the schema registry is not accessible. As discussed with @jfallows, we should follow the policy to deem inputs invalid if the schema registry is inaccessible.
Screenshots
N/A
Additional context
IMPORTANT NOTE: The repro steps above are pointing out the erratic behaviour in the case of json validation, but we should double check if the same problem exists in the case of avro and protobuf as well, and if so, those need to be fixed as well.
The text was updated successfully, but these errors were encountered:
Based on debugging, this crash is due to a missing null check in the model-json. This issue is not specific to schema registry being unreachable, we will hit this issue whenever schema is not found while validation.
We have already handled this in other models (avro, protobuf).
Describe the bug
When you set up zilla with validation and schema-registry enabled, but the schema registry is inaccessible zilla crashes with a NPE.
To Reproduce
Steps to reproduce the behavior:
curl -v "localhost:7114/hello" -X POST -d "{'greeting':'hello'}"
Expected behavior
Screenshots
N/A
Additional context
IMPORTANT NOTE: The repro steps above are pointing out the erratic behaviour in the case of json validation, but we should double check if the same problem exists in the case of avro and protobuf as well, and if so, those need to be fixed as well.
The text was updated successfully, but these errors were encountered: