Xiang (Gavin) Ye | 4 Feb 23:55
Picon
Gravatar

Problem of the EchoComponent sample code

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
_______________________________________________
Norman Rasmussen | 5 Feb 22:10
Picon
Favicon
Gravatar

Re: Problem of the EchoComponent sample code

Gavin: this mailing list can't help much with anything Jabber Inc. XCP related.  I suggest you contact Jabber Inc. directly for support.

On Thu, Feb 4, 2010 at 10:55 PM, Xiang (Gavin) Ye <gavin.ye <at> gmail.com> wrote:
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
_______________________________________________




--
- Norman Rasmussen
- Email: norman <at> rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/
_______________________________________________
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
_______________________________________________
Xiang (Gavin) Ye | 5 Feb 23:33
Picon
Gravatar

Re: Problem of the EchoComponent sample code

Hi Norman,


I see.
Thanks a lot for your reply!

== Gavin

On Fri, Feb 5, 2010 at 1:10 PM, Norman Rasmussen <norman <at> rasmussen.co.za> wrote:
Gavin: this mailing list can't help much with anything Jabber Inc. XCP related.  I suggest you contact Jabber Inc. directly for support.

On Thu, Feb 4, 2010 at 10:55 PM, Xiang (Gavin) Ye <gavin.ye <at> gmail.com> wrote:
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
_______________________________________________




--
- Norman Rasmussen
- Email: norman <at> rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/

_______________________________________________
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
_______________________________________________




--
==============================
How to redeem ?
_______________________________________________
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
_______________________________________________
Davide Cerbo | 6 Feb 00:20
Picon

Protect message between multiple client instance

Hi all, I am developing a little application to do an experiment.
I have the following scenario:
- one XMPP bot with id bot <at> abc.com)
- one user connect with a generic client, with id user <at> abc.com and that have the XMPP bot between his contacts 
- the same user with id user <at> abc.com connect from my custom client

It's possible to send a message from bot <at> abc.com to user <at> abc.com connected with my custom client?
I do not want that the user logged with generic client receive the message.
I need it because I want to send via XMPP: chat messages and also command to throw some events in my custom client and I do not like if the user views them.

Any suggest would be very appreciate.
I hope you understand my explanation because I'm an Italian boy and my english is not so good :)
Thank you very much 

--
--
Davide Cerbo
-----------
http://davide.cerbo.born-to-co.de
http://jesty.it
-----------
http://www.exmachina.ch
+ 39 329 70 81 927
-----------
_______________________________________________
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
_______________________________________________
Norman Rasmussen | 6 Feb 00:57
Picon
Favicon
Gravatar

Re: Protect message between multiple client instance

You can connect with a custom resource, and then send the message/iq directly to the resource.  If you send an iq instead of message, then the server will not default to sending it to the user's generic client if the custom client is not connected.

On Fri, Feb 5, 2010 at 11:20 PM, Davide Cerbo <davidecerbo <at> gmail.com> wrote:
Hi all, I am developing a little application to do an experiment.
I have the following scenario:
- one XMPP bot with id bot <at> abc.com)
- one user connect with a generic client, with id user <at> abc.com and that have the XMPP bot between his contacts 
- the same user with id user <at> abc.com connect from my custom client

It's possible to send a message from bot <at> abc.com to user <at> abc.com connected with my custom client?
I do not want that the user logged with generic client receive the message.
I need it because I want to send via XMPP: chat messages and also command to throw some events in my custom client and I do not like if the user views them.

Any suggest would be very appreciate.
I hope you understand my explanation because I'm an Italian boy and my english is not so good :)
Thank you very much 

--
--
Davide Cerbo
-----------
http://davide.cerbo.born-to-co.de
http://jesty.it
-----------
http://www.exmachina.ch
+ 39 329 70 81 927
-----------

_______________________________________________
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
_______________________________________________




--
- Norman Rasmussen
- Email: norman <at> rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/
_______________________________________________
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
_______________________________________________
Picon

Re: Protect message between multiple client instance

Hello

On Sat, Feb 06, 2010 at 12:20:07AM +0100, Davide Cerbo wrote:
> It's possible to send a message from bot <at> abc.com to user <at> abc.com connected
> with my custom client?
> I do not want that the user logged with generic client receive the message.
> I need it because I want to send via XMPP: chat messages and also command to
> throw some events in my custom client and I do not like if the user views
> them.

This suggests you want to send some usual messages with body and so on to
accomplish some automated communication with the client and not the user, right?
May I suggest you use some different XML namespace in the messages so the
generic client does not know them even when it gets there by some mistake and
does not interpret them? Sorry if I misunderstood what you want to do.

Have a nice day.

--

-- 
~, sweet ~

Michal 'vorner' Vaner
_______________________________________________
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
_______________________________________________
Davide Cerbo | 6 Feb 13:16
Picon

Re: Protect message between multiple client instance

Thanks all for the suggestes.
The solution proposed by Norman sounds good but doesn't works for me.
The bot and the users use Google Talk as server and it doesn't filter
the message by resource. I have some trouble to send IQ message, but
now I'm working to solve.
The solution proposed by Vaner works well.
Thanks very much to everyone now I have get the right way to solve my problem :)
bye bye
Davide

2010/2/6 Michal 'vorner' Vaner <vorner <at> ucw.cz>
>
> Hello
>
> On Sat, Feb 06, 2010 at 12:20:07AM +0100, Davide Cerbo wrote:
> > It's possible to send a message from bot <at> abc.com to user <at> abc.com connected
> > with my custom client?
> > I do not want that the user logged with generic client receive the message.
> > I need it because I want to send via XMPP: chat messages and also command to
> > throw some events in my custom client and I do not like if the user views
> > them.
>
> This suggests you want to send some usual messages with body and so on to
> accomplish some automated communication with the client and not the user, right?
> May I suggest you use some different XML namespace in the messages so the
> generic client does not know them even when it gets there by some mistake and
> does not interpret them? Sorry if I misunderstood what you want to do.
>
> Have a nice day.
>
> --
> ~, sweet ~
>
> Michal 'vorner' Vaner
>
> _______________________________________________
> 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
> _______________________________________________
>

-- 
--

-- 
Davide Cerbo
-----------
http://davide.cerbo.born-to-co.de
http://jesty.it
-----------
http://www.exmachina.ch
+ 39 329 70 81 927
-----------
_______________________________________________
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
_______________________________________________

Tuomas Koski | 6 Feb 13:28
Picon
Gravatar

Re: Protect message between multiple client instance

Hi Davide,

On 6 February 2010 13:16, Davide Cerbo <davidecerbo <at> gmail.com> wrote:
> Thanks all for the suggestes.
> The solution proposed by Norman sounds good but doesn't works for me.
> The bot and the users use Google Talk as server and it doesn't filter
> the message by resource. I have some trouble to send IQ message, but
> now I'm working to solve.
> The solution proposed by Vaner works well.
> Thanks very much to everyone now I have get the right way to solve my problem :)
> bye bye
> Davide

It might also help you to study XEPs 115: Entity Capabilities
(http://xmpp.org/extensions/xep-0115.html) and/or XEP 30 service
discovery (http://xmpp.org/extensions/xep-0030.html).

Using the extensions mentioned above, you can discover the clients
that can support the "special use case".

Cheers,
--
Tuomas

> 2010/2/6 Michal 'vorner' Vaner <vorner <at> ucw.cz>
>>
>> Hello
>>
>> On Sat, Feb 06, 2010 at 12:20:07AM +0100, Davide Cerbo wrote:
>> > It's possible to send a message from bot <at> abc.com to user <at> abc.com connected
>> > with my custom client?
>> > I do not want that the user logged with generic client receive the message.
>> > I need it because I want to send via XMPP: chat messages and also command to
>> > throw some events in my custom client and I do not like if the user views
>> > them.
>>
>> This suggests you want to send some usual messages with body and so on to
>> accomplish some automated communication with the client and not the user, right?
>> May I suggest you use some different XML namespace in the messages so the
>> generic client does not know them even when it gets there by some mistake and
>> does not interpret them? Sorry if I misunderstood what you want to do.
>>
>> Have a nice day.
>>
>> --
>> ~, sweet ~
>>
>> Michal 'vorner' Vaner
>>
>> _______________________________________________
>> 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
>> _______________________________________________
>>
>
>
>
> --
> --
> Davide Cerbo
> -----------
> http://davide.cerbo.born-to-co.de
> http://jesty.it
> -----------
> http://www.exmachina.ch
> + 39 329 70 81 927
> -----------
> _______________________________________________
> 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
> _______________________________________________
>
_______________________________________________
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
_______________________________________________

Davide Cerbo | 6 Feb 13:30
Picon

Re: Protect message between multiple client instance

great! :)

2010/2/6, Tuomas Koski <koski.tuomas <at> gmail.com>:
> Hi Davide,
>
> On 6 February 2010 13:16, Davide Cerbo <davidecerbo <at> gmail.com> wrote:
>> Thanks all for the suggestes.
>> The solution proposed by Norman sounds good but doesn't works for me.
>> The bot and the users use Google Talk as server and it doesn't filter
>> the message by resource. I have some trouble to send IQ message, but
>> now I'm working to solve.
>> The solution proposed by Vaner works well.
>> Thanks very much to everyone now I have get the right way to solve my
>> problem :)
>> bye bye
>> Davide
>
> It might also help you to study XEPs 115: Entity Capabilities
> (http://xmpp.org/extensions/xep-0115.html) and/or XEP 30 service
> discovery (http://xmpp.org/extensions/xep-0030.html).
>
> Using the extensions mentioned above, you can discover the clients
> that can support the "special use case".
>
>
> Cheers,
> --
> Tuomas
>
>
>
>> 2010/2/6 Michal 'vorner' Vaner <vorner <at> ucw.cz>
>>>
>>> Hello
>>>
>>> On Sat, Feb 06, 2010 at 12:20:07AM +0100, Davide Cerbo wrote:
>>> > It's possible to send a message from bot <at> abc.com to user <at> abc.com
>>> > connected
>>> > with my custom client?
>>> > I do not want that the user logged with generic client receive the
>>> > message.
>>> > I need it because I want to send via XMPP: chat messages and also
>>> > command to
>>> > throw some events in my custom client and I do not like if the user
>>> > views
>>> > them.
>>>
>>> This suggests you want to send some usual messages with body and so on to
>>> accomplish some automated communication with the client and not the user,
>>> right?
>>> May I suggest you use some different XML namespace in the messages so the
>>> generic client does not know them even when it gets there by some mistake
>>> and
>>> does not interpret them? Sorry if I misunderstood what you want to do.
>>>
>>> Have a nice day.
>>>
>>> --
>>> ~, sweet ~
>>>
>>> Michal 'vorner' Vaner
>>>
>>> _______________________________________________
>>> 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
>>> _______________________________________________
>>>
>>
>>
>>
>> --
>> --
>> Davide Cerbo
>> -----------
>> http://davide.cerbo.born-to-co.de
>> http://jesty.it
>> -----------
>> http://www.exmachina.ch
>> + 39 329 70 81 927
>> -----------
>> _______________________________________________
>> 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
>> _______________________________________________
>>
> _______________________________________________
> 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
> _______________________________________________
>

-- 
--

-- 
Davide Cerbo
-----------
http://davide.cerbo.born-to-co.de
http://jesty.it
-----------
http://www.exmachina.ch
+ 39 329 70 81 927
-----------
_______________________________________________
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
_______________________________________________

Sebastiaan Deckers | 7 Feb 12:45
Favicon
Gravatar

DOM vulnerability/feature

This DOM quirk could be of interest to any XMPP developers using
Libxml or MSXML (before 6.0) where resolveExternals is true by
default.

http://pastebin.com/f72bf5426

Remember kids, always set resolveExternals to false before parsing a DOM.

Sebastiaan
_______________________________________________
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
_______________________________________________


Gmane