1 Reply Latest reply on Apr 19, 2012 2:17 PM by Danny Gallagher

    camel suddenly shutsdown during deployment in servicemix

    Danny Gallagher Newbie

      Hi everyone,

       

      I am trying to put together a proof of concept using servicemix, basically a camel route, starting in a queue where the route would call various external websites at certain points.

       

      I'm new to servicemix and using maven, so trying to get up that learning curve as quickly as I can.

       

      I have a deployable blueprint/osgi bundle (I'm just dropping the jar in the deploy directory right now), when I drop the jar, I'm getting an exception NoSuchBeanException.

       

      Looking at the log (which is from the time I drop the jar)

       

      It appears that blueprint/aries recognizes my camel route:

      14:29:11,792 | DEBUG | rint Extender: 2 | AbstractCamelContextFactoryBean  | 152 - org.apache.camel.camel-blueprint - 2.8.4 | Found JAXB created routes: [Route[[From[activemq://ingest]] -> [Log[From Q to media validation service],

      To[cxf:bean:mediavalidation], Choice[[When[simple{/metadata/encoding = 'PAL'} -> [Log[PAL - media validation service to pal splitter], To[cxf:bean:palsplitter], Choice[[When[simple{/metadata/result = 'SUCCESS'} ->

      [Log[PAL - pal splitter to webqc], To[cxf:bean:webqc], Choice[[When[simple{/metadata/result = 'SUCCESS'} -> [Log[PAL - webqc to createassets], To[cxf:bean:createassets],

      Choice[[When[simple{/metadata/result = 'SUCCESS'} -> [Log[PAL - createassets to ingest], To[cxf:bean:ingest], Log[PAL - ingest to notify SUCCESS], To[cxf:bean:notify]]]]

      Otherwise[[Log[PAL - createassets FAILURE], To[cxf:bean:notify]]]]]]] Otherwise[[Log[PAL - webqc FAILURE], To[cxf:bean:notify]]]]]]] Otherwise[[Log[PAL - pal splitter FAILURE], To[cxf:bean:notify]]]]]],

      When[simple{/metadata/encoding = 'NTSC'} -> [Log[NTSC - media validation service to ntsc splitter], To[cxf:bean:ntscsplitter], Choice[[When[simple{/metadata/result = 'SUCCESS'} ->

      [Log[NTSC - ntsc splitter to webqc], To[cxf:bean:webqc], Choice[[When[simple{/metadata/result = 'SUCCESS'} -> [Log[NTSC - webqc to createassets], To[cxf:bean:createassets], Choice[[When[simple{/metadata/result = 'SUCCESS'} ->

      [Log[NTSC - webqc to ingest], To[cxf:bean:ingest], Log[NTSC - ingest to notify SUCCESS], To[cxf:bean:notify]]]] Otherwise[[Log[NTSC - createassets FAILURE], To[cxf:bean:notify]]]]]]]

      Otherwise[[Log[NTSC - webqc FAILURE], To[cxf:bean:notify]]]]]]] Otherwise[[Log[NTSC - ntscsplitter FAILURE], To[cxf:bean:notify]]]]]]] Otherwise[[Log[NOT PAL or NTSC - FAILURE], To[cxf:bean:notify]]]]]]]

       

      Seems to register the first two components of the route:

      14:29:11,898 | DEBUG | rint Extender: 2 | DefaultManagementAgent           | 91 - org.apache.camel.camel-core - 2.8.4 | Registered MBean with objectname: org.apache.camel:context=dgallagher-dt/camel,type=components,name="activemq"

      14:29:11,898 | DEBUG | rint Extender: 2 | DefaultComponent                 | 91 - org.apache.camel.camel-core - 2.8.4 | Creating endpoint uri=[activemq://ingest], path=[ingest], parameters=[{}]

      14:29:11,898 | DEBUG | rint Extender: 2 | BlueprintCamelContext            | 91 - org.apache.camel.camel-core - 2.8.4 | activemq://ingest converted to endpoint: Endpoint[activemq://ingest] by component: org.apache.activemq.camel.component.ActiveMQComponent@543466

      14:29:12,249 | DEBUG | rint Extender: 2 | DefaultManagementAgent           | 91 - org.apache.camel.camel-core - 2.8.4 | Registered MBean with objectname: org.apache.camel:context=dgallagher-dt/camel,type=endpoints,name="activemq://ingest"

       

      Creates the endpoint for the first cxfEndpoint in my blueprint.xml

      instantiates the bean, then camel immediately shutsdown, leading to the NoSuchBeanException

       

      14:48:21,164 | DEBUG | rint Extender: 1 | DefaultComponent                 | 91 - org.apache.camel.camel-core - 2.8.4 | Creating endpoint uri=[cxf://bean:mediavalidation], path=[bean:mediavalidation], parameters=[{}]

      14:48:21,164 | DEBUG | rint Extender: 1 | BlueprintContainerImpl           | 10 - org.apache.aries.blueprint - 0.3.1 | Instantiating component mediavalidation

      14:48:21,165 | INFO  | rint Extender: 1 | BlueprintCamelContext            | 91 - org.apache.camel.camel-core - 2.8.4 | Apache Camel 2.8.4 (CamelContext: camel) is shutting down

       

      I'm not really sure where I go from here.

       

      I've attached the entire log (from the time I drop the jar) and my blueprint.xml file.  

      Any idea what I am doing to cause camel to shutdown?

       

      Any help is appreciated.

       

      Thanks