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

PropertyInject gives NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.14.0
    • 2.14.1, 2.15.0
    • camel-core
    • None
    • Linux, JDK1.7, standalone Camel/Spring J2SE process running in Eclipse

    • Unknown

    Description

      Using the annotation @PropertyInject on a field of the RouteBuilder class gives a NullPointerException

      public class RouteBuilder extends SpringRouteBuilder {

      @PropertyInject("foo.bar")
      private String fooBar;
      ...
      }

      Using the {{ }} notation in endpoint URIs is working though.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              daniel.pocock Daniel Pocock
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: