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

NPE KafkaPrincipalRole io.streamthoughts.jikkou.core.reconciler.DefaultChangeResult["description"]) #461

Closed
Antoine7773 opened this issue Jun 4, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Antoine7773
Copy link

Describe the bug
When trying to apply the KafkaPrincipalRole example described here :https://www.jikkou.io/docs/providers/kafka/resources/acls/#example-1
I am getting the following error : Error: JikkouRuntimeException: com.fasterxml.jackson.databind.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: io.streamthoughts.jikkou.core.reconciler.DefaultChangeResult["description"])
Jikkou version used 0.34.0

To Reproduce
Copy the example of KafkaPrincipalRole https://www.jikkou.io/docs/providers/kafka/resources/acls/#example-1
Paste into kafka-acls.yaml
use jikkou command apply -f kafka-acls.yaml
docker run -it --net host --mount type=bind,source="$(pwd)"/jikkouconfig,target=/etc/jikkou/config --mount type=bind,source=<path_to_file>/kafka-acls.yaml,target=/etc/jikkou/kafka-acls/ streamthoughts/jikkou:0.34.0 apply -f /etc/jikkou/kafka-acls/ --dry-run

Expected behavior
Would expect to create the PrincipalRole
Like with https://www.jikkou.io/docs/providers/kafka/resources/acls/#example where it is working well.

Runtime environment

  • OS: Ubuntu
  • Jikkou: 0.34.0
  • Docker version: 26.01.3
  • Kafka Cluster Version: cp-7.5.0

Additional context
Found an other issue that might be related #190
But the link returns 404

@fhussonnois fhussonnois self-assigned this Jun 4, 2024
@fhussonnois fhussonnois added the bug Something isn't working label Jun 4, 2024
@fhussonnois
Copy link
Member

Hi @Antoine7773, thank you very for reporting this issue. It's seems an NPE was thrown when no change was detected for that resource kind. You should be able to use the preview version. I've pushed a fix for that issue. Do not hesite to reopen this issue if needed.

@Antoine7773
Copy link
Author

Hello @fhussonnois
Thanks a lot for the quick reply. It is failing as well with version 0.33.* . No longer error using jikkou:main image.

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