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:42:00 UTC

[jira] [Commented] (CAMEL-15623) 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=17206271#comment-17206271 ] 

Borodina Valery commented on CAMEL-15623:
-----------------------------------------

I search in camel-bean [https://github.com/apache/camel/blob/992a6b9685f4db49236e540af2546548cf99a7d3/components/camel-bean/src/main/java/org/apache/camel/component/bean/RegistryBean.java#L177] what proxy not extended com.example.InterfaceImpl

> 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
>            Priority: Critical
>
> 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)