4 Feb 23:55
Problem of the EchoComponent sample code
Xiang (Gavin) Ye <gavin.ye <at> gmail.com>
2010-02-04 22:55:33 GMT
2010-02-04 22:55:33 GMT
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 <at> /10.187.4.155:7,400
2/4/10 12:27:40 AM [INFO]: Connected to the router <at> /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
_______________________________________________ JDev mailing list Forum: http://www.jabberforum.org/forumdisplay.php?f=20 Info: http://mail.jabber.org/mailman/listinfo/jdev Unsubscribe: JDev-unsubscribe <at> jabber.org _______________________________________________
RSS Feed