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

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

    [ https://issues.apache.org/jira/browse/CAMEL-15623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17206289#comment-17206289 ] 

Claus Ibsen commented on CAMEL-15623:
-------------------------------------

I think there is another ticket about something like this.

> osgi - 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: karaf
>    Affects Versions: 3.4.4
>            Reporter: Borodina Valery
>            Priority: Minor
>
> 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)