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

SEVERE: Problem adapting object of type class NamespaceConfig to interface jakarta.json.JsonObject in class class NamespaceAdapter #796

Closed
vordimous opened this issue Feb 13, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@vordimous
Copy link
Contributor

vordimous commented Feb 13, 2024

Describe the bug
Starting zilla with the in Helm crashes with the below stack trace:

Problem adapting object of type class io.aklivity.zilla.runtime.engine.config.NamespaceConfig to interface jakarta.json.JsonObject in class class io.aklivity.zilla.runtime.engine.internal.config.NamespaceAdapter
error
Feb 13, 2024 5:28:25 PM org.eclipse.yasson.internal.Unmarshaller deserializeItem
SEVERE: Problem adapting object of type class io.aklivity.zilla.runtime.engine.config.NamespaceConfig to interface jakarta.json.JsonObject in class class io.aklivity.zilla.runtime.engine.internal.config.NamespaceAdapter
java.util.concurrent.ExecutionException: io.aklivity.zilla.runtime.engine.config.ConfigException: Engine configuration failed
    at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
    at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
    at [email protected]/io.aklivity.zilla.runtime.engine.Engine.start(Engine.java:240)
    at [email protected]/io.aklivity.zilla.runtime.command.start.internal.airline.ZillaStartCommand.run(ZillaStartCommand.java:164)
    at [email protected]/io.aklivity.zilla.runtime.command.internal.ZillaMain$Invoker.invoke(ZillaMain.java:69)
    at [email protected]/io.aklivity.zilla.runtime.command.internal.ZillaMain.invoke(ZillaMain.java:40)
    at [email protected]/io.aklivity.zilla.runtime.command.internal.ZillaMain.main(ZillaMain.java:34)
Caused by: io.aklivity.zilla.runtime.engine.config.ConfigException: Engine configuration failed
    at [email protected]/io.aklivity.zilla.runtime.engine.internal.registry.EngineManager.reconfigure(EngineManager.java:156)
    at [email protected]/io.aklivity.zilla.runtime.engine.internal.registry.FileWatcherTask.watch(FileWatcherTask.java:118)
    ... 5 more

To Reproduce
Steps to reproduce the behavior:

  1. Download or clone the grpc-proxy branch and folder
  2. With an active k8s cluster run the root ./setup.sh script to install zilla via helm
  3. See error
  4. Use ./teardown.sh to uninstall zilla via helm
  5. Install the same zilla.yaml config via compose
  6. cd compose
  7. Run the compose setup by using the ./setup.sh script.
  8. Zilla doesn't crash
  9. Use ./teardown.sh to uninstall zilla via compose

Expected behavior
Zilla shouldn't crash on startup

@vordimous vordimous added the bug Something isn't working label Feb 13, 2024
@jfallows
Copy link
Contributor

@vordimous this looks like an issue with the setup script, trying to map in the '.proto' file.

There are some examples with .proto and helm in zilla-examples.

See https://github.com/aklivity/zilla-examples/blob/main/grpc.kafka.echo/setup.sh#L10

@vordimous
Copy link
Contributor Author

Using the correct --set-file command fix the startup error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants