[jdev] Server closing connection early

Ulrich Staudinger us at activestocks.de
Sun Nov 20 15:00:58 CST 2005


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 
> <mailto: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20051120/2bca0045/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: us.vcf
Type: text/x-vcard
Size: 329 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20051120/2bca0045/attachment-0002.vcf>


More information about the JDev mailing list