camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Chekan <vche...@cox.net>
Subject Re: xmpp endpoint exception
Date Fri, 29 Aug 2008 04:47:43 GMT
Steve,

Here is my configuration and it gives me 
"org.apache.camel.component.xmpp.RuntimeXmppException: SASL 
authentication failed" which is expected.

<from uri="timer://kickoff?period=10000&amp;delay=1"/>
<setBody><constant>bla-bla</constant></setBody>
<to uri="xmpp://superman@jabber.org/joker@jabber.org?password=secret" />

If I set my real credentials then it works fine:
2008-08-29 04:45:18,341 [d=10000&delay=1] INFO  TraceInterceptor 
        - ID-ubuntu/54546-1219985108338/1-1 -> to1 
To[xmpp://vchekan@jabber.org/joker@jabber.org?password=xxxxxxx] InOnly 
Properties:{org.apache.camel.timer.firedtime=Fri Aug 29 04:45:18 GMT 
2008, org.apache.camel.timer.name=kickoff, 
org.apache.camel.timer.period=10000} Headers:{} BodyType:String Body:bla-bla
2008-08-29 04:45:18,341 [d=10000&delay=1] DEBUG XmppPrivateChatProducer 
        - >>>> message: bla-bla

Could you provide your configuration or java route builder please?

Vadim.

Steve A. wrote:
> 
> 
> Vadim Chekan wrote:
>> Hi Steve,
>> Where to do you wan to send messages?
>> There are 2 options: private chat or a multiuser room.
>> Please see examples at http://activemq.apache.org/camel/xmpp.html and 
>> let me know if it is not clear.
>>
> 
> I'm trying to send a private chat. 
> 
> I was actually trying to follow those examples.  I got that error when I was
> using the xmpp://superman@jabber.org/joker@jabber.org?password=secret style
> URI, so then I tried the
> xmpp://superman@jabber.org/?participant=joker@jabber.org&password=secret
> style URI and got different results.
> 
> Now, it looks like it's trying to establish a connection, but I'm getting a
> NPE in the smack API. Any thoughts on the stack trace below?
> 
> [java] java.lang.NullPointerException
>      [java] 	at
> org.jivesoftware.smack.util.DNSUtil.resolveXMPPDomain(DNSUtil.java:97)
>      [java] 	at
> org.jivesoftware.smack.ConnectionConfiguration.<init>(ConnectionConfiguration.java:81)
>      [java] 	at
> org.jivesoftware.smack.XMPPConnection.<init>(XMPPConnection.java:190)
>      [java] 	at
> org.apache.camel.component.xmpp.XmppEndpoint.createConnection(XmppEndpoint.java:213)
>      [java] 	at
> org.apache.camel.component.xmpp.XmppEndpoint.getConnection(XmppEndpoint.java:197)
>      [java] 	at
> org.apache.camel.component.xmpp.XmppPrivateChatProducer.process(XmppPrivateChatProducer.java:50)
>      [java] 	at
> org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
>      [java] 	at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
>      [java] 	at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
>      [java] 	at
> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
>      [java] 	at
> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
>      [java] 	at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
>      [java] 	at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
>      [java] 	at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
>      [java] 	at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
>      [java] 	at
> org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:152)
>      [java] 	at
> org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:88)
>      [java] 	at
> org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:98)
>      [java] 	at
> org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:64)
>      [java] 	at
> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
>      [java] 	at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>      [java] 	at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>      [java] 	at
> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>      [java] 	at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>      [java] 	at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>      [java] 	at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>      [java] 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>      [java] 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> 
> Steve
> 
> 
> 
> 


Mime
View raw message