Building my camel quarkus project ends with an exception java.lang.NullPointerException

Solution Verified - Updated -


  • 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:

     ProducerTemplate template;


  • Camel Extensions for Quarkus: 2.2.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content