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

MethodNotFoundException on OSGi service bean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.4.2
    • None
    • came-core, camel-osgi
    • None
    • Karaf 4.2.9

       

    • Unknown

    Description

      I have a Camel application using Blueprint XML running on Karaf  4.2.9.  Some routes call methods on beans that are OSGi services.
       
      When I try to upgrade to version 3.4.2  (from 3.4.0) Camel is no longer finding method in bean.
       
      Error at startup reads:
       
      "Failed to create route XXX at…”
       
      Caused by: org.apache.camel.component.bean.MethodNotFoundException: Method with name: XXXX not found on bean: XXXX@XXXX of type: Proxy3d58f1a3_9d5b_4a54_aa71_e8a0574b6da9
      at org.apache.camel.component.bean.DefaultBeanProcessorFactory.createBeanProcessor(DefaultBeanProcessorFactory.java:146) ~[?:?]
      at org.apache.camel.reifier.BeanReifier.createProcessor(BeanReifier.java:47) ~[?:?]
      at org.apache.camel.reifier.ProcessorReifier.makeProcessor(ProcessorReifier.java:766) ~[?:?]
      at org.apache.camel.reifier.ProcessorReifier.addRoutes(ProcessorReifier.java:511) ~[?:?]
      at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:391) ~[?:?]
      ... 22 more

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              alex.soto Alex Soto
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: