tong / hxmpp

Haxe XMPP library
65 stars 8 forks source link

Cannot get component example to work #11

Closed RudolfVonKrugstein closed 3 years ago

RudolfVonKrugstein commented 10 years ago

I am trying out the component example, with neko as target and of course the login data changed. I am using openfire for the server.

When I try the application, I get:

App.hx:31: Connecting to jabber server
Called from xmpp.disco.Items::$statics line 1
Called from App::main line 32
Called from jabber.component.Stream::open line 103
Called from jabber.SocketConnection::connect line 140
Called from jabber.component.Stream::handleConnect line 115
Called from jabber.Stream::sendData line 304
Called from jabber.XMPPDebug::print line 131
Called from xmpp.XMLBeautify::it line 36
Called from Xml::parse line 119
Uncaught exception - xml.c(80) : Xml parse error : Unexpected end at line 0 : ...<eof>

An example component written in jave works with the server.

tong commented 10 years ago

seems the error was in XMPPBeautify when passing invalid xml. should be fixed with last commit.

RudolfVonKrugstein commented 10 years ago

works, thanks!

RudolfVonKrugstein commented 10 years ago

The problem seems to have reapeared. Now the error looks like this (cpp target):

App.hx:31: Connecting to jabber server
Called from App::main::App.hx::32
Called from jabber.component.Stream::open::jabber/component/Stream.hx::107
Called from jabber.SocketConnection::connect::jabber/SocketConnection.hx::173
Called from jabber.component.Stream::handleConnect::jabber/component/Stream.hx::119
Called from jabber.Stream::sendData::jabber/Stream.hx::310
Called from jabber.XMPPDebug::print::jabber/XMPPDebug.hx::133
Called from xmpp.XMLBeautify::it::xmpp/XMLBeautify.hx::36
Called from Xml::parse::Xml.hx::104
Called from extern::cffi::/home/ls/haxelib/hxcpp/git/src/hx/Lib.cpp::119
Error : Xml parse error : Unexpected end at line 0 : ...<eof>
tong commented 10 years ago

that's strange, it should get catched (?)

RudolfVonKrugstein commented 10 years ago

Maybe its a problem with my haxe version, or hxcpp version? haxe: Haxe Compiler 3.1.3 (git build development @ c168e1d hxcpp: latest master

RudolfVonKrugstein commented 10 years ago

the neko version is working by the way

tong commented 10 years ago

you can deactivate xml formatting until this issue is solved: jabber.XMPPDebug.beautify = false;