You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Aleksey Masny (JIRA)" <ji...@apache.org> on 2010/02/11 14:37:32 UTC

[jira] Created: (CAMEL-2464) camel-xmpp not sends message in Felix Karaf

camel-xmpp not sends message in 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


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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
 DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Resolved: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2464.
--------------------------------

    Fix Version/s: 2.3.0
       Resolution: Fixed

> 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
>            Assignee: Stan Lewis
>             Fix For: 2.3.0
>
>         Attachments: smack-3.1.0-bundle.jar, 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Updated: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Aleksey Masny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: smack-3.1.0-bundle.jar

I tried replace Smack from 3.0.4 to 3.1.0 and camel-xmpp properly work now. And successfully sending messages! :) 

To do this, I made:
1. feature:install camel-xmpp 2.1.0
2. osgi:uninstall two smack-bundle v.3.0.4
3. osgi:install my custom bundle, which include two smack library v.3.1.0 and manually created MANIFEST.MF
4. refresh camel-xmpp for refresh import dependencies 
5. osgi:start my try-osgi bundle

My custom bundle is attached.

> 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
>            Assignee: Stan Lewis
>         Attachments: smack-3.1.0-bundle.jar, 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Commented: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Stan Lewis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57527#action_57527 ] 

Stan Lewis commented on CAMEL-2464:
-----------------------------------

Hey Aleksey, will have to try this, I had successfully used the xmpp component in an older version of SMX4 but things may have changed since then.  What are you using for an XMPP server BTW?  Can you see if specifying the port and serviceName argument changes the behavior while I'm looking into this?

> 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
>            Assignee: Stan Lewis
>         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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Commented: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Stan Lewis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57529#action_57529 ] 

Stan Lewis commented on CAMEL-2464:
-----------------------------------

Could be, we're using 3.0.4 in Camel.  The thing to do probably is to write a simple bundle that just uses smack/smackx and see if that shows the same problem, then try 3.1.0.  I can work on bumping the version of smack up to 3.1.0 in camel also.

> 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
>            Assignee: Stan Lewis
>         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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Commented: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Aleksey Masny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57528#action_57528 ] 

Aleksey Masny commented on CAMEL-2464:
--------------------------------------

I use local Openfire server.
Port and service name not changing. Endpoint configured by string "xmpp://wsbise@websphere/masny@websphere?password=123456789]", as see in log.

I tried to send a message from my custom bean (by Smack API), not using camel-xmpp. And received the same error.

16:32:29,653 | INFO  | foo              | Tracer                           | rg.apache.camel.processor.Logger   88 | 936982fe-f449-40ce-a426-0e3d9724126b >>> (route33) from(timer://foo?fixedRate=true&period=10000) --> setBody[Hello, i am message] <<< Pattern:InOnly, Headers:{firedTime=Thu Feb 11 16:32:29 EET 2010}, BodyType:null, Body:null
16:32:29,653 | INFO  | foo              | Tracer                           | rg.apache.camel.processor.Logger   88 | 936982fe-f449-40ce-a426-0e3d9724126b >>> (route33) setBody[Hello, i am message] --> bean://helper?method=notifyJabberClient <<< Pattern:InOnly, Headers:{firedTime=Thu Feb 11 16:32:29 EET 2010}, BodyType:String, Body:Hello, i am message
16:32:29,653 | DEBUG | foo              | DefaultListableBeanFactory       | tory.support.AbstractBeanFactory  214 | Returning cached instance of singleton bean 'helper'
16:32:30,215 | DEBUG | foo              | DefaultErrorHandler              | rg.apache.camel.processor.Logger  197 | Failed delivery for exchangeId: 936982fe-f449-40ce-a426-0e3d9724126b. On delivery attempt: 0 caught: java.lang.NullPointerException
16:32:30,215 | DEBUG | foo              | DefaultErrorHandler              | processor.RedeliveryErrorHandler  411 | This exchange is not handled so its marked as failed: Exchange[Message: Hello, i am message]
16:32:30,215 | 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
16:32:30,215 | 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 mti.try_xmpp.Helper.notifyJabberClient(Helper.java:15)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:195)
	at org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:115)
	at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:117)
	at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:95)
	at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:65)
	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)


May be it is a bug in Smack-bundle or Felix?

> 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
>            Assignee: Stan Lewis
>         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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Commented: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57554#action_57554 ] 

Willem Jiang commented on CAMEL-2464:
-------------------------------------

We need to upgrade the smack bundle in servicemix bundle module, in this way we can support it out of box.
Stan , you can take [this pom |https://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/smack-3.0.4/pom.xml] as an example.
And we also need to update apache-camel features file for this upgrading. 
BTW,
I fixed the issue of maven failed to resolve the smack 3.1.0 by adding the smack maven repository to camel-xmpp pom.
 

> 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
>            Assignee: Stan Lewis
>         Attachments: smack-3.1.0-bundle.jar, 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Commented: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58763#action_58763 ] 

Claus Ibsen commented on CAMEL-2464:
------------------------------------

Stan any update on this one, has the bundle been released?

> 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
>            Assignee: Stan Lewis
>         Attachments: smack-3.1.0-bundle.jar, 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59364#action_59364 ] 

Claus Ibsen commented on CAMEL-2464:
------------------------------------

Has been updated in features.xml
<smack-bundle-version>3.1.0_1</smack-bundle-version>

> 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
>            Assignee: Stan Lewis
>             Fix For: 2.3.0
>
>         Attachments: smack-3.1.0-bundle.jar, 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Commented: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Stan Lewis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58799#action_58799 ] 

Stan Lewis commented on CAMEL-2464:
-----------------------------------

No, doesn't look like my bundle's been released yet, the latest one on repo1.maven.org is 3.0.4_2

> 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
>            Assignee: Stan Lewis
>         Attachments: smack-3.1.0-bundle.jar, 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Stan Lewis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57599#action_57599 ] 

Stan Lewis commented on CAMEL-2464:
-----------------------------------

@Willem, Jean-Baptiste applied my patch there, just curious should I wait until that bundle is released or is it okay to reference a snapshot version from the features file?  I'm guessing this needs to wait until the updated smack bundle is actually released, just wanted to double-check.

> 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
>            Assignee: Stan Lewis
>         Attachments: smack-3.1.0-bundle.jar, 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Issue Comment Edited: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Aleksey Masny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57545#action_57545 ] 

Aleksey Masny edited comment on CAMEL-2464 at 2/12/10 10:14 AM:
----------------------------------------------------------------

I tried replace Smack from 3.0.4 to 3.1.0 and camel-xmpp properly work now. And successfully sending messages! :) 

To do this, I made:
1. feature:install camel-xmpp 2.1.0
2. osgi:uninstall two smack-bundle v.3.0.4
3. osgi:install my custom bundle, which include two smack library v.3.1.0 and manually created MANIFEST.MF
4. refresh camel-xmpp for refresh import dependencies 
5. osgi:start my try-xmpp bundle

My custom bundle is attached.

      was (Author: pilgr):
    I tried replace Smack from 3.0.4 to 3.1.0 and camel-xmpp properly work now. And successfully sending messages! :) 

To do this, I made:
1. feature:install camel-xmpp 2.1.0
2. osgi:uninstall two smack-bundle v.3.0.4
3. osgi:install my custom bundle, which include two smack library v.3.1.0 and manually created MANIFEST.MF
4. refresh camel-xmpp for refresh import dependencies 
5. osgi:start my try-osgi bundle

My custom bundle is attached.
  
> 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
>            Assignee: Stan Lewis
>         Attachments: smack-3.1.0-bundle.jar, 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Updated: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Aleksey Masny (JIRA)" <ji...@apache.org>.
     [ 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Updated: (CAMEL-2464) camel-xmpp not sends message in Felix Karaf

Posted by "Aleksey Masny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: try-xmpp-project.jar

my eclipse project

> camel-xmpp not sends message in 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Commented: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Stan Lewis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57557#action_57557 ] 

Stan Lewis commented on CAMEL-2464:
-----------------------------------

Okay Willem, will try and get this done today.

> 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
>            Assignee: Stan Lewis
>         Attachments: smack-3.1.0-bundle.jar, 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Commented: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57563#action_57563 ] 

Willem Jiang commented on CAMEL-2464:
-------------------------------------

@Stan,  Yes, we need to wait for the servicemix patch to be applied.

> 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
>            Assignee: Stan Lewis
>         Attachments: smack-3.1.0-bundle.jar, 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Commented: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Stan Lewis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57562#action_57562 ] 

Stan Lewis commented on CAMEL-2464:
-----------------------------------

Hey Willem, have created SMX4-484 with a patch.  Do I need to wait for this patch to be committed before updating the camel features file?

> 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
>            Assignee: Stan Lewis
>         Attachments: smack-3.1.0-bundle.jar, 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Assigned: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Stan Lewis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stan Lewis reassigned CAMEL-2464:
---------------------------------

    Assignee: Stan Lewis

> 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
>            Assignee: Stan Lewis
>         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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.


[jira] Commented: (CAMEL-2464) camel-xmpp not sends message if camel-application deployed to Felix Karaf

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59363#action_59363 ] 

Claus Ibsen commented on CAMEL-2464:
------------------------------------

Stan Smack 3.1 osgi bundle is now avail in central maven repo
http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.smack/3.1.0_1/

I think its just a matter of updating the features.xml to use this version

> 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
>            Assignee: Stan Lewis
>         Attachments: smack-3.1.0-bundle.jar, 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 + "/masny@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://wsbise@websphere/masny@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 masny@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://wsbise@websphere/masny@websphere?password=123456789] 
>  DEBUG | foo              | ProducerCache                    | .apache.camel.impl.ProducerCache  211 | Adding to producer cache with key: Endpoint[xmpp://wsbise@websphere/masny@websphere?password=123456789] for producer: Producer[xmpp://wsbise@websphere/masny@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.