[jdev] Server closing connection early

Norman Rasmussen norman at rasmussen.co.za
Tue Nov 22 07:14:02 CST 2005


tcpdump is your friend (or even better: tcpflow which I found out
about yesterday)

On 11/22/05, Jabber X <jabberlists at googlemail.com> wrote:
> It didnt seem to make a difference.
>  The problem seems to be the server is closing the connection when trying to
> send the second piece of xml data. It responds fine to the first
>
>
> On 11/20/05, Ulrich Staudinger <us at activestocks.de> wrote:
> > Jabber X schrieb:
> >
> > The data i am trying to send is embedded in the strings in the example
> >
> >
> > On 11/20/05, Ralph Meijer <jabber.org at ralphm.ik.nu > wrote:
> > > On Sun, Nov 20, 2005 at 08:01:40PM +0000, Jabber X wrote:
> > > > I have started  coding with Jabber but am having problems early on
> with what i
> > > > suspect in bad formatting in the Xml.
> > > > I send the initial xml to make the stream connection and then try to
> register
> > > > an account but the server closes the connection. When trying this on a
> telnet
> > > > client it does give me a stream error which says disconnected.
> Occasionally
> > > > upon trying other xml such as a login stream it might say invalid xml.
> > > > I put together this quick example below to illustrate the problem.
> > > > Any help would be greatly appreciated
> > >
> > > An actual trace of the data you are trying to send that gives the errors
> > > would help...
> > >
> > > --
> > > Groetjes,
> > >
> > > ralphm
> > >
> >
> >
> > I think you need to a) send a newline after the <?...?> xml preamble and
> b) insert a space in the xml preamble before the final ? (    "<?xml
> version='1.0' ?>\n"   )
> >
> > Cheers,
> > Ulrich
> >
> >
>
>


--
- Norman Rasmussen
 - Email: norman at rasmussen.co.za
 - Home page: http://norman.rasmussen.co.za/



More information about the JDev mailing list