coder2000 / jabber-net

Automatically exported from code.google.com/p/jabber-net
Other
0 stars 0 forks source link

xpnet.PartialTokenException thrown on large presence packet #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I recently upgraded from about a year old jabber-net to the SVN version. 
When I log in to my account, I get:

xpnet.PartialTokenException occurred
  Message="Exception of type 'xpnet.PartialTokenException' was thrown."
  Source="jabber-net"
  StackTrace:
       at xpnet.Encoding.scanAtts(Int32 nameStart, Byte[] buf, Int32 off,
Int32 end, ContentToken token) in D:\Documents\Visual Studio
2005\Projects\jabber-net\xpnet\Encoding.cs:line 1479

The packet it seems to be dying on is attached.

I have another account with just a few contacts on it that works as expected.

Target account is @jabber.org.

Client system is VS2k5, Vista 64bit.

Original issue reported on code.google.com by jpo...@gmail.com on 14 Feb 2008 at 6:03

Attachments:

GoogleCodeExporter commented 8 years ago
I think it wasn't actually dying, but that a spurious Console.WriteLine was 
confusing
you.  I added your packet to the unit tests, and it seems to work fine.  I've 
removed
the WriteLine; please try it again.

Original comment by hil...@gmail.com on 14 Feb 2008 at 9:11

GoogleCodeExporter commented 8 years ago
Ack, I had halt on first chance exceptions on from something else I was 
debugging. 
The exception is still thrown, but it is being handled by jabber-net.  Sorry to 
waste
your time.

Original comment by jpo...@gmail.com on 14 Feb 2008 at 10:22

GoogleCodeExporter commented 8 years ago
No problem.  At least I:
a) got another unit test out of it
b) took out a spurious WriteLine

therefore: great bug report! :)

Original comment by hil...@gmail.com on 15 Feb 2008 at 12:39