[jdev] Problem of the EchoComponent sample code

Xiang (Gavin) Ye gavin.ye at gmail.com
Thu Feb 4 16:55:33 CST 2010


Hi,

It's the first time I work on jabber.
I am trying to write a Jabber Event Broker which can block user action or
filter the message.

I compiled EchoComponent sample code and put it on my Jabber Server (It's a
Jabber XCP 5.4 from Jabber Inc). But it started and then exit.
I can see an error message: "Pipe creation failed. Exiting the
Application!".

After that, I compiled the Java sample code. It also failed, but with more
information:
    2/4/10 12:27:40 AM [DEBUG]: ComponentProxy::onInitialize
    2/4/10 12:27:40 AM [DEBUG]: Component::onInitialize
    2/4/10 12:27:40 AM [INFO]: Connecting to the router @ /10.187.4.155:7
,400
    2/4/10 12:27:40 AM [INFO]: Connected to the router @ /10.187.4.155:7,400
    2/4/10 12:27:40 AM [DEBUG]: XMLStream writing: <stream:stream
xmlns='jabber:component:accept' xmlns:stream='
http://etherx.jabber.org/streams' to='eventbroker.jabber'>
    2/4/10 12:27:40 AM [DEBUG]: ComponentStream.onStreamOpen
    2/4/10 12:27:40 AM [DEBUG]: XMLStream writing:
<handshake>a187f586667d8a82ebdb69a7407c952c4a857692</handshake>
    2/4/10 12:27:40 AM [ERROR]: Component authentication with router failed.
    2/4/10 12:27:40 AM [DEBUG]: ComponentStream.onStreamError: Software
caused connection abort: recv failed
    2/4/10 12:27:40 AM [DEBUG]: EventBroker exited with SUCCESS

It seems it needs authentication with router.
Here is my question:
  1. Where can I configure the Component Authentication?
  2. Is there any extra steps I need to do except configure the JSM and
OpenPort?

Thanks!

== Gavin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20100204/d1ae69f1/attachment.htm>


More information about the JDev mailing list