[JDEV] Message sent is blank
Chris Chen
ckchris at idream.net
Mon Aug 18 12:33:46 CDT 2003
Try reading the README file of the Muse package distribution. Inside, it
will tell you how to enable debugging inside muse. Simply compile the
debugging into muse and then you will be able to see the incoming and
outgoing XML messages outputted (You will need to configure log4j.properties
file as well).
Then you can see if the message is sending the proper XML data.
Thanks,
Chris
----- Original Message -----
From: "Cunningham, Steven" <Steven.Cunningham at LibertyMutual.com>
To: <jdev at jabber.org>
Sent: Monday, August 18, 2003 6:12 AM
Subject: [JDEV] Message sent is blank
> I've been trying to get a jabber message to accept xhtml formatting, but
> without much luck.
> The message is sent all right, but it shows nothing in the message
> (Shows who sent it, but then the message itself is blank.)
>
> Here's the code that sends it (java)
>
> String message = "<span style='font-size:large'>OMG, i'm </span><span
> style='color:green'>green</span> with <em>envy</em>!";
> JabberChatMessage msg = new
> JabberChatMessage(JabberChatMessage.TYPE_CHAT);
> msg.setTo(jabTo);
> msg.setHTMLBody(message);
> msg.setSynchronized(false);
> jabberSession.sendMessage(msg);
> System.out.println("--- Jabber messages sent successfully!\n");
>
> When I included the <html> and <body> tags, I got the
> SendMessageFailedException popped up.
> SendMessageFailedException.getLocalizedMessage() returns this: The
> element "html" could not be added as a child of "message": The element
> already has an existing parent (the document root)
>
> Steven Cunningham
> Aspiring J-Developer
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>
More information about the JDev
mailing list