question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Qute NullPointerException in build when combining MessageBundle with TemplateExtension method

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andlingercommented, Apr 28, 2021

Updated to Quarkus 1.13.3.Final and bug is fixed.

0reactions
mkoubacommented, Apr 28, 2021

A tag already exists so I’d say the release is in the works. CC @gsmet

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found