Building my camel quarkus project ends with an exception java.lang.NullPointerException
Issue
-
Building the camel quarkus project using the command
mvn clean package -Pnative -e
this ends with the following error:[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.2.5.Final-redhat-00010:build (default) on project camel-test-route-quarkus: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors [ERROR] [error]: Build step org.apache.camel.quarkus.core.deployment.InjectionPointsProcessor#syntheticBeans threw an exception: java.lang.NullPointerException
-
E.g something like this results in an
java.lang.NullPointerException
during the build phase:@Produce @Inject ProducerTemplate template;
Environment
- Camel Extensions for Quarkus: 2.2.5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.