-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Kogito with Decision table NullPointerException #5714
Comments
@zakhdar could you please check if you have following dependency in you pom?
Decision tables is an optional component and thats why not included by default |
@mswiderski I don't know if it will solve the issue but in any case, we shouldn't have a NPE but a proper error message. |
I fully agree with that. Once we have this confirmed we will improve the error handling in this case |
After added this dependency. No NPE and project compile fine ! Kogito extension load xlsx file right and execute all conditions. |
@dboka thanks for confirming the issue. I created Kogito Jira to track and fix it with next (0.6.0) version https://issues.jboss.org/browse/KOGITO-641 I believe this can be closed |
it will be also interresting to mention this dependency in quarkus documentation |
That’s a good suggestion. @mswiderski could you add something to the guide? Then we can close this issue. Thanks! |
Let's close this issue then. Thanks! |
Describe the bug
create a project with Kogito extension add to src/main/ressources/ a simple xls decision table you will get a NullPointerException at compile time
Caused by: java.lang.NullPointerException at org.drools.compiler.compiler.DecisionTableFactory.loadFromResource(DecisionTableFactory.java:35)
Person POJO
Person Endpoint
kmodule.xml (in src/main/resources/META-INF)
Expected behavior
Project can compile and excecute
Actual behavior
Actual stacktrace
To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
windows 10
Quarkus version 1.0.0.CR2
Decision table in .xlsx format
rules.xlsx
The text was updated successfully, but these errors were encountered: