The first final version in Tigase 5_x line has been released
The first final version in Tigase 5_x line has been released. Please check the
download area, install the new version and let me know what you think.
72, kobit//tigase.org, 2010-03-23 16:54
Tigase 5
Tigase 5.0.0 Beta released. Finally, all the automatic tests passed, the code has been working on a few live installations for some time already. It looks like the new version is Beta ready.
71, kobit//tigase.org, 2010-03-09 03:06
Functional tests completed
Functional tests completed... All functional tests for 3 databases and all authentication connectors passed successfully. Results are being copied to the website now. One step closer for the new release.
70, kobit//tigase.org, 2010-03-08 17:17
Bernardo, thank you for your
Bernardo, thank you for your post and all the information and details you have attached. I have also tested Tigase with a few clients and everything seems to be working fine.
I think the most difficult part for some people is to understand the need of the Proxy element.
I have also managed to get it working under nginx too, here is configuration I use on the tigase.im service:
location /http-bind/ { proxy_buffering off; tcp_nodelay on; keepalive_timeout 55; proxy_pass http://localhost:5280/xmpp-httpbind/; }Related to my previous post,
Related to my previous post, I already tested BOSH with the following clients and after proper client side configuration all worked fine.
Clients:
JWChat, JSJac, Strophe and Tigase Messenger
I am using 5.0.1-SNAPSHOT and
I am using 5.0.1-SNAPSHOT and it is working for me without any issue. I am using apache as reverse proxy e.g.
ServerAdmin youradmin@yor.email
ServerName your.xmpp.server
DocumentRoot "/data/htdocs/chatrooms"
ProxyRequests Off
ProxyPass /xmpp-httpbind http://127.0.0.1:5280
ProxyPassReverse /xmpp-httpbind http://127.0.0.1:5280
*Note the "/xmpp-httpbind" context. I am only using this to identify the requests that want to connect through the BOSH CM. In ejabberd you will have something around "http-bind"
Check your client setup and include if necessary a crossdomain.xml in your webserver
e.g. in /data/htdocs/chatrooms
<?xml version="1.0"?>
Please note that this crossdomain.xml allows everything so don't use this specific file in a production environment, customize it according to your needs and security restrictions.
In your Dev/Sandbox environment you can always enable logging for tigase.server.bosh
e.g.
--debug = server,cluster,tigase.xmpp.impl,xmpp.XMPIOService,tigase.io,tigase.net,tigase.xml,tigase.cluster,tigase.server.bosh
Had been trying to do this
Had been trying to do this over bosh.
Thanks,
-vi
I am trying to get the
I am trying to get the examples in the strophe javascript bosh library working.
I finally had to resort to using openfire which is working fine with the same code. I think something is not right maybe in my setting of the authorization or sorts in tigase I think.
I am able to do everything without any problem on openfire thou.
I will try to see what could be the problem with my tigase setup and see if things work out.
Thanks,
-vi
From the server side
From the server side everything seems to be correct.
Your client doesn't reconnects to the server or it doesn't use keep-alive mode. It is also behaving incorrectly as it doesn't wait for stream features before sending authentication handshake.
I don't know what client you use but you should probably update it to the most recent version.
Please find below the full
Please find below the full log as it happens when I try to connect
through the client.
==> tigase-console.log <==
2009-06-02 19:34:00 ConnectionManager.serviceStarted() FINER: >>bosh<< Connection started: 127.0.0.1_5280_127.0.0.1_44656
2009-06-02 19:34:00 BoshConnectionManager.processSocketData() FINER:
Processing packet: body, type: null
2009-06-02 19:34:00 ConnectionManager.serviceStopped() FINER: >>bosh<< Connection stopped: 127.0.0.1_5280_127.0.0.1_44656
2009-06-02 19:34:00 SessionManager.processCommand() FINER: STREAM_OPENED command from:
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:00 SessionManager.processCommand() FINER: Adding resource connection for:
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:00 SessionManager.processCommand() FINER: GETFEATURES command from:
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:00 ClientConnectionManager.processPacket() FINER:
Processing packet: iq, type: result
2009-06-02 19:34:00 ConnectionManager.serviceStarted() FINER: >>bosh<< Connection started: 127.0.0.1_5280_127.0.0.1_44657
2009-06-02 19:34:00 BoshConnectionManager.processSocketData() FINER:
Processing packet: body, type: null
2009-06-02 19:34:00 ConnectionManager.serviceStopped() FINER: >>bosh<< Connection stopped: 127.0.0.1_5280_127.0.0.1_44657
2009-06-02 19:34:00 XMPPIOService.processSocketData() INFO: function called when the service is not connected! forceStop()
2009-06-02 19:34:00 ClientConnectionManager.processPacket() FINER:
Processing packet: iq, type: result
==> tigase.log.0 <==
2009-06-02 19:34:00 ConnectionManager.serviceStarted() FINER: >>bosh<< Connection started: 127.0.0.1_5280_127.0.0.1_44656
2009-06-02 19:34:00 ConnectionManager.packetsReady() FINEST: packetsReady called
2009-06-02 19:34:00 BoshConnectionManager.processSocketData() FINER:
Processing packet: body, type: null
2009-06-02 19:34:00 BoshConnectionManager.processSocketData() FINEST:
Processing socket data: to=null, from=null, data=<body
xml:lang="en"
xmlns="http://jabber.org/protocol/httpbind"
content="text/xml; charset=utf-8"
to="soyuz.safe.net" xmlns:xmpp="urn:xmpp:xbosh"
ver="1.6" hold="1" rid="1018483879"
xmpp:version="1.0" window="5"
wait="60"/>, XMLNS=http://jabber.org/protocol/httpbind
2009-06-02 19:34:00 BoshIOService.writeRawData() FINEST: Writing to socket:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 373
Connection: close
Server: Tigase Bosh/4.1.0-b1315
<body requests="2" from="soyuz.safe.net"
xmlns:stream="http://etherx.jabber.org/streams"
polling="10"
xmlns="http://jabber.org/protocol/httpbind"
maxpause="10" xmlns:xmpp="urn:xmpp:xbosh"
inactivity="10" ver="1.6" hold="1"
secure="true"
authid="30424df2-3307-4714-834f-97de6412ea9e"
xmpp:version="1.0" ack="1018483879"
sid="2c80b2e4-61b8-49ad-824e-5b943ed16e4a"
wait="60"/>
2009-06-02 19:34:00 ConnectionManager.serviceStopped() FINER: >>bosh<< Connection stopped: 127.0.0.1_5280_127.0.0.1_44656
2009-06-02 19:34:00 MessageRouter.processPacket() FINEST: Processing packet: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="set" id="sess1" from="null"
to="null"><command node="STREAM_OPENED"
xmlns="http://jabber.org/protocol/commands"><x
type="submit" xmlns="jabber:x:data"><field
var="session-id"><value>30424df2-3307-4714-834f-97de6412ea9e</value></field><field
var="hostname"><value>soyuz.safe.net</value></field><field
var="xml:lang"><value>en</value></field></x></command></iq>,
XMLNS=null
2009-06-02 19:34:00 MessageRouter.processPacket() FINEST: Packet is processing by: sess-man@soyuz
2009-06-02 19:34:00 MessageRouter.processPacket() FINEST: Processing packet: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="get" id="sess1" from="null"
to="null"><command node="GETFEATURES"
xmlns="http://jabber.org/protocol/commands"/></iq>,
XMLNS=null
2009-06-02 19:34:00 MessageRouter.processPacket() FINEST: Packet is processing by: sess-man@soyuz
2009-06-02 19:34:00 SessionManager.processPacket() FINEST: Received packet: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="set" id="sess1" from="null"
to="null"><command node="STREAM_OPENED"
xmlns="http://jabber.org/protocol/commands"><x
type="submit" xmlns="jabber:x:data"><field
var="session-id"><value>30424df2-3307-4714-834f-97de6412ea9e</value></field><field
var="hostname"><value>soyuz.safe.net</value></field><field
var="xml:lang"><value>en</value></field></x></command></iq>,
XMLNS=null
2009-06-02 19:34:00 SessionManager.processCommand() FINER: STREAM_OPENED command from:
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:00 SessionManager.processCommand() FINER: Adding resource connection for:
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:00 SessionManager.processCommand() FINEST: Setting hostname soyuz.safe.net for connection:
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:00 SessionManager.processCommand() FINEST: Setting session-id 30424df2-3307-4714-834f-97de6412ea9e for connection:
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:00 SessionManager.processPacket() FINEST: Received packet: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="get" id="sess1" from="null"
to="null"><command node="GETFEATURES"
xmlns="http://jabber.org/protocol/commands"/></iq>,
XMLNS=null
2009-06-02 19:34:00 SessionManager.processCommand() FINER: GETFEATURES command from:
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:00 MessageRouter.processPacket() FINEST: Processing packet: to=null, from=null, data=<iq
type="result" id="sess1"
from="sess-man@soyuz"
to="bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a"><command
node="GETFEATURES"
xmlns="http://jabber.org/protocol/commands"><auth
xmlns="http://jabber.org/features/iq-auth"/><register
xmlns="http://jabber.org/features/iq-register"/><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>CRAM-MD5</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><session
xmlns="urn:ietf:params:xml:ns:xmpp-session"/></command></iq>,
XMLNS=null
2009-06-02 19:34:00 MessageRouter.processPacket() FINEST: Packet is processing by: bosh@soyuz
2009-06-02 19:34:00 ClientConnectionManager.processPacket() FINER:
Processing packet: iq, type: result
2009-06-02 19:34:00 ClientConnectionManager.processPacket() FINEST:
Processing packet: <iq type="result" id="sess1"
from="sess-man@soyuz"
to="bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a"><command
node="GETFEATURES"
xmlns="http://jabber.org/protocol/commands"><auth
xmlns="http://jabber.org/features/iq-auth"/><register
xmlns="http://jabber.org/features/iq-register"/><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>CRAM-MD5</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><session
xmlns="urn:ietf:params:xml:ns:xmpp-session"/></command></iq>
2009-06-02 19:34:00 BoshSession.processPacket() FINEST: [0]
Processing packet: to=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a,
from=null, data=<stream:features><auth
xmlns="http://jabber.org/features/iq-auth"/><register
xmlns="http://jabber.org/features/iq-register"/><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>CRAM-MD5</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><session
xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features>,
XMLNS=null
2009-06-02 19:34:00 ConnectionManager.serviceStarted() FINER: >>bosh<< Connection started: 127.0.0.1_5280_127.0.0.1_44657
2009-06-02 19:34:00 ConnectionManager.packetsReady() FINEST: packetsReady called
2009-06-02 19:34:00 BoshConnectionManager.processSocketData() FINER:
Processing packet: body, type: null
2009-06-02 19:34:00 BoshConnectionManager.processSocketData() FINEST:
Processing socket data: to=null, from=null, data=<body
rid="1018483880"
xmlns="http://jabber.org/protocol/httpbind"
sid="2c80b2e4-61b8-49ad-824e-5b943ed16e4a"><iq
type="get" id="_auth_1"
to="soyuz.safe.net"><query
xmlns="jabber:iq:auth"><username>softer8</username></query></iq></body>,
XMLNS=http://jabber.org/protocol/httpbind
2009-06-02 19:34:00 BoshSession.processSocketPacket() FINEST: [0]
Processing socket packet: to=null, from=null, data=<body
rid="1018483880"
xmlns="http://jabber.org/protocol/httpbind"
sid="2c80b2e4-61b8-49ad-824e-5b943ed16e4a"><iq
type="get" id="_auth_1"
to="soyuz.safe.net"><query
xmlns="jabber:iq:auth"><username>softer8</username></query></iq></body>,
XMLNS=http://jabber.org/protocol/httpbind
2009-06-02 19:34:00 BoshSession.processSocketPacket() FINEST: Sending out packet: to=null, from=null, data=<iq type="get"
xmlns="jabber:client" id="_auth_1"
to="soyuz.safe.net"><query
xmlns="jabber:iq:auth"><username>softer8</username></query></iq>,
XMLNS=jabber:client
2009-06-02 19:34:00 BoshIOService.writeRawData() FINEST: Writing to socket:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 643
Connection: close
Server: Tigase Bosh/4.1.0-b1315
<body from="soyuz.safe.net"
xmlns:stream="http://etherx.jabber.org/streams"
xmlns="http://jabber.org/protocol/httpbind"
xmpp:version="1.0" ack="1018483880"
xmlns:xmpp="urn:xmpp:xbosh"
secure="true"><stream:features><auth
xmlns="http://jabber.org/features/iq-auth"/><register
xmlns="http://jabber.org/features/iq-register"/><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>CRAM-MD5</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><session
xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features></body>
2009-06-02 19:34:00 ConnectionManager.serviceStopped() FINER: >>bosh<< Connection stopped: 127.0.0.1_5280_127.0.0.1_44657
2009-06-02 19:34:00 MessageRouter.processPacket() FINEST: Processing packet: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="get" xmlns="jabber:client"
id="_auth_1" to="soyuz.safe.net"><query
xmlns="jabber:iq:auth"><username>softer8</username></query></iq>,
XMLNS=jabber:client
2009-06-02 19:34:00 MessageRouter.processPacket() FINEST: Packet is processing by: sess-man@soyuz
2009-06-02 19:34:00 SessionManager.processPacket() FINEST: Received packet: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="get" xmlns="jabber:client"
id="_auth_1" to="soyuz.safe.net"><query
xmlns="jabber:iq:auth"><username>softer8</username></query></iq>,
XMLNS=jabber:client
2009-06-02 19:34:00 SessionManager.processPacket() FINEST: processing packet: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="get" xmlns="jabber:client"
id="_auth_1" to="soyuz.safe.net"><query
xmlns="jabber:iq:auth"><username>softer8</username></query></iq>,
XMLNS=jabber:clientconnectionID:
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:00 SessionManager.walk() FINEST: XMPPProcessorIfc: JabberIqAuth (jabber:iq:auth)
Request: <query
xmlns="jabber:iq:auth"><username>softer8</username></query>,
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:00 SessionManager.processPacket() FINEST: Packet processed by: [jabber:iq:auth]
2009-06-02 19:34:00 XMPPIOService.processSocketData() INFO: function called when the service is not connected! forceStop()
2009-06-02 19:34:00 MessageRouter.processPacket() FINEST: Processing packet: to=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a,
from=sess-man@soyuz, data=<iq type="result"
from="soyuz.safe.net" id="_auth_1"><query
xmlns="jabber:iq:auth"><username/><password/><digest/><resource/></query></iq>,
XMLNS=null
2009-06-02 19:34:00 MessageRouter.processPacket() FINEST: Packet is processing by: bosh@soyuz
2009-06-02 19:34:00 ClientConnectionManager.processPacket() FINER:
Processing packet: iq, type: result
2009-06-02 19:34:00 ClientConnectionManager.processPacket() FINEST:
Processing packet: <iq type="result"
from="soyuz.safe.net" id="_auth_1"><query
xmlns="jabber:iq:auth"><username/><password/><digest/><resource/></query></iq>
2009-06-02 19:34:00 BoshSession.processPacket() FINEST: [0]
Processing packet: to=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a,
from=sess-man@soyuz, data=<iq type="result"
from="soyuz.safe.net" id="_auth_1"><query
xmlns="jabber:iq:auth"><username/><password/><digest/><resource/></query></iq>,
XMLNS=null
==> tigase-console.log <==
2009-06-02 19:34:10 SessionManager.processCommand() FINER: STREAM_CLOSED command from:
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:10 SessionManager.closeConnection() FINE: Stream closed from: bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:10 SessionManager$ProcessorThread.run() SEVERE:
Exception during packet processing: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="error" to="soyuz.safe.net"
id="_auth_1"><query
xmlns="jabber:iq:auth"><username/><password/><digest/><resource/></query><error
type="wait" code="404"><recipient-unavailable
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text
xml:lang="en"
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Bosh =
disconnected</text></error></iq>,
XMLNS=nulltigase.xmpp.PacketErrorTypeException: The packet has already
'error' type: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="error" to="soyuz.safe.net"
id="_auth_1"><query
xmlns="jabber:iq:auth"><username/><password/><digest/><resource/></query><error
type="wait" code="404"><recipient-unavailable
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text
xml:lang="en"
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Bosh =
disconnected</text></error></iq>, XMLNS=null
at
tigase.xmpp.Authorization.getResponseMessage(Authorization.java)
at tigase.xmpp.impl.JabberIqAuth.process(JabberIqAuth.java)
at
tigase.server.xmppsession.SessionManager$ProcessorThread.run(SessionManager.java)
==> tigase.log.0 <==
2009-06-02 19:34:10 MessageRouter.processPacket() FINEST: Processing packet: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="error" to="soyuz.safe.net"
id="_auth_1"><query
xmlns="jabber:iq:auth"><username/><password/><digest/><resource/></query><error
type="wait" code="404"><recipient-unavailable
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text
xml:lang="en"
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Bosh =
disconnected</text></error></iq>, XMLNS=null
2009-06-02 19:34:10 MessageRouter.processPacket() FINEST: Packet is processing by: sess-man@soyuz
2009-06-02 19:34:10 MessageRouter.processPacket() FINEST: Processing packet: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="set" id="sess1" from="null"
to="null"><command node="STREAM_CLOSED"
xmlns="http://jabber.org/protocol/commands"/></iq>,
XMLNS=null
2009-06-02 19:34:10 MessageRouter.processPacket() FINEST: Packet is processing by: sess-man@soyuz
2009-06-02 19:34:10 SessionManager.processPacket() FINEST: Received packet: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="error" to="soyuz.safe.net"
id="_auth_1"><query
xmlns="jabber:iq:auth"><username/><password/><digest/><resource/></query><error
type="wait" code="404"><recipient-unavailable
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text
xml:lang="en"
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Bosh =
disconnected</text></error></iq>, XMLNS=null
2009-06-02 19:34:10 SessionManager.processPacket() FINEST: processing packet: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="error" to="soyuz.safe.net"
id="_auth_1"><query
xmlns="jabber:iq:auth"><username/><password/><digest/><resource/></query><error
type="wait" code="404"><recipient-unavailable
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text
xml:lang="en"
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Bosh =
disconnected</text></error></iq>,
XMLNS=nullconnectionID: bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:10 SessionManager.walk() FINEST: XMPPProcessorIfc: JabberIqAuth (jabber:iq:auth)
Request: <query
xmlns="jabber:iq:auth"><username/><password/><digest/><resource/></query>,
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:10 SessionManager.processPacket() FINEST: Packet processed by: [jabber:iq:auth]
2009-06-02 19:34:10 SessionManager.processPacket() FINEST: Received packet: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="set" id="sess1" from="null"
to="null"><command node="STREAM_CLOSED"
xmlns="http://jabber.org/protocol/commands"/></iq>,
XMLNS=null
2009-06-02 19:34:10 SessionManager.processCommand() FINER: STREAM_CLOSED command from:
bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:10 SessionManager.closeConnection() FINE: Stream closed from: bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a
2009-06-02 19:34:10 SessionManager$ProcessorThread.run() SEVERE:
Exception during packet processing: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="error" to="soyuz.safe.net"
id="_auth_1"><query
xmlns="jabber:iq:auth"><username/><password/><digest/><resource/></query><error
type="wait" code="404"><recipient-unavailable
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text
xml:lang="en"
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Bosh =
disconnected</text></error></iq>,
XMLNS=nulltigase.xmpp.PacketErrorTypeException: The packet has already
'error' type: to=sess-man@soyuz,
from=bosh@soyuz/2c80b2e4-61b8-49ad-824e-5b943ed16e4a, data=<iq
type="error" to="soyuz.safe.net"
id="_auth_1"><query
xmlns="jabber:iq:auth"><username/><password/><digest/><resource/></query><error
type="wait" code="404"><recipient-unavailable
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text
xml:lang="en"
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Bosh =
disconnected</text></error></iq>, XMLNS=null
at
tigase.xmpp.Authorization.getResponseMessage(Authorization.java)
at tigase.xmpp.impl.JabberIqAuth.process(JabberIqAuth.java)
at
tigase.server.xmppsession.SessionManager$ProcessorThread.run(SessionManager.java)
I am sorry that I didnt give
I am sorry that I didnt give much details. I was trying to get some javascript client to work with BOSH. I tried jwchat, and some others which I came across online. I was actually trying to figure out how to do very basic communication thru xmpp like mostly a echobot to put it or even, just to send some info to the client screen to put it. I finally came across strophe javascript library and got it to work on bosh. Thou I am having trouble with some of the basic examples in that. I get the following error
2009-06-02 19:23:25 SessionManager$ProcessorThread.run() SEVERE: Exception during packet processing: to=sess-man@soyuz, from=bosh@soyuz/deb16687-444f-4773-9238-afeb74158b79, data=
Bosh = disconnected , XMLNS=nulltigase.xmpp.PacketErrorTypeException: The packet has already 'error' type: to=sess-man@soyuz, from=bosh@soyuz/deb16687-444f-4773-9238-afeb74158b79, data=
Bosh = disconnected , XMLNS=null
at tigase.xmpp.Authorization.getResponseMessage(Authorization.java)
at tigase.xmpp.impl.JabberIqAuth.process(JabberIqAuth.java)
at tigase.server.xmppsession.SessionManager$ProcessorThread.run(SessionManager.java)
What is going wrong?
Thanks,
-vi
To be honest it is quite
To be honest it is quite difficult to help you as you provide very little information. I don't know what client you try to setup, thus I have no idea what is http-bind reference. I guess this is some setting for the JS client you try to run.
If you try to connect JS client from web browser you normally also need a HTTP proxy configured to redirect HTTP requests from your client to the Bosh server. Please refer to your client documentation for more details.
I am trying to use some
I am trying to use some javascript base jabber web client.
Am trying to configure to access tigase server setup locally.
Am trying to access through BOSH.
How do I set the http-bind reference? Is it needed.
I am wondering whether i should use http-bind or something like that or should I leave this blank?
Thanks,
-vi
You can, of course connect
You can, of course connect to Bosh on Tigase this way, however a web browser won't show you anything. You need a Bosh client or any XMPP client with Bosh support to communicate via Bosh protocol.
How do I access it? I see
How do I access it?
I see port 5280 to be related to bosh.
Do I just access it http://server:5280?
Thanks,
-vi
There is nothing special to
There is nothing special to do. Bosh is a standard Tigase component and it is loaded by default at the server startup time.
Post new comment