Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » XMPP SO -> Gmail Woes
XMPP SO -> Gmail Woes [message #614871] Sun, 18 March 2007 21:17 Go to next message
Bob Brady is currently offline Bob BradyFriend
Messages: 28
Registered: July 2009
Junior Member
I'm not able to get XMPP gmail.com clients to share SharedObject
messages. While things work as expected with jabber.org connections,
gmail connections apparently only handle SO messages sent to themselves.

Does anybody have any advice? Details below:

What steps will reproduce the problem?
=======================================
1. Checkout org.eclipse.ecf.example.clients plugin from ECF CVS

2. Change XMPPSORobotApplication.java line 80:
sendSOMessage(count + " hello from " + userName);

3. Run two instances of app with different users, as sender/target pairs
instance 1 args: user_1 gmail.com user_1pass user_2@gmail.com
instance 2 args: user_2 gmail.com user_2pass user_1@gmail.com


What is the expected output? What do you see instead?
======================================================
user_1 instance console should see:
TrivialSharedObject.handleMessage(1 hello from user_2)
...
TrivialSharedObject.handleMessage(10 hello from user_2)

user_2 instance console should see:
TrivialSharedObject.handleMessage(1 hello from user_1)
...
TrivialSharedObject.handleMessage(10 hello from user_1)

Instead I see for user_1:
TrivialSharedObject.handleMessage(1 hello from user_1)
...
TrivialSharedObject.handleMessage(10 hello from user_1)
And instead for user_2:
TrivialSharedObject.handleMessage(1 hello from user_2)
...
TrivialSharedObject.handleMessage(10 hello from user_2)


Thanks ECF,
Bob
Re: XMPP SO -> Gmail Woes [message #614873 is a reply to message #614871] Tue, 20 March 2007 00:34 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Bob,

On 3/19/2007 I significantly refactored and enhanced the functionality
of the example applications in org.eclipse.ecf.example.clients...and
then redid the tests Bob describes with two gmail.com accounts. In
short, it seems to be working OK with the two gmail accounts that I
tried. I would like to ask Bob to try his tests again with his two
accounts and try to reproduce the problem he was seeing.

See below for a summary of the refactorings.

I ran things with with the new code and it correctly prints out the
following (using two gmail addresses: scottslewis@gmail.com,
mcginley@gmail.com)

scottslewis@gmail.com shows

ECF so chat robot (scottslewis@gmail.com)
handleMessage(ChatMessage[fromID=StringID[Ce98e0];threadID=n ull;type=chat;subject=null;body=Hi,
I'm an IM robot;props={}])
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)


mcginley@gmail.com shows

ECF so chat robot (mcginley@gmail.com)
handleMessage(ChatMessage[fromID=StringID[Ce98e1];threadID=n ull;type=chat;subject=null;body=Hi,
I'm an IM robot;props={}])
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)

And these seem to be correct (scottslewis is receiving hellos from
mcginley and vice versa).

So perhaps there is something different about Bob's accounts...if this
is the case I would like to find this out and report it to gmail.com.
So Bob please consider getting the latest code and rerunning the tests
with your two accounts.

Bob please get in touch with me directly at slewis@composent.com if any
of this is not clear.

Thanksinadvance,

Scott


Short summary of the refactorings in org.eclipse.ecf.example.clients:

1) Created new package org.eclipse.ecf.example.clients.applications and
moved application classes into this package.

2) Renamed application classes. Where there were two, there are now
three applications:

a) ChatRobotApplication. This is an IM robot.
The expected arguments are: <username> <host> <password> <targetIMReceiver>
for example:
fliwatuet ecf.eclipse.org fliwatuet slewis@ecf.eclipse.org

(BTW, fliwatuet is a test user on ecf.eclipse.org that anyone can use)

b) ChatSORobotApplication. This is also an IM robot, but it uses the
shared object API as Bob describes in his note. The expected arguments
are the same as ChatRobotApplication.

c) ChatRoomRobotApplication. This is a chat *room* robot, that expects
to join/participate in an XMPP chat room. The expected arguments are:

<username> <host> <password> <targetRoom>
for example:
fliwatuet ecf.eclipse.org fliwatuet ecf@conference.ecf.eclipse.org

Bob Brady wrote:
> I'm not able to get XMPP gmail.com clients to share SharedObject
> messages. While things work as expected with jabber.org connections,
> gmail connections apparently only handle SO messages sent to themselves.
>
> Does anybody have any advice? Details below:
>
> What steps will reproduce the problem?
> =======================================
> 1. Checkout org.eclipse.ecf.example.clients plugin from ECF CVS
>
> 2. Change XMPPSORobotApplication.java line 80:
> sendSOMessage(count + " hello from " + userName);
>
> 3. Run two instances of app with different users, as sender/target pairs
> instance 1 args: user_1 gmail.com user_1pass user_2@gmail.com
> instance 2 args: user_2 gmail.com user_2pass user_1@gmail.com
>
>
> What is the expected output? What do you see instead?
> ======================================================
> user_1 instance console should see:
> TrivialSharedObject.handleMessage(1 hello from user_2)
> ...
> TrivialSharedObject.handleMessage(10 hello from user_2)
>
> user_2 instance console should see:
> TrivialSharedObject.handleMessage(1 hello from user_1)
> ...
> TrivialSharedObject.handleMessage(10 hello from user_1)
>
> Instead I see for user_1:
> TrivialSharedObject.handleMessage(1 hello from user_1)
> ...
> TrivialSharedObject.handleMessage(10 hello from user_1)
> And instead for user_2:
> TrivialSharedObject.handleMessage(1 hello from user_2)
> ...
> TrivialSharedObject.handleMessage(10 hello from user_2)
>
>
> Thanks ECF,
> Bob
Re: XMPP SO -> Gmail Woes [message #614875 is a reply to message #614871] Tue, 20 March 2007 13:57 Go to previous message
Bob Brady is currently offline Bob BradyFriend
Messages: 28
Registered: July 2009
Junior Member
Hi Scott,

Thanks for the rapid response.

Yes, you are correct, the problem was in the configuration of the two
gmail accounts I was using. One of the two users must first send an
invitation to chat to the other, who must accept it. After this is
done, the XMPP SO messaging with gmail works as expected.

I'm sorry to have brought this up. When jabber.org went down on Sunday
I hastily created two gmail accounts for dev and forgot about the invites.

Thanks again for the commercial level support!

Bob
Previous Topic:Google Summer of Code 2007
Next Topic:ECF recent progress
Goto Forum:
  


Current Time: Fri Apr 26 10:49:45 GMT 2024

Powered by FUDForum. Page generated in 0.03030 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top