Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 69
Registered: ‎10-27-2008
My Device: Not Specified

Message.getBodyText blocking...

I have a small issue -- the Message.getBodyText method is freezing when that method is called in an application that is intercepting an email going out on a device that is hooked up to a BES with PGP enabled on it.  It seems that the PGP application has a lock on the Message object (or data, or something) and the call to the getBodyText is blocking, waiting for the lock to be released (or something).  Does anyone have any ideas on how to work around this?

 

TIA

M

 

New Developer
larissartemis
Posts: 25
Registered: ‎12-03-2012
My Device: Playbook

Re: Message.getBodyText blocking...

Maybe post the code help to find the problem... Can you do that?

New Developer
alezy
Posts: 101
Registered: ‎11-25-2012
My Device: BlackBerry Playbook®

Re: Message.getBodyText blocking...

We can try help you if you post your log error ;-)
--
Mobile Developer
http://twitter.com/hackerlivre
New Developer
alezy
Posts: 101
Registered: ‎11-25-2012
My Device: BlackBerry Playbook®

Re: Message.getBodyText blocking...

Do you have any stacktrace?
--
Mobile Developer
http://twitter.com/hackerlivre
New Developer
larissartemis
Posts: 25
Registered: ‎12-03-2012
My Device: Playbook

Re: Message.getBodyText blocking...

That'd be very util!
New Developer
alezy
Posts: 101
Registered: ‎11-25-2012
My Device: BlackBerry Playbook®

Re: Message.getBodyText blocking...

:smileywink:
--
Mobile Developer
http://twitter.com/hackerlivre
Developer
Posts: 69
Registered: ‎10-27-2008
My Device: Not Specified

Re: Message.getBodyText blocking...

No stack trace.  That's generally what "blocking" means.  It works perfectly on BIS (meaning the debug logs -- via ALT-LGLG -- are showing correct execution), but on BES -- ONLY with messages being sent via the BES PGP program (i.e.: if the tag in the subject line turns off encryption, it works fine with intercepting the message and getting the body text) -- it blocks at the call.  If you *really* want to see the source, here it is:

 

String messageText = message.getBodyText();

 

Wasn't that a useful piece of code?  :Shifty: