Qute NullPointerException in build when combining MessageBundle with TemplateExtension method
See original GitHub issueWhen a MessageBundle is used in combination with a TemplateExtension method, a NullPointerException happens during the build.
I have created a small reproducer project. https://github.com/andlinger/quarkus-qute-npe
The template line which triggers the error can be found here: https://github.com/andlinger/quarkus-qute-npe/blob/ad06b9adce8f9e38abb0d8bfb1a3d47bc77209b6/quarkus/src/main/resources/templates/QuteResource/number.txt#L1
io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.qute.deployment.MessageBundleProcessor#validateMessageBundleMethodsInTemplates threw an exception: java.lang.NullPointerException
at io.quarkus.qute.deployment.Types.isAssignableFrom(Types.java:116)
at io.quarkus.qute.deployment.MessageBundleProcessor.validateMessageBundleMethodsInTemplates(MessageBundleProcessor.java:410)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:920)
at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
at java.base/java.lang.Thread.run(Thread.java:834)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Qute Templating Engine - Quarkus
Qute is a templating engine designed specifically to meet the Quarkus needs. The usage of reflection is minimized to reduce the size of...
Read more >lang.NullPointerException when reading resource file outside ...
I tried moving the code inside the catch -block to the start method, where it works fine. The full stacktrace is. Exception in...
Read more >Home of Quarkus Cheat-Sheet - GitHub Pages
Automatically generate AppCDS as part of the build process set the next property: ... run method called when Quarkus starts, and stops when...
Read more >chore(deps): update dependency io.quarkus:quarkus ... - GitLab
... #25283 - Combining @RouterFilter and JAX-RS ContainerResponseFilter does not work in ... #21779 - Qute unable to find template extension methods with ......
Read more >intellij-idea-help.pdf - JetBrains
Any changes to the underlying build configuration will eventually need to be synced with the project model in IntelliJ IDEA. Alt+9. Alt+Back Quote....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Updated to Quarkus 1.13.3.Final and bug is fixed.
A tag already exists so I’d say the release is in the works. CC @gsmet