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

osgi - Reference methods not found in blueprint context

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.4
    • 3.4.5, 3.7.0
    • karaf
    • None
    • Unknown

    Description

      I have two bundles with blueprint.

      blueprint 1 bundle:

      <bean id="impl" class="com.example.InterfaceImpl"/>
      <service ref="impl" interface="com.example.Interface"/>

      blueprint 2 bundle:

       

      <reference id="impl" interface="com.example.Interface"/>
      <camelContext xmlns="http://camel.apache.org/schema/blueprint">
           <route>
                <from uri="timer:s?period=1000"/>
                <bean ref="impl" method="hi" />
            </route>
      </camelContext>
      

       

       

      and I get exception Caused by: org.apache.camel.component.bean.MethodNotFoundException: Method with name: hi  not found on bean: com.example.InterfaceImpl  of type: Proxy06b9dc80_2890_4f85_8bea_320bc0a4d9cb

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              valery1811 Borodina Valery
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: