Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-21115

CamelContext is not injected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 4.7.0
    • None
    • camel-quarkus
    • None
    • Unknown

    Description

      I have a custom unit test which requires access to Camel context. My code is as simple as:

      @QuarkusTest
      public class MyCustomTest {
      @Inject
      protected CamelContext camelContext;

      It worked just fine prior to upgrading to Camel 4.7.0 and Quarkus 3.13.0 but now I'm getting error: java.lang.NullPointerException: Cannot invoke "org.apache.camel.CamelContext.getCamelContextExtension()" because "camelContext" is null and running the code in the debug mode confirms that the camelContext is indeed null. Is it a known bug?
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            javaduke Eugene Berman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: