powered by Jive Software

Offline Message Delivery throws an excaption

Does Jive Messenger support Rtf text?

I’‘m asking because I’'m developing XMPP client in which all text is Rtf.

If message is sent to offline user, Jive Messenger isn’'t able to deliver current message to Client?

Maybe it’‘s becouse of Rtf…I don’'t really know…

Could you describe me in what format Jive server saves all offline messages?

And is there any way to avoid this problem?

Message was edited by:

Sorantis

Hey Sorantis,

The server stores the XML representation of the message in the database for later delivery. If you need to send rich text then you may want to use url=http://www.jabber.org/jeps/jep-0071.htmlJEP-71: XHTML-IM[/url] so that any client that supports that JEP can read and send rich messages.

You can check in the jiveOffline table to see how your messages are being stored. Feel free to post your original, stored and retrieved messages.

Regards,

– Gato

Well, here is the sample of outgoing message

{\rtf1\ansi\ansicpg1251\deff0\deflang1049{\fonttbl{\f0\fnil\fcharset204 Microsoft Sans Serif;}}

\viewkind4\uc1\pard\f0\fs17{\pict\wmetafile8\picw476\pich503\picwgoal270\pichgoa l285

0100090000035602000000003502000000000400000003010800050000000b0200000000050000

000c0213001200030000001e0035020000410b2000cc0013001200000000001300120000000000

280000001200000013000000010018000000000028040000000000000000000000000000000000

00fffffffffffff7ffffefffffd6ffffadefff6bd6ff39c6ff10adf718b5ff42bdff73d6ffa5e7

ffd6ffffefffffffffffffffffffffff0000ffffffffffffe7ffffb5f7ff73d6ff39bdef21b5f7

10b5f710bdff08b5f708b5f710adef42bdf773d6ffbdffffe7ffffffffffffffff0000f7ffffef

ffffb5efff84d6f74ab5ef29a5e7109ce7109cef189cf739c6ff29bdff21bdff21b5f739bdef6b

c6e7b5f7ffefffffffffff0000e7ffffc6efff94cee700002900003900106300006b00007b0000

6b00005a001873318cd652ceff42ceff39c6ef63ceefd6ffffefffff0000bdffff9cdeff84cee7

0000210000292129842129a508089c1810ad1018a500087b00005a187bbd4ac6ff29b5ef42bde7

94d6f7deffff00008cffff52bdde73ceef0000210000310008631818a51010b51808c61008c618

10bd00189c00005a42a5e75aceff39b5de5abdde9cefff00004adeff39b5e76bc6ef0000210000

2100003100005a1010941810ad1810b52118b510189c00107b1863b573deff63e7ff52c6ef6bd6

ff000018bdff39c6ff63b5de000010000808080008000010000021000031000039000052081863

0021630000394abdef4aceff6bdeff73d6ff000018bdff31b5ef217394294a5a848c84bdbdadce

cec6dee7e7d6dee7c6cee7ced6efa5adce6b84a50008314aa5ce52c6ef52bdf76bdeff000031bd

f7299cce316b8ccee7f7efffffdeefe7ceded6bdcec6adbdbdd6dee7c6c6c6e7dee7f7eff7c6c6

ce5a848ca5efff39b5e739ceff00004ac6e71884a500001831637b001829001821003139002939

10424a002129183131293131292118524a4a00000073b5c652c6f731bdff00006bd6ff00082900

3152218cad42ceef42d6f742cef742c6ef84f7ff63c6e794def7cefffff7ffff182929001010ad

e7f76bceff52ceff00008ce7ff2984ad5abde752d6ff18bde721d6ff29ceff29bdf75adeff63d6

ff5abddeadffffbdf7ff84b5c6b5e7f7c6ffff63b5de84e7ff0000b5f7ff73bde75ab5de005a8c

005a8c18adde42ceff39b5e7399cce00295200527b7bd6f7a5f7ffadffffa5ffff6bceef7bbdde

bdffff0000cef7ffb5e7ff529cbd00295a00316b189cd639b5f742b5f72994c600104200396342

a5ce52b5de52b5de42add663b5deade7f7e7ffff0000ffffffe7ffffade7f75aadce299cce42bd

ff42d6ff29bdff31bdff42c6ff84efff5abdef7bd6ff73c6e77bc6e7b5e7ffeffffff7ffff0000

fffff7efffefdeffffb5efff29739c106ba531b5ef39bdff31b5ef52c6ff2984bd00426b84bde7

a5def7b5deefe7f7ffffffffffffff0000ffffffffffffffffffdeeff74a5a731839525a9cbd73

c6e77bceef5a9cc6001842183152bdceefcedeeff7ffffffffffffffffffffff0000ffffffffff

ffeff7effffffffff7ffefefffceefffa5deef9cdeefadd6f7c6cef7ded6fffff7fffffffff7ef

e7ffffffffffffffffff0000040000002701ffff030000000000

}\par

}

I’'m sending message in this format, and my messenger automaticly converts is to correspondig readable message with correspinding fonts, images, links and colors.

Message was edited by:

Sorantis

Hey Sorantis,

Can you check what data is being stored in the jiveOffline table? I’'m curious how the server is parsing such a message.

Regards,

– Gato

BTW, which server version are you using?

– Gato

I’'m using Jive Messenger 2.2.2

Why are you curious ? It’'s just a text

By the way, I think, it’'s not the fault of my messenger, because , also tested it with some open source messengers(For Example .NET jabber-net project), and unfortunately the same result occured.

Any clues?

Thanks.

Message was edited by:

Sorantis

Message was edited by:

Sorantis

Is it because of embedded database?

I’'m not using SQL for now.

Sorantis

I am also interested in the message not because that I am curious about your mail but because I just want get some sense on the format. Fro example

This is Bold[/b]

This is Italic[/i]

This is underline[/u]

Regards,

wmhtet

Actually, message posted by me is not a simple text…

It’‘s a smile(image), I’‘m converting smile image into rtf and sending it to contact.By this approach I’'m avoiding copy-paste operations with clipboard…

But…This is not good, because…guys I’'m sorry about this… offline message receiving crashes because of this transformation…

I gave up looking for a nice algorithm for sending smiles.

So I must make choice :smiles(for now with this algorithm) or offline messages

I didn’'t like it from beginning, but gave up

If anyone had done this before, or knows how to send smiles, please do me a favour, describe it or post a code.

I’'m writing on .NET platform.

Thanks.

No more problems

By adding one more function I’'ve fixed it!

Thanks guys!

And again sorry