<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1141" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY style="COLOR: #000000; FONT-FAMILY: Arial" bgColor=#ffffff>
<DIV><SPAN class=434432217-25032003><FONT size=2>Jabber has roughly three kinds
of "things" it connects to: clients, other jabber servers, and
components.</FONT></SPAN></DIV>
<DIV><SPAN class=434432217-25032003><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=434432217-25032003><FONT size=2>Clients are usually the instant
messengers you see on your desktop and connect via port 5222. Other jabber
servers connect using 5269, and components connect to whatever port you've told
jabber to allow them on.</FONT></SPAN></DIV>
<DIV><SPAN class=434432217-25032003><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=434432217-25032003><FONT size=2>For each of these they use a
different namespace.</FONT></SPAN></DIV>
<DIV><SPAN class=434432217-25032003><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=434432217-25032003><FONT size=2>From the details you gave
below, you mean to use the server namespace on port 5222, which is doomed
to fail. Also, the secret is actually a password known by the server that
the component uses to validate itself. Clients don't use secrets, and
instead have another similar but different validation
mechanism.</FONT></SPAN></DIV>
<DIV><SPAN class=434432217-25032003><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=434432217-25032003><FONT size=2>Do you really mean to program a
jabber component? Or do you want to write a client?</FONT></SPAN></DIV>
<DIV><SPAN class=434432217-25032003><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=434432217-25032003><FONT size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=434432217-25032003><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=434432217-25032003><FONT size=2>Mike</FONT></SPAN></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=434432217-25032003><FONT
face=Arial> </FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=434432217-25032003> </SPAN>-----Original Message-----<BR><B>From:</B>
Suchitra Joshi [mailto:suchitra.joshi@objectorb.com] <BR><B>Sent:</B> Monday,
March 24, 2003 11:22 PM<BR><B>To:</B> mike@machino.org<BR><B>Subject:</B> please
help me<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT size=2>Mike,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>I'm are using the Yaza API. I have facing a problem. For
testing I am running EchoComponent, an example class.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I have set </FONT></DIV>
<DIV><FONT size=2>String sSecret =
com.realtime.xmpp.XmppSession.JABBER_SERVER_NAMESPACE; <BR>String sHost =
( argv.length > 1 ? argv[1] : "serpens" );<BR>String sPort = ( argv.length
> 2 ? argv[2] : "5222" );</FONT></DIV>
<DIV><FONT size=2> in EchoComponent</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I am getting the following error.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#ff0000 size=2>3.25.03 12:37.56.718 (Re)starting
Connection<BR>3.25.03 12:37.56.765 Opening Socket:
com.realtime.xmpp.streams.SocketStreamFactory serpens:5222<BR>3.25.03
12:37.56.890 Socket Open<BR>3.25.03 12:37.56.921 Starting Session:
jabber:component:accept<BR>3.25.03 12:37.57.875 XMPP Parser Selected:
org.apache.xerces.parsers.SAXParser@e8f<BR>3.25.03 12:37.58.125 Sending
Packet:
<handshake>ca44ce71d83f1fea7ec5c27dd7c230643256c677</handshake><BR>3.25.03
12:37.58.203 Incoming packet: <stream:error
xmlns:stream="http://etherx.jabber.org/streams">Invalid
Namespace</stream:error><BR>3.25.03 12:37.58.281 Packet in:
<stream:error xmlns:stream="http://etherx.jabber.org/streams">Invalid
Namespace</stream:error><BR>Ignoring packet: <stream:error
xmlns:stream="http://etherx.jabber.org/streams">Invalid
Namespace</stream:error><BR>Warning: missing namespace prefix ignored:
<BR>3.25.03 12:37.58.296 Session Authenticated<BR>Warning: missing namespace
prefix ignored: stream<BR>3.25.03 12:37.58.109 Session Started<BR>3.25.03
12:37.58.312 Connection Error: java.net.SocketException: socket closed
(code=0)<BR>3.25.03 12:37.58.312 Socket Closing<BR>3.25.03 12:37.58.312
(Re)starting Connection<BR>3.25.03 12:37.58.312 Stream Closed<BR>3.25.03
12:37.58.328 Opening Socket: com.realtime.xmpp.streams.SocketStreamFactory
serpens:5222<BR>3.25.03 12:37.58.328 Socket Open<BR>3.25.03 12:37.58.375
Starting Session: jabber:component:accept<BR>3.25.03 12:37.58.406 XMPP Parser
Selected: org.apache.xerces.parsers.SAXParser@3026<BR>3.25.03 12:37.58.421
Incoming packet: <stream:error
xmlns:stream="http://etherx.jabber.org/streams">Invalid
Namespace</stream:error><BR>3.25.03 12:37.58.421 Packet in:
<stream:error xmlns:stream="http://etherx.jabber.org/streams">Invalid
Namespace</stream:error><BR>Ignoring packet: <stream:error
xmlns:stream="http://etherx.jabber.org/streams">Invalid
Namespace</stream:error><BR>3.25.03 12:37.58.437 Sending Packet:
<handshake>8644c6898bf95476e65bf72474680e5e0a612360</handshake><BR>Warning:
missing namespace prefix ignored: <BR>Warning: missing namespace prefix
ignored: stream<BR>3.25.03 12:37.58.437 Connection Error:
java.net.SocketException: socket closed (code=0)<BR>java.io.IOException: Timed
out waiting for XMPP
handshake<BR> java.lang.Throwable(java.lang.String)<BR> java.lang.Exception(java.lang.String)<BR> java.io.IOException(java.lang.String)<BR> void
com.realtime.xmpp.dom.DomAcceptComponent.waitForAuthentication(long)<BR> void
com.realtime.xmpp.dom.DomAcceptComponent.start()<BR> void
com.realtime.xmpp.examples.EchoComponent.main(java.lang.String
[])<BR></FONT></DIV>
<DIV><FONT size=2>Please respond ASAP.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Regards</FONT></DIV>
<DIV><FONT size=2>Suchitra<BR></DIV></BLOCKQUOTE></FONT></BODY></HTML>