Closed GoogleCodeExporter closed 9 years ago
Yes, I can confirm that
org.jivesoftware.smack.util.PacketParserUtils.parseWithIntrospection needed to
be
rewritten.
http://github.com/rtreffer/smack/blob/master/source/org/jivesoftware/smack/util/
PacketParserUtils.java#L778
Please enable debugging (as usual), provide an XML dump (remove the SASL /
base64
text) and show off the code :-) I've not yet used parseWithIntrospection (and
it's
just a basic fix, android doesn't support java bean introspection).
I've already an idea, is the method inherited? I might have to check the full
chain
for a getFocus method....
Regards, René
Original comment by rtreffer@gmail.com
on 15 Mar 2010 at 12:53
I didn't know about the missing Java bean support! That explains it, then...
How can I enable debug?
Original comment by lmini...@gmail.com
on 15 Mar 2010 at 2:43
Well, I've create a drop in replacement, but I'm not sure if it works for object
hierarchies :-)
Anyway, you need set DEBUG=true on (XMPP|BOSH|)Connection. Or use the config.
It's
the first thing to enable ;-) Be aware that this will dump your credentials, so
remove the SASL packages (or at least the base64 content).
Original comment by rtreffer@gmail.com
on 15 Mar 2010 at 3:08
someone else spotted the problem:
http://github.com/rtreffer/asmack/commit/f564bde06dbabe2ad76afe9c6f9886bf02fefd3
c
object.getClass().getClass().getMethod(...) is nonsense, stripped one getClass,
could
you please retry?
TIA,
Rene
Original comment by rtreffer@gmail.com
on 3 May 2010 at 9:03
Hi René,
I just tried and it works great, well done!
In the meanwhile I had solved using the alternative way of implementing IQs,
that is
passing a new instance to addIQProvider, and then implementing the actual
parsing and
building in the IQ class itself (which is what is needed whenever non-flat XML
in IQs
is used anyway).
Of course this makes life much easier, thanks :)
Original comment by lmini...@gmail.com
on 4 May 2010 at 10:59
you're should thank koterpiller, reporter of issue 10, who spotted the root of
the
problem :-)
Problem solved, issue closed :-)
Original comment by rtreffer@gmail.com
on 4 May 2010 at 11:17
Original issue reported on code.google.com by
lmini...@gmail.com
on 15 Mar 2010 at 12:43