Problem: Connecting to Openfire chat server with iJab 1.0 beta 2 client (latest client code on google code)

129 views
Skip to first unread message

Steve Keener

unread,
Mar 15, 2010, 11:14:57 AM3/15/10
to ijab group
Problem: Connecting to Openfire chat server with iJab 1.0 beta 2
client

I seem to be hitting the Openfire server but no result. The iJab
client disconnects eventually. So I think I'm close. But I don't
have the basic source code to work from and try to commenting and
logging. Not being an http-bind guru I'm asking for guidance.

Development platform: MacBook

Chat Server: Latest Openfire installed on the MacBook.

Used ports:

HTTP Binding: enabled on 7070
script syntax: enabled, BOSH
Standard port: 5222

iJab configuration file:

var iJabConf =
{
client_type:"xmpp",
app_type:"bar",
theme:"standard",
debug:true,
avatar_url:"http://samespace.anzsoft.com/portal_memberdata/
portraits/{username}",
enable_roster_manage:true,
enable_talkto_stranger:true,
expand_bar_default:false,
enable_login_dialog:true,
hide_online_group:false,
disable_option_setting:false,
disable_msg_browser_prompt:false,
xmpp:{
//domain:"localhost",
domain:"pubsub.localhost",
http_bind:"http://localhost:5222/http-bind/",
host:"localhost",
port:5222,
server_type:"ejabberd",
roster_mode:"all",
auto_login:false,
username_cookie_field:"username",
token_cookie_field:"SID",
anonymous_prefix:"",
max_reconnect:3
},
<snip>

Deployment server for simple web app: Tomcat 6.0

Apache 2.2 not being used currently.

HTTP-BIND call:

http://localhost:5222/http-bind/?xml=%3Cbody+content%3D%27text%2Fxml%3B+charset%3Dutf-8%27+hold%3D%271%27+requests%3D%272%27+rid%3D%276525963%27+to%3D%27pubsub.localhost%27+ver%3D%271.6%27+cache%3D%27on%27+wait%3D%2730%27+xmlns%3D%27http%3A%2F%2Fjabber.org%2Fprotocol%2Fhttpbind%27+xmlns%3Axmpp%3D%27urn%3Axmpp%3Axbosh%27+secure%3D%27false%27+xmpp%3Aversion%3D%271.0%27+route%3D%27xmpp%3Alocalhost%3A5222%27%2F%3E&callback=__gwt_jsonp__.I0.onSuccess

Results:

Openfire is seeing *something*. It is accepting a connection. I
can see data in the logs.

The Warn log gives this: 2010.03.15 10:50:06 Error parsing user
request. [127.0.0.1]

The debug log gives the following:

2010.03.15 10:44:46 << "Content-Encoding: gzip[\r][\n]"
2010.03.15 10:44:46 << "Set-Cookie:
jive.server.info="serverName=www.igniterealtime.org:serverPort=80:contextPath=/
community:localName=localhost.localdomain:localPort=9061:localAddr=127.0.0.1";
Version=1; Path=/community[\r][\n]"
2010.03.15 10:44:46 << "Set-Cookie:
JSESSIONID=2D17945488712D6967DA31D69B6D9DDB; Path=/community[\r][\n]"
2010.03.15 10:44:46 << "[\r][\n]"
2010.03.15 10:44:46 Cookie accepted: "$Version="1";
jive.server.info="serverName=www.igniterealtime.org:serverPort=80:contextPath=/
community:localName=localhost.localdomain:localPort=9061:localAddr=127.0.0.1";
$Path="/community""
2010.03.15 10:44:46 Cookie accepted: "$Version=0;
JSESSIONID=2D17945488712D6967DA31D69B6D9DDB; $Path=/community"
2010.03.15 10:44:46 << "6"
2010.03.15 10:44:46 << "f"
2010.03.15 10:44:46 << "3"
2010.03.15 10:44:46 << "[\r]"
2010.03.15 10:44:46 << "[\n]"
2010.03.15 10:44:46 << "[0x1f]"
2010.03.15 10:44:46 << "[0x8b]"
2010.03.15 10:44:46 << "[0x8]"
2010.03.15 10:44:46 << "[0x0][0x0][0x0][0x0][0x0][0x3]"
2010.03.15 10:44:46 << "[0xec]Ymo[0xdb]6[0x10][0xfe]>`[0xff]
[0x81]u[0x81]u[0x3]J[0xbd][0xf9]%[0x92][0x93][0xb8]oi[0x87][0x16]
[0xcb]Z,.[0x6]l[0x18][\n]"
2010.03.15 10:44:46 << "[0x8a]:[0xdb]J$R[0x10][0xa9]8[0xfe][0xf7];
[0xea][0xcd]v[0xe3]4[0xb6][0xd7]4m[0xb1]o[0xa4]y<[0x1d][0xef]N[0xcf]
[0xf3]P>zr[0x95]&[0xe4][0x12]r[0x15]Kq[0xdc]q-[0xa7]C@p[0x19]
[0xc5]bz[0xdc]y?~E[0xfd][0xce][0x93][0xd1][0x8f]?[0x1c]
[0xe5]J[0x11]4[0x15]j[0xc8][0xa5][0xd0] [0xf4]qg[0xa6]u6[0xb4][0xed]
[0xac][0xc8][0x13]K[0xe6]S[0x1b]Mlt`[0xa7]2*[0x12]Pvmhw[0x9a][0x8d]
[0x9][0xb0]\e[0x8c]C[0xbb]w>[0x9f][[0xe7][0xf1]%(9[0xd1]s[0x96][0x83]
[0xc5]ej[0x97][0xd6][0xf6][0xd2][0xda]8n|[0xe4][0xd1]dm[0xf3][0xbc]
[>[0xda][\r][0x82][0xc0]v<[0xdb][0xf3](ZP[0xb5][0x10][0x9a]]Q[0xa1]
[0x1e]6[0xfb][0xe6][0x93][0xf9]r[0x1f]$[0xc9]D[0xe6])Ds[0x8][0xcb]
[0xed]/d[0x9a]b[0xa4][0xcf][0xde][0xbd]n[0x83][0x95][0x19][0x8][0x85]
[0x11][0xf0]Y[0xbb][0x8f][0x5]ex[0xd4]V[0x19]p{i[0x80][0x87]v[0xdb]}
[0x11][0xbf][0x9e][0x98][0x88][0xdb][0x90][0x80]y[0x82]Z[0xb3][0xc5]
[0x18][0xe5][0xed]i4VB[0xa6][0xb][0xdc][0xd6][0xd6][0xc9]
[0xc3]:aU[0x8]9[0xe2]3&[0x4]$[0xe5][0x4][0xa7]:[0xd6][0x9]
[0x8c]^OE[0xac][0x81][0xfc][0x1],[0xd1]q[\n]"
2010.03.15 10:44:46 << "Cr[\n]"
2010.03.15 10:44:46 << "J[0xb1])[0x90][0xdf]b[0xa5][0x9]%[0xef]r[0xf4]
[0xcd]5[0x1a]`[0x92][0x15]([0xc2]DD~[0x87][0xb9]:[0xb2]+[0x7][0xb5]
[0xb7]$[0x16][0x17][0xa3][0x95]l[0xc7][0xa5][0xdf][0xbc]v[F[0x8b]
[0x19]I[0xb][0xfc]u[0xb1]2[0x12][0xe8][0xe9][0xc9]e[0xc][0xf3][0xe3]
(V[0xbc]P&ft]z[0xab]=G[0xa0]x[0x1e]g[0x1a]WF[0xa7][0x12][0x83][0xca]
[0x81]c~[0x8][0xd6][0xa5]HIZ[0x85][0x8b]{V[0xed][0x9a][0xa0][0x98]
[0x98][0x16][0xb8]:[0x2][0x81]>[0x9b]I[0xbd][0x98][0x15][0xe1][0x9]
[0xd3]0:+[0xc4]c[0xe2]t[0xc9][0x1b]&[0x88][0xe7][0xb8][0xe][0xf1]
[0xba]C[0xcf][0x19][0xba]][0xf2][0xeb][0xe9][0xf8][0xc8]n[0xcc]
[0xea]]S[0x10][0x90]3-[0xf3][0xd1][0x1b]lFr[0xf6][0xfc][0x8c]t-[0xc7]
[0xf2][0xc9][0xcf][0xf5][0xe1][0xaf][0xf5]hVep[0xad]M 9[0xb2][0x97]
[0x8e][0x9a]s[0xf2]ad[0x1e]db[0xa0][0x8e]K[0x9d][0xee][0xb8][0x89]
[0xe4]/<][0xbd][0xba]4^;[0xdc][0xea]"
2010.03.15 10:44:46 << "[0xbc]6[0xc1][0xf4][0xa7][0xf5][0xb8][0xad]
[0xf6]8[0x16][0x11][0xe4][0xc4][0xb5]<[0xcb]%3[0xa6]H[0x8]
0[0xa1]em[0xa3][0xf5][0x92][0xee]Z[0xd4][0xba][0x12][0xe6][0x5][0xf3]
[0x9c][0xde][0x13][0xad]4[0xcb][0xf5][0xb1][0xf3][0xb0][0x9a][0xaf]
[0xd5][0xf4][0xa3][0xaa][0xfe][0x94][0xe8][0xc3][0x7][0x94][0x92]
[0xbf]O$/L[0xef]?[0x97][0xd1][0xe2][0xcc]l[0x1f]v[0xf][0xfa]N[0x0]
[0x7].[0xe5][0xae][0xdb][0xa3][0xbd] [0xf0]ix[0x10]zt[0xd0][0xef]
[0xba]^[0x10][0x1]L<[0xe7][0x1f]B[0xe9]OS}h[0xdc]D[0xf1]%[0xe1]
[0x9]S[0xea][0xf8][0x91])[0x4][0xcd][0xc1][0x1c][0x18]"Z#[0xcc][0xa3]
[0xc6]03[0x83]?[0x1][0x93][0x80]U</[0xca][0xb6][0xaa][0xb2]@V[0x93]
[0xf4][0x98][0xcc]g1[0x9f][0x91][0x18][0x1b][0x9f][0x84]
[0xc5]t[0x12]_5[0x86][0x16]y[0xaf][0xf0]%#rB[0xf4][0xc][0xc8]
[0xb3]P[0xe9][0x9c]q[0x8d][0x0][0x91]Ia[0x1a]4N[0xb3][0xea]Uf[0xe6]
[0x94]h[0xc4]4[0x99]c[0xce]Y[0x14][0xe1]SbQ>[0xc1]![0xd8]'[0xf8]
[0xd3]el[0x1e][0xad]%)2Sg[0xcb][0xc4]hgm[0xb4]D[0xe9]E[0x82]`[0x98]
[0xc6][0x82][0xce] [0x9e][0xce][0xf4][0x90][0xf8][0x99]>$k[0x93]
[0xc]]#[0x1a][0xf][0x89][0x93]][0x1d]v[0xca][0xcd],[0xcd][0xe]E[0xa8]
[0xb2][0xc3][0x8f][0x1c]6[0x3][0xec]Ga[0xc6]'r.[0x12][0xc9][0xda]
[0xd3]Or[0x99][0xe][0xcb]=[0x8d][0xc5][0xaa]5[0xb9][0xb6][0xc2][0xea]
[0xb4]w[0xca][0xb4][0x9b]ZS[0xb8][0xc2]^[0x11],[0xa1]*eI[0xd2]![0xb3]
[0x1c][0xd6][0x11]yC;Eu[0x18][0xca]6a\Y[0xe7]*[0xeb][0xac]>[0xbc][0xc9]
[0x3][0x97][0x89][0xcc][0x87][0xe4][0xe1][0xc4][0x19][0xf4][0x1d]
[0xa7]:[0xeb][0xce][0x9e][0xaf][0x1d][0xc2]f[0xed][0xa8]M[0x90][0x8d]-
[0xd5][0x8c][0xaf]5[0xe9]K[0x11][0xed][0xd4][0xa2][0x9b]Pj_([0xc2]}
[0xac][0xd0]3[0x4][0x90]iQ([0xb][0x8b]f][0x94][0xb5][0x3][0xf1]t[0x9a]
[0xb2]81[0xe8]sd[0xd7]6[0xed][0x9e]i[0x11]G[0x9f][0xed][0x9d].[0x9d]-
[0xdf][0xe9][0x1d][0x10][0xcc][0xf0]Q[0x8b][0x87][0xe5][0xc2]X[0x8e]
[0xb1]cF[0x1e]I[0xf1]U[0x9d][0xa9][0xc7][0xc4]%s[0x80][0xb][0xc2][0xa6]
[0xf2][0xc8][0xde]l[0xbb][0xc9][0x95][0xc][0xcf][0x81][0xeb]
[0xf1]"[0x83][0x91][0xb3][0xb6]oe[0xa1]FH{[0x5]"o[0x83]K[0xe7][0xee]
[0xe0][0xd2][0x1f][0xf4][0xf]VSk[0xe6]{[0xc2][0xa5][0x1f]A[0xe0]
[0x86]nH[0x81][0xf3][0x90][0xf6]<[0xb7]OC[0xe6]bk[0x6][0xbc][0xcf]
[0xa3][0x89][0xdb]"
2010.03.15 10:44:46 << "[0xf7][0xc0][0xdb][0x1f]._?
J1[0xb]Y[0xb6]08[0x85]ZB[0x16][0x82]C[0x9]~uJ[0xc][0x16][0xd6][0xc2]
[0xa3]N[0x1a][0xfe]P%[0xd1]"[0xe3][0x19][0x82]([0xf2]}k[0x11][0xe6]
[0x88]U[\n]"
2010.03.15 10:44:46 << "[0x81][0xd0][0xe4]Hi[0x9c][0x94][0xcb]
[0x13]`[0xba][0xc0][0x1f][0x1e]#[0xe2][0x8a]"[\r][0xb1][0x0][0xe8][0x5]
[0xb1]W[0x11]D[0xdf]Z[0x81]T[0xec][0x99][0x90][0xc]r[0xa3][0xcf][0x98]
[0x9][0x4][0xf1]6[0x97][0x97][0x95]x2[0x8f][0x3][0x82]
[0xd9]F[0x8]Fy[0xa3]@[0x1b]'F[0x1][0xa1]V [0x1c][0xdf][0xaf]
[0x10]PA[0x14][0xe8][0xea][0x6][0xf4][0x9a][0xc7][0x17][0xf1].[0xc8]
[0xb5][0xac]l$[0xb9][0xb2]O[0xde][0xbe][0xa0][0xae][0xef]{[0x15]2[0xa1]
[0xe9][0x12]_[0xaa][0xd8][0xc2]DN3#gJ^h[0xb2][0x19][0x95]
[0xe9]4ihR[0xba]M[0xac][0xc6][0xd7]~[0xb1][0x9a][0x9d][0x88][0x88]
[0xa5][0x89][0xed]9N`[0xbb][0x9e][0xed][0xf8][0xd8][0xd9][0xa6]h[0xd4]
[0xf5][0x1c][0x8a]}OM[0xdf][0xd3][0xa6][0xef]7[0x1c][0xe9][0xbb]e[0xab]
[0x1b][0x9]i?[0xb2][0xd9][0x94],3x)[0xce][0xe5][0xe2][0xc1][0x8e][0xc4]
[0xb3][0xcb][0xcb]~[0xb][0xf1][0x8c][0xb]@[0xe2][0xf1][0xc9]
[0x9]pb[0xba][0x80][0xb8][0xc1][0xd0][0xed][0xf][0xbb]_[0x1]
[0xf1]lF[0xc7][0x9b][0x88][0xc7][0x9][0xb0]g[0xa9][0xe3][0x8f][0x9b]
[0x3]lO<[0xdd][0x96]x[0x6]$b[0xb]u[0x9f][0xc4][0xf3][0x16]o[0x8c][0x93]
[0x18][0x85]a[0xd7][0x1a]X[0xbd][0xbb][0xa3][0x1e][0xd7][0xf1][0xd6]
[0x92]k[0xe6][0xfb]RO?[0xc][0xfa][0x93].[0xa7]}[0xd3][0x83][0xbd][0x81]
[0xcf][0xa9][0x1f][0x6][0x8c][0xfa][0xbd][0xc9][0xa0][0xc7][0xba]
[0x13]TH|/[0xea]Y[0x1a]v6[0x1a]v[0xbe]%[0xc3][0xe6]
[0xda]aD[0xff]u*ek[0xc8][0x8f][0x84][0xd5][0xf4]AE[0x19][0xab][0x8b]
[0xb1][0xe0]I[0x11][0x95]lh[0x88]O[0xe6][0x9a][0xe1][0x95]C[0x1]/
r,q[0xc9][0x94][0x16]yy[0x15]W[0xbc][0x1a][0xb][0xac]q[0x92][0x94]
[0x17][0x11]E[0xd4]L[0x16]IT[0xdf]4L[0x0][0xda]PsM[0xcb][1g
+[0xc7]o[0x83]Qs[0xdc]%u[0xdd][0xc5][0x8d]!,[0xe2][0x4]qV[0xd6][0x99]
[0xaa][0xd8][0x17]O[0x8a][0x8a][0xc2][0xae][0xa2]F[0x8a]
[0xb3]f:M[0xd6]/[0x12][0xdb]D[0xfe][0x89][0xb][0xc2]7[0x10]}K[0xd1]
[0xd7]Op [0xd7][0xcb][0x16][0xd9][0xbe][0xa2][0xb]&A[0x0][0x9b]
[0x82]>[0xee]|[0x8][0x13]&.[0xbe][0x10][0xbf][0xdf]M[0xd2][0xdb][0xfc]
[0x8e][0x81][0xa5]7[0xb][0x8a][0xff]2[0xde],Fv[0x80][0xff][[0xc4][0xc8]
[0xab]<"
2010.03.15 10:44:46 << "F1[0xe2][0x92]S[0xb6][0xa8][0xc4]
[0x8]^"[0x1d]o[0xd8][0xf7]n[0x11]#Li)[0x9e]~[0xfc][0xfd][0xed][0xb3]
[0x9][0x91][0xcd]\[0xf9][0x9]![0xe2][0xf4][0xf1][0x12]<n[0x82]
[0xdf]^[0x88][0xe0][0xbd][0xbf]Q"^y[0x5][0xfe]z[0xa4]H[0xf7][0xce]
[0xa4][0x88][0xdf][0x1f][0xc][0xba]+[0xe9]-[0xe7]{J[0x91][0x90]
[0x1f]p[0xde][0xc5][\n]"
2010.03.15 10:44:46 << "[0xf4][0xf9]A[0x8f][0xf6]xp@[0x19]
[0xf4]8u"[0xf0][0xfb][0xcc]s&[0x9e][0xeb] [0xb7]R[0xe4][0xf3]+[0x8c]
[0x1b][0xe4][0xc5]vw[0xec][0xfb][0xe3][0xca][0x15][0xd9]
[0xc1]V[0xe9]ek[0xe6][0xbf][0x9f][0xb0]7\[0xac][0x1b][0x1a][0xfc][0x9f]
[0xb5][0xbf],koL[0xc5][0xb])[0x4]b[0xa8][0xf9][0x80]u[0xca][0x4]b[0xd7]
[0xbd]}+[0xcf]ri[0xd0]|[0xa5][0xb5]x[0x1b][0xdb][0x87][0xb4]
[0x8a]m[0xcf]Lm[0xeb][0xfa][0xcb]~[0x1][0xfa][0xe6]U[0xd4]F[0xe5][0xb4]
[0xb][m[0xa5][0x9c][0x82][0xfa][0xff][0x83][0xea]3N[0xcf][0x1b][0xba]
[0xee][0xbd]*[0xa7][0x1b][0xa8][0xfd]S[0xca][0xc9][0xa5]N0n[0x82]
[0xdf]A9[0x91][0x5][0xfe]l[0xfe]9([0x5][0xd4][0x17][0x91]M[0xff][0x2]
[0x0][0x0][0xff][0xff]"
2010.03.15 10:44:46 << "[\r]"
2010.03.15 10:44:46 << "[\n]"
2010.03.15 10:44:46 << "6"
2010.03.15 10:44:46 << "a"
2010.03.15 10:44:46 << "c"
2010.03.15 10:44:46 << "[\r]"
2010.03.15 10:44:46 << "[\n]"
2010.03.15 10:44:46 << "[0xed][0x9c][o[0xe3]D[0x14][0xc7][0xdf][0x91]
[0xf8][0xe]C_`[0xa5]8[0xf5][0xfd]R[0xed][\n]"
2010.03.15 10:44:46 << "[0xca]"[0xa4].[0xb0][0x8b]H[0x11]
[0xf0]8c[0x8f]S[0xd3][0xc4]6[0xbe]4[0x84]O[0xcf]9[0xe3][0xdb]
$u[0xb2]q[0x9a][0xa4])[0x8b][0xb4][0xea][0xca]ml[0x8f][0xcf][0x8c]
[0xe7][0xff];[0xb7][0xec][0x82]M[0xfa][0xf1][0xb0][0xc9][0xb0]4U[0xb6]-
[0x1e][0xef][0x89]MZh[0x99][0xb6][0xa6]q[0xc5][0xf1][0x10][0xe1]
[0xa9]m(L[0xb7][0xa8]bp[0xcf][0xd6][0xed][0x80][0xba]L[0xdd]/y[0xf0]
[0x1f][0xa5]!VN[0xa5][0x8c][0x4]%!|\l[0xdf][0x7][0xce]D[0xbc][0xa4]
[0xb8][0x2][0xf9][0x5][0x9e]Z[0xe4]l[0xda]T[0xb6]
[0xc8]ht[0xf2]Aj[0xf9] U[0xd1][\n]"
2010.03.15 10:44:46 << "|.!y[0x84][0xb3][0x91]'s[0xde]d[0xd3]k[0xbb]
[0xa6][0xe9]l[0xd9][0x6][0xa8][0xaa][0x13]6A[0xd0][0xca][0xe]OP[\r]
[0xc8]E[0x8f]0[0xed][0x83]8[0xc3]&[0xe6]D)[0x83][0xfd][0xe1]d[0xe0]
[0xe3][0xec][0x8c][0x19]'[0xc4][0x8a][0x1][0x93][0xbd][0x15][0x1a]
[0x6]\[0xe7][0x80]H[0xd0][0x8b][0x1]Cv[0xdf][0x8f][0x95][0x11]
[0xd0]bDt[0x9d][0xbc]O[0x1e][0x10][0x3]\[0xa2][0xaa]W[0xaa]se[0xba]
[0xcf][0x8b][0x1][0xfd]R[0xb5][0x11][0x3]\[0x5][0xec][0xa0][0xeb][0xb7]
[0xcd][0xe0][0x87]c@[0x93][0xd1]9[0x1b][0xe]8^[0xcd][0x95][0xab][0xbb]
[0x8e]+[0x1b][0x17][0x8f][0xf7][0xcd][0xe4] [0x8f]:[0xae][0xad]0j[0x3]
[0x90][0x6][0x81][0xab]x[0x9e]n)[0xe][0xb]T[0xc3]
[0xe0]T[0xb3]xp&[0x1c] ^[0xc1][0xeb]M*N[0x16][0x11]@ <r[0x11]
[0xf9]t&[0xe9][0xf5][0xa3]Y[0x18][0x93][0x9b][0x2]k[0xbc][0xee]
[0xc0]e[0x0][0xc5][0xc9][0xb8]/[0xca]<[0xb1]N+L2[0xc2][0xfb][0xf2]
([0x95][0xc2]M3[0x1a]t9[0x14]i [0xfd][0xba]_[0xdd][0xff]LT[0xbf][0xaf],
[0xe1][0xa8][0xfe]i:+[0xa7]`[0xc2]V-&7?[0x93][0xea]w[0xdd]0[0x9a][0xec]
[0x14][0xd8][0xa7][0xe2][0x7][0xac][0x8a]K[0xce]%[0xf4][0xf1]
[0x4]g~<>G2x[0xda][0x3][0x9d]#[0x1b]|[0x9a]![0x87][0xfe][0xa4][0xcc]
[0x80][0x9d]|[0x97][0xd0][0x82]fvL[0x81]y[\r][0xeb][0xca]zf[0xa6][0xe8]
[0x97][0xbd][0xed]L[0xa1][0x99][0xb7][0xcd][0xe0]
[0x87]3[0x85]y[0x6]L1[0x99]S[0xff][0x1e][0x80]B[0x1b][0xab][0xe4]
[^[0xd0][0xe3]Q[0x85][0xe6][0xd9][0xb6]l^<[0xde][0x93]*t[0x93]3[0xcb]
[0x9][0x98][0xa2]k[0x8e][0xaa][0x98][0xa6][0xe9])[0x9e]
[0xe9]r[0xc5]7[0x99]ji[0x9c][0x85][0xbe]a>[0xa9]"
2010.03.15 10:44:46 << "[0x92][0x1b]][0xfc][0x7][0x9e]-AQ[0xaa]:[0xee]
[0xf5]"Ex[0xbb]r[0xf0][0xda][0xd1]`[0xb5][0x97][0x19][0xc3]l[0x81]?
[0xfa]'H|e[0xd3]V[0xbb][0x1f][0x99]X[0xeb]"[0x0][0xd5][0x9][0xb2]
[0x8f]/[0x2][0x0]r[0xed]"[0x99]E[0xf7][0x9c]L[0xae]'?[0x92][0x9f][0xbe]
[0xb3]F[0xe4][0x7][0x9e][0x81]O[0x9c][0xe4]#[0xbc]pV[0xbc][0xa5]Y[0x90]
[0x93][0xbc]L1[0x94]0[0xc2][0x12][0x8e]F[0xea][0xde][0xc1][0x8e]1[0xe3]
[0xeb][0xa5][0xe3]xy[0xd8][0x2][0x97][0xd5][0x8f][0x4][0x86][0x9e]
[0xc1][0xd9]Y[0x9a]E9[0xa6]a[0xde][0xde]q[0x18]lR[0x16][0xe2][0xa1]
[0xe][0xcf][0x13]9[0x1a][0xa3][0x82][0x9]a[0x91]1[0xda]P[0xeb]#[0x8a]
[0xea]W[0x4]~'[0x9]:[0x12]T![0xb3]P[0x14][0x8b][0x9a][0xcd]BT[0x9b]
[0x88][0x96][0x8e]v>$[0x13].`,[0x9d]![0xc0]6lI[0xda]5J[0xaa]([0x3]
[0x18]1[0x81]]w[0x96][0xc2]1[0x99]bC[0x6]\fNX4%0;)[0xd8][0x6][0xc7]
[0x11][0xcd][0xa7][0xf5][0xd6][0xfc][0xe6]B[0xb3][0xd3][0xbf]/H[0x9e]
[0xf9][0xbb][0xd7]HFsl0[0xb9][0xe4][0xf3][0x4]82[0x89]
[0xf3]K[0x11]H[0x1a]O[0xa3][0xf0][0x2][0x8]3([0xee][0xea]
[0xab]^[0x9e]J[0x94]ZQol&[0xd6]4[0xca][0xf9]!'[0xbf][0xc3][0xe][0xbc]|
[0xa7][0xe2]+[0xd0]([0x96]f&[0xc5]|DI+[0xae][0xd2][0xbf]J[0xac][0xe9]
[0x85][0xc5][0xb][0xb3][0xf]s[0xc1]`[0x1a][0xc9]2)k[0xe8][0x8d][0xe2]
[0xe1]k[0x15][0x4][0xea][0x1][0x96][[\n]"
2010.03.15 10:44:46 << "[0xd3]^-[0xc9][0x8a]![0xc5][0x9b][0xda]u[0xf]
[0x11][0xb1][0xad]JX{2L[0x18][0x9d][0xe2]N[0xd5][0xe3]ng[0x84]^[0x16]
[0x18][0xb2][0xff][0xee][0xc2][0x2][0x86]F>[0xf8]E[0x1d]_[0xb0][0xae]
[0xf4][0xe7][0x8f]/[0xf4][0x8b][0xd5]6[0x16]P[0x15]C[0xbb]m[0x6]
[0xff]2Y`%[0xbe]p[0xbc]&[0x5][0xc7]qW[0xaa]_[0xc4][0xf1][0xbe][0xf1]
[0x85][0x90]Y[0xc]{e[0xc][0xd3][0xf5]a%z[0xaa][0xc2]Lf([0x81][0xa5]
[0xb9][0x94]1[0x9f]y[0xc7][0xce]3[0xc8][0xc8][0xb0][0x89][0x16][0xfa]
[0xe2][0x9][0xc2][0xc6][0xe3][0xee][0xfd][0xac]z[0x1a]Do[0xd8]
[0x9c]b[0x1f]C,[0x1a][0x11][0x9a]SE[0xf8]AH[0xf6][0xa6][0xa4]
[0xc1]j[0xa2][0xe0]W[0x11]M[0xc0]8[0x83][0xd8][0xcb][0x93][0x19][0x96]
[0xb6][0xd7]e[0x99]y xbL[0xfe][0x80]=[0x15][0xe3][0x9]0[0x83][0x0][0x9]
[0x9]6[0x93][0xb1][0x6][0x5][0xc4][0xe7]q[0xaf][0xc9][0x8f]
[0xdf]9[0xe0]b[0xdb][0x80][0xee][0xb4][0xee]"
2010.03.15 10:44:46 << "[0x9b]b[0xd8][0xbb][0xf5][0xe][0x9c][0xdc]
[0xb5][0xdf]9[0x1f]C[0x8b][0xa7][0xb8][0xc7][0x7][0xb][0xd5]
[0xc]O[0xdf][0xef]~[0xf1][0xe1][0x81][0x84][0x83][0xc5]C^|[0xc5][0xc7]
[0xff][0x85][0x1d][0x9f]D[0x94][0xa5]?[0xb2]2@[0xc3]>BS[0xbf]
[0xf1]`Dt[0x87]\[0x83]244[0xa5]:[0xc0]$[0xdb]ij[0xc1][0xd9][0x1c][0x80]
[0x8a]g[0xdf]<[0x9e][0xe6]C![0xd5][0x6][0xd5][0xdf]
[0x82]T[0xf0]Own[0x9b]'[0x18][0x8e]T[0xf6][0x19] [0xd5][0xf7]`[0xd6]
[0x94][0x82]t[0x9b] [0xf6]j[0xd7][0x17][0xfe][0x15][0xf5][0x8b]
[0x12]^[0xe2]%&[\n]"
2010.03.15 10:44:46 << "[0xc1][0xab][0xa9][0xff][0xf0]
[0xea]P[0x88]e[0x9b][0xae].[0x1b][0x1b][0x8f][0xf7]D,
[0xaa]3[0xcd]Um[0xae]0?[0xc][0x15][0xd3][0xa6][0xa1][0xe2][0x1a][0xaa]
[0x1][0xab][0xd5][0xd6][0xdc][0x80]z^[0x18][0x18][0xfb][0x7]
[[0xae]E[0xd3]{U[0xf0][0x0][0xa6]([0xb].[0xe6]kDZ[0xcb]}%[0xe0][0xa6]
[0xf8][0x12][0xbd]x[0xe6]c[0x83][0xa3][0xdf][0xb4][0xc5][0xbf][0xaa]
[0xcd]*[0x1a][0xef]W[0x93]0[0x12]X[0xbd]O[0x16]#rC[0xee][0xe3]d!H[0xa6]
[0xe9][0x19][0xad][0x1b]B[0xe7][0xb8][0x3]
[0x0]Z[0xdd]s[0xe1]S[0x16]w`[0xa4][0xaa][0x91][0xb2][0x90][0x88][0xc]
[0xc3]4[0xcd][0x89]u-[0x82]@2[0xb9][0xaf]T&[0xb0]Z[0x1b][0xb1][0xf3]
[0x14][0x86] Ch[0x9a][0x80]NF[0xff][0xf0]:[0x84][0x81]iUV[0xe2]7[0x5]
[0x88]U [0x8f][0xb][0xee][0x88][0x87][0xb][\n]"
2010.03.15 10:44:46 << "[0xac]'2I[0x8c][0xfb][0xb4]D[0x6][0xc4][0xba]
[0x93][0x0][0xeb][0x1f][0xc2]Y[0xe4][0x8b]$RKtp[0xfb][0xc6]<[0xf]9[0x9]
[0x1b][0xe3][0xe1][0xcd][0x17]4[0xae]2[0x1f]$_[0xc6]~[0x15][0xd5]
([0xd3][0x93][0xa0][0xd2]$![0xb][0x1c][0x92][0x12][0xe5][0x8a][0x88].
[0x8]_[0xbd]k[0x10][0xfa]Z[0x9a][0xa6][0xf]1[0x17][0xc3]Mb[0xb0]
[0x7]L[0xaf][0x98][0x89]ie%1[0xfd]+[0xdd]I[0xe2][0x8f]_H[0xa7][0xbf]y
%[0x1d]\K[0xb3][0xf2][0xfb]dB[0x1e][0xca][0x19][0xf6][0xf8]
[0xb2]h[0x16][0x15]Q[0x13][0xf][0xf2]g[0x9][0xbe][0x8a]e*_[0x6]F[0x1c]
[0x85]b! [0xd0]ge[0x1c][0xa3][0x99][0xe1][0xd6]m[0xde][0xae][0x1e]:.
[0xa9]u[0x86][0xae]sx[0xf8][0xa9]&[0x8b][0xd7]D[0x1]Oa[0xed][0x6][0xdf]
[0x83][0xf5][0x98]N[0xbb]JN[0x9a][0x91][[0x8b][0xee][0xe0][0xb]
[0x14]Q4m[0xd6][0x81][0x1f][\r][0xc0][0x2][0xb8][0xa2][0xf3]
[0xe4]Q9[0xce]G[0x85]s[0xc8][0xce][0xb4]S[0xd3][0xaa][0xd5][0x9][0xa7]
[0xae]][0xa9][0xee]y[0x8]g[0xff]^[0xbe]"
2010.03.15 10:44:46 << "]8U[0xeb][0xb6]y[0x82][0xe1][0xc2][0xe9][0x9c]
[0x81]pJ~[0xb2]u[0xc4][0x9a]G[0xc7]P[0x9d][0x15][0xe3][0xe2][0xf1]
[0x9e]B[0xc9]u[0xd3][0xf7]<[0xd5][0xc6][0xef][0xed][0xe0][0x8a]
[0xe9]h[0x86]BUCW\W[0xf][0x1c][0xd3][0xd2][0xe0][0xd2][0xec]
[0xc9]Y[0x89]a![0x6]0[0xdd][0x81]B[0xc]{F[0x14]^@[0xbd][0xe2]z[0xe5]
[0xc2]I[0xa3][0xee]+[0x1e][0xf0]q"[0xee]k[0xe5][0x1][0xdb]
[0x9f]v[0x17]g[0xf5][0xb8]*[0xb2]-[0xe9] [0x8c][0xef][0x89] /[0xcb]
[0x9b][0xec][0x15][0xc2]!;[0xcf]N[0xb9]y[0x83][0xbc]+[0xe3][0xd6]
[0x83]4[0xed]+[0xc3]~[0xd6]x[0xfc][0x86]mz[0x9b][0x6][0xda]
[0x8a]f[0xdc]6[0x83][0x1f][0xae][0x81][0xde])5[0xf0][0xf5]e[0xf7]}
z[0xaf][0xf1][0x9b][0xf8][0xe0][0xff][0xcf]?[0xfb][0x17]5[0xf9][0x15]
[0xc7]%Q[0x0][0x0]"
2010.03.15 10:44:46 << "[\r]"
2010.03.15 10:44:46 << "[\n]"
2010.03.15 10:44:46 << "0"
2010.03.15 10:44:46 << "[\r]"
2010.03.15 10:44:46 << "[\n]"
2010.03.15 10:44:46 << "[\r]"
2010.03.15 10:44:46 << "[\n]"
2010.03.15 10:44:46 << "[\r][\n]"
2010.03.15 10:44:46 Should NOT close connection in response to
directive: Keep-Alive
2010.03.15 10:44:46 Releasing connection back to connection manager.


Zhan iJab

unread,
Mar 15, 2010, 9:30:08 PM3/15/10
to ijab-...@googlegroups.com
Hi,

   are you sure your http-bind is here, http_bind:"http://localhost:5222/http-bind/"? I think it should be http://localhost:7070/http-bind according to your settings.

    Another problem is iJab can't work with http-bind using GET method and so you need to make /http-bind with your web server the same domain.

 Zhan

2010/3/15 Steve Keener <stevena...@gmail.com>


--
You received this message because you are subscribed to the Google Groups "ijab group" group.
To post to this group, send email to ijab-...@googlegroups.com.
To unsubscribe from this group, send email to ijab-group+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ijab-group?hl=en.


Steve Keener

unread,
Mar 16, 2010, 7:50:37 AM3/16/10
to ijab group

I tried the http-bind on port 7070 and saw no response. So I'm trying
to see what I might be missing. Having the current source on google
might help. That way I could put commenting / debugging code in place
to see where I'm failing out.

I love the look and feel of iJab. If we can get past the setup issues
and add a bit more documentation then I can see this taking off in a
big way. But right now it's becoming a time sink. I'm more than
willing to help give back, I just need to prove this can work in a
production environment. So far I can't do that in a dev
environment.

Steve

Zhan iJab

unread,
Mar 16, 2010, 11:09:11 AM3/16/10
to ijab-...@googlegroups.com, stevena...@gmail.com
Hi,

   You should remember two things: one is http-bind wouldn't support GET method and so if your http-bind and your website are not on the same domain, it can't work. That's way you should set rewrite rules for http-bind request; the other is some config:

    host:"localhost",   /* if not third party http-bind server, just leave this empty */
       port:5222,         /* your openfire c2s port, default 5222 */
       server_type:"ejabberd",  /* if openfire, please change this to openfire */

   good luck.

    Zhan

2010/3/16 Steve Keener <stevena...@gmail.com>

--

Steve Keener

unread,
Mar 18, 2010, 10:38:23 PM3/18/10
to ijab group

I tried the changes you suggested. No dice.

When I move to port 7070 for open fire - it connects sort of.
Openfire evidently can't parse the message. So that's a fail.

I also tried ejabberd. Switched to server_type ejabberd, port 5280 -
default for ejabberd server install. Got another error when trying to
bind.

Sooooo...it's still not working and I am not getting enough debug
information to figure out why it's failing. Suggestions???

If you can help me through this I have no problem documenting the
install / config process for you and donating it to the project. Let
me know if you are interested.

Steve

Benny

unread,
Mar 20, 2010, 11:05:10 PM3/20/10
to ijab group
Steve,

you need to understand same origin policy: http://en.wikipedia.org/wiki/Same_origin_policy

This will not work:


http_bind:"http://localhost:5222/http-bind/",
host:"localhost",
port:5222,
server_type:"ejabberd",

For several reasons. You say you're running openfire but you have
ejabberd specified, needs to be openfire. The port for http-bind is
incorrect, for openfire its 7070. AND you've breached the same origin
policy.

This will work:
http_bind:"http://localhost/http-bind/",
host:"localhost",
port:5222, // I dont think this setting actually does anything
server_type:"openfire",
Provided the server (say for instance apache) is proxying the http-
bind connection to port 80 to port 7070 (or 5280 on ejabberd).

Theres instructions on how to do the proxying in apache at the bottom
of this tutorial, just change the ports from 5280 to 7070:
http://code.google.com/p/ijab/wiki/iJabWithEjabberd

Steve Keener

unread,
Mar 21, 2010, 10:35:00 AM3/21/10
to ijab group

Yeah, I figured out how to get the ProxyPass to function. I'm seeing
the connection in the EJabberd logs. (I switcedh to that since it
seemed that most people are using it instead of the Spark server. But
I will try Openfire later once this works.)

Thanks for pointing out that I wasn't adhering to the same server (and
port) policy. It now makes a lot more sense when I look at my
previous failed attempts. It's been a loooong weekend palying with
this.

I think part of my issue is that I'm using Tomcat for deploying my
application. In this case it's a simple shell web app with a single
page to create a proof of concept chat before integrating it into the
real application. I'd like to fully understand the build, deploy,
configure process before I go further. I'm going about taking notes
and documenting this and will post it when I have it working for one
server. Then I will update it when I get it working for Openfire as
well.

I'm sticking with industry standard platforms. Tomcat, Apache,
EJabberd/Openfire. (I am constrained to Tomcat and Apache for my
eventual deployment environment.)

At this point I'm using the following config on my Mac:

//Ejabberd config
domain:"pubsub.localhost",
http_bind:"http://localhost/http-bind/",
host:"",


port:5222,
server_type:"ejabberd",

This seems to connect, but doesn't seem to do anything else. So I'm
guessing that I'm missing something else from Step 4 from this page:
http://code.google.com/p/ijab/wiki/iJabWithEjabberd

I am unclear as to why I would need to put the iJab code on the Apache
web server. (Since I already have it on the Tomcat application
server.) They are two separate places in my development
environment.

So I do have questions about what I see on the iJab w/ EJabberd
page....Do I need to set up the .htaccess config? And what exactly is
the VirtualHost supposed to do for me? Like I said before, I'm trying
to understand and document the whole process.

I'm connecting now, but it doesn't seem to do anything else. Are
there other pieces of the setup that I'm missing? (Additional users
logged in? Something else configured on EJabbered?)

So at this point I can see the following in the log:

proxy_util.c(2047): proxy: connecting
http://localhost:5280/http-bind/?xml=%3Cbody+content%3D%27text%2Fxml%3B+charset%3Dutf-8%27+hold%3D%271%27+requests%3D%272%27+rid%3D%276895146%27+to%3D%27pubsub.localhost%27+ver%3D%271.6%27+cache%3D%27on%27+wait%3D%2730%27+xmlns%3D%27http%3A%2F%2Fjabber.org%2Fprotocol%2Fhttpbind%27+xmlns%3Axmpp%3D%27urn%3Axmpp%3Axbosh%27+secure%3D%27false%27+xmpp%3Aversion%3D%271.0%27%2F%3E&callback=__gwt_jsonp__.I5.onSuccess
to localhost:5280

proxy_util.c(2145): proxy: connected /http-bind/?xml=%3Cbody+content%3D
%27text%2Fxml%3B+charset%3Dutf-8%27+hold%3D%271%27+requests%3D
%272%27+rid%3D%276895146%27+to%3D%27pubsub.localhost%27+ver%3D
%271.6%27+cache%3D%27on%27+wait%3D%2730%27+xmlns%3D%27http%3A%2F
%2Fjabber.org%2Fprotocol%2Fhttpbind%27+xmlns%3Axmpp%3D%27urn%3Axmpp
%3Axbosh%27+secure%3D%27false%27+xmpp%3Aversion%3D%271.0%27%2F
%3E&callback=__gwt_jsonp__.I5.onSuccess to localhost:5280

proxy_util.c(2236): proxy: HTTP: backend socket is disconnected.

Reply all
Reply to author
Forward
0 new messages