[ 
https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Masny updated CAMEL-2464:
---------------------------------

    Summary: camel-xmpp not sends message if camel-application deployed to 
Felix Karaf  (was: camel-xmpp not sends message in Felix Karaf)

> camel-xmpp not sends message if camel-application deployed to Felix Karaf
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-2464
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2464
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-xmpp
>    Affects Versions: 2.1.0
>         Environment: Java 1.5
> Apache Felix Karaf 1.2
> org.apache.felix.framework - 2.0.1
> Windows 2003 version 5.2
>            Reporter: Aleksey Masny
>         Attachments: try-xmpp-project.jar
>
>
> Through camel-xmpp my message sended succesfully in standalone camel 
> application, but message not sends if application as a bundle deployed to 
> Felix Karaf.
> My route:
> from("timer://foo?fixedRate=true&period=10000&delay=10000").setBody(constant("Hello,
>  i am message")). 
>   to("xmpp://" + XMPP_FROM_NAME + "/ma...@websphere" + "?password=" + 
> XMPP_FROM_PASS); 
> "camel:run" command runs this route and succesfully sends message. 
> But if i create a bundle and deploy it to Felix Karaf, my route not sends 
> message, in DEBUG log i see :
> DEBUG | xtenderThread-42 | DefaultCamelContext              | 
> e.camel.impl.DefaultCamelContext  994 | ... Routes started 
>  INFO  | xtenderThread-42 | DefaultCamelContext              | 
> e.camel.impl.DefaultCamelContext  997 | Apache Camel 2.1.0 
> (CamelContext:camelContext) started 
>  INFO  | xtenderThread-42 | OsgiBundleXmlApplicationContext  | 
> ractOsgiBundleApplicationContext  327 | Publishing application context as 
> OSGi service with properties 
> {org.springframework.context.service.name=try-xmpp, 
> Bundle-SymbolicName=try-xmpp, Bundle-Version=0.1.0} 
>  DEBUG | xtenderThread-42 | OsgiBundleXmlApplicationContext  | 
> ractOsgiBundleApplicationContext  341 | Publishing service under classes 
> {org.springframework.osgi.context.DelegatedExecutionOsgiBundleApplicationContext,
>  org.springframework.osgi.context.ConfigurableOsgiBundleApplicationContext, 
> org.springframework.context.ConfigurableApplicationContext, 
> org.springframework.context.ApplicationContext, 
> org.springframework.context.Lifecycle, 
> org.springframework.beans.factory.ListableBeanFactory, 
> org.springframework.beans.factory.HierarchicalBeanFactory, 
> org.springframework.context.MessageSource, 
> org.springframework.context.ApplicationEventPublisher, 
> org.springframework.core.io.support.ResourcePatternResolver, 
> org.springframework.beans.factory.BeanFactory, 
> org.springframework.core.io.ResourceLoader, 
> org.springframework.beans.factory.DisposableBean} 
>  DEBUG | xtenderThread-42 | try-xmpp                         | ?              
>                      ? | ServiceEvent REGISTERED 
>  DEBUG | xtenderThread-42 | BlueprintListener                | 
> actory$SpringApplicationListener  140 | Spring app state changed to Started 
> for bundle 93 
>  DEBUG | xtenderThread-42 | BlueprintListener                | 
> actory$SpringApplicationListener  140 | Spring app state changed to Started 
> for bundle 93 
>  INFO  | xtenderThread-42 | ContextLoaderListener            | 
> BundleApplicationContextListener   45 | Application context successfully 
> refreshed (OsgiBundleXmlApplicationContext(bundle=try-xmpp, 
> config=osgibundle:/META-INF/spring/*.xml)) 
>  INFO  | foo              | Tracer                           | 
> rg.apache.camel.processor.Logger   88 | 8f812d3e-15cc-4ca3-b6c0-4077beef75bc 
> >>> (route30) from(timer://foo?delay=10000&fixedRate=true&period=10000) --> 
> setBody[Hello, i am message] <<< Pattern:InOnly, Headers:{firedTime=Thu Feb 
> 11 12:18:13 EET 2010}, BodyType:null, Body:null 
>  INFO  | foo              | Tracer                           | 
> rg.apache.camel.processor.Logger   88 | 8f812d3e-15cc-4ca3-b6c0-4077beef75bc 
> >>> (route30) setBody[Hello, i am message] --> 
> xmpp://wsb...@websphere/ma...@websphere?password=123456789 <<< 
> Pattern:InOnly, Headers:{firedTime=Thu Feb 11 12:18:13 EET 2010}, 
> BodyType:String, Body:Hello, i am message 
>  DEBUG | foo              | XmppPrivateChatProducer          | 
> ent.xmpp.XmppPrivateChatProducer   46 | Creating XmppPrivateChatProducer to 
> participant ma...@websphere 
>  DEBUG | foo              | CachedIntrospectionResults       | 
> beans.CachedIntrospectionResults  151 | Not strongly caching class 
> [org.apache.camel.management.mbean.ManagedProducer] because it is not 
> cache-safe 
>  DEBUG | foo              | DefaultManagementAgent           | 
> anagement.DefaultManagementAgent  304 | Registered MBean with objectname: 
> org.apache.camel:context=masny/camelContext,type=producers,name=XmppPrivateChatProducer(0x11c0dc6)
>  
>  DEBUG | foo              | XmppPrivateChatProducer          | 
> pache.camel.impl.DefaultProducer   66 | Starting producer: 
> Producer[xmpp://wsb...@websphere/ma...@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | 
> .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: 
> Endpoint[xmpp://wsb...@websphere/ma...@websphere?password=123456789] for 
> producer: 
> Producer[xmpp://wsb...@websphere/ma...@websphere?password=123456789] 
>  DEBUG | foo              | DefaultErrorHandler              | 
> rg.apache.camel.processor.Logger  197 | Failed delivery for exchangeId: 
> 8f812d3e-15cc-4ca3-b6c0-4077beef75bc. On delivery attempt: 0 caught: 
> java.lang.NullPointerException 
>  DEBUG | foo              | DefaultErrorHandler              | 
> processor.RedeliveryErrorHandler  411 | This exchange is not handled so its 
> marked as failed: Exchange[Message: Hello, i am message] 
>  DEBUG | foo              | Pipeline                         | 
> .apache.camel.processor.Pipeline   99 | Message exchange has failed so 
> breaking out of pipeline: Exchange[Message: Hello, i am message] Exception: 
> java.lang.NullPointerException 
>  ERROR | foo              | TimerConsumer                    | 
> rg.apache.camel.processor.Logger  248 | 
> java.lang.NullPointerException 
>         at 
> org.jivesoftware.smackx.muc.MultiUserChat$1.connectionCreated(MultiUserChat.java:84)
>  
>         at 
> org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:887) 
>         at 
> org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:834)
>  
>         at 
> org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276) 
>         at 
> org.apache.camel.component.xmpp.XmppEndpoint.createConnection(XmppEndpoint.java:140)
>  
>         at 
> org.apache.camel.component.xmpp.XmppPrivateChatProducer.process(XmppPrivateChatProducer.java:52)
>  
>         at 
> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)
>  
>         at 
> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)
>  
>         at 
> org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146) 
>         at 
> org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94) 
>         at 
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82) 
>         at 
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>  
>         at 
> org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
>  
>         at 
> org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
>  
>         at 
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:162)
>  
>         at 
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>  
>         at 
> org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:223)
>  
>         at 
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:153)
>  
>         at 
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
>  
>         at 
> org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
>  
>         at 
> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:206) 
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:74) 
>         at 
> org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:54)
>  
>         at 
> org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
>  
>         at 
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>  
>         at 
> org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:103)
>  
>         at 
> org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:50) 
>         at java.util.TimerThread.mainLoop(Timer.java:512) 
>         at java.util.TimerThread.run(Timer.java:462) 
> On Felix installed all requirement bundles (camel-osgi, camel-xmpp, etc).
> Full project attached in topic
> http://old.nabble.com/camel-xmpp-not-sends-message-in-Felix-Karaf-td27544316.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to