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

The NP check of the remote service is wrong in CamelServiceExporter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0, 2.1.0
    • 1.6.3, 2.2.0
    • None
    • None

    Description

      We should check the export service instead of the camelContext.
      — components/camel-spring/src/main/java/org/apache/camel/spring/remoting/CamelServiceExporter.jav(revision 895109)
      +++ components/camel-spring/src/main/java/org/apache/camel/spring/remoting/CamelServiceExporter.jav(working copy)
      @@ -83,7 +83,7 @@
      }

      Endpoint endpoint = CamelContextHelper.getMandatoryEndpoint(camelContext, uri);

      • notNull(camelContext, "service");
        + notNull(getService(), "service");
        Object proxy = getProxyForService();

      consumer = endpoint.createConsumer(new BeanProcessor(proxy, camelContext));

      Attachments

        Activity

          People

            njiang Willem Jiang
            njiang Willem Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: