You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Borodina Valery (Jira)" <ji...@apache.org> on 2020/10/02 15:39:00 UTC

[jira] [Created] (CAMEL-15623) Reference methods not found in blueprint context

Borodina Valery created CAMEL-15623:
---------------------------------------

             Summary: Reference methods  not found in blueprint context
                 Key: CAMEL-15623
                 URL: https://issues.apache.org/jira/browse/CAMEL-15623
             Project: Camel
          Issue Type: Bug
          Components: camel-bean
    Affects Versions: 3.4.4
            Reporter: Borodina Valery


I have two bundles with blueprint.

blueprint 1 bundle:
{code:java}
<bean id="impl" class="com.example.InterfaceImpl"/>
<service ref="impl" interface="com.example.Interface"/>{code}
blueprint 2 bundle:

 
{code:java}
<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>
{code}
 

 

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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)