Skip to main content

XMPP presence module installed in Community PW instance

11 replies [Last post]
maggiel
Offline
Joined: 2003-06-10

We now have the XMPP presence module installed in the Community Project Wonderland instance. The posting of status information is a little bit wonky; with use we'll refine what the failure modes are and get them fixed.

PW-community@programmer-art.org

Be aware that using GTalk/Gmail with this requires a response as an XMPP message that is not automated, I'll have to respond to the invitation manually.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
matty_x
Offline
Joined: 2008-06-16

Maggie, I've been trying to get the xmpp-presence module working with our project and I've only had limited success. I wrote up a how-to on it here: http://forums.java.net/jive/thread.jspa?threadID=74090&tstart=45

I experienced the following problems when trying to set things up. I was wondering if you may have encountered them as well and if you might have any tips for moving forward.

-Shortly after I receive the confirmation message from step 11 above, the Wonderland Jabber account disconnects from my local Jabber client and is no longer visible in my buddy/contact list.

-I can send messages to my Google Talk account from inside Wonderland, but I cannot send messages from my Google Talk account to Wonderland. However, this only works for a short time, after which I receive the message "Server: my.IM.account@gmail.com has disconnected" and sending of messages no longer works.

maggiel
Offline
Joined: 2003-06-10

The XMPP connection from GTalk to XMPPpresence seems to establish and break when Google feels like it. Basically GTalk is not the best way to talk to XMPPpresence.

Right now sessions set up though programmer-art.org seem to have some sort of sequencing problem in the area of setting the status message... and my server connecting as PW-matrisync@programmer-art.org seems to think sasxprovider is a logged-in user. Twice. ;-)

matty_x
Offline
Joined: 2008-06-16

What are you using to talk to xmpp-presence? Another jabber account?

maggiel
Offline
Joined: 2003-06-10

Mostly my Gmail account. I sign on to PW-community@programmer-art.org and PW-matrisync@programmer-art.org though Pidgin to respond to the chat invites.

Message was edited by: maggiel

matty_x
Offline
Joined: 2008-06-16

OK, I think I may not have been as clear as I could have been. So this might be too much gory detail, but I just want to make sure we're on the same page :-)

Here's how I'm understanding things: 1. Google Talk is a Jabber service. 2. GTalk is Google's software for using that service. 3. Gmail has nothing to do with this other than that you use your Gmail username to sign in.

I am using Pidgin. I am logging in to Pidgin using my Google Talk account. I use my Gmail username to log in to my Google Talk account inside of Pidgin. :-P

So here's the scenario right after I restart the Wonderland server. I see the user I setup via xmpp-presence show up in my Pidgin buddy list and I receive an automated IM from xmpp-presence. Then after a few seconds that user disappears from my buddy list. I can't send IMs to that user at all from Pidgin.

Now I hop over to Wonderland and type an IM in the text chat with the "@" appended. That IM shows up in Pidgin (but I can't IM back). This works for a minute or two and then I get a message that the user has disconnected.

I can't figure out what's going on or where the problem might be.

maggiel
Offline
Joined: 2003-06-10

Yeah, sorry. Google Talk is the official name for Google's chat service, which uses XMPP. The GMail site has a GTalk "chat" portal. GTalk uses Google Accounts, as does GMail, Android Market, Google Application Engine, and about a zillion other Googlethings.

I'm able to pass messages back and forth...here's a transcript from the GTalk side.

pw-community@programmer-art.org to me
show details 8:37 PM (16 hours ago)
8:19 PM
me: foo

pw-community: Hi! Any messages you type to me will be sent in-world. You can join the world here: http://204.153.12.99:8080/wonderland-web-front/app/Wonderland.jnlp
9 minutes
8:29 PM
me: test

pw-community: maggiel: foo
8:30 PM
maggiel: bar

me: Hello, everybody in-world!
6 minutes
8:37 PM
me: test again

pw-community: Hi! Any messages you type to me will be sent in-world. You can join the world here: http://204.153.12.99:8080/wonderland-web-front/app/Wonderland.jnlp

maggiel: test again

me: test anon
8:38 PM
pw-community: maggiel: foo

matty_x
Offline
Joined: 2008-06-16

Did you follow the process in that forum post I wrote or did you go DIY? I'm curious if I made an error somewhere...

maggiel
Offline
Joined: 2003-06-10

Actually, I'd forgotten the post. Nicole got the module installed, and I went to the source code for the server parms.

I installed it in my own server, decided it was working, and then set the parms in and restarted the community instance.

My server seems to work a little bit better; I'm not at the same code level as the community server; being on a somewhat downlevel daily.

matty_x
Offline
Joined: 2008-06-16

Thanks Maggie. All of the info I posted was from the source as well.

Any chance you might post a screenshot of your server setup (minus the sensitive info, of course)?

maggiel
Offline
Joined: 2003-06-10

In a screen shot of the server edit page, long property names can't be easily read.

This excerpt from DeploymentPlan.xml is probably better:


localhost

wonderland.modules.xmpp-presence.account
PW-matrisync
wonderland.modules.xmpp-presence.server
programmer-art.org
wonderland.modules.xmpp-presence.password
{deleted for security}
sgs.password.file
/home/maggie/wonderland/sgs.password.file
wonderland.web.server.url
http://faithhold.dyndns.org:8088/
org.jdesktop.wonderland.modules.darkstar.server.DarkstarRunnerImpl
Darkstar Server

matty_x
Offline
Joined: 2008-06-16

Awesome... thanks. I'll compare with our setup.