1. Which version of JavaMail (or exactly which build of Glassfish) are you using.
2. Please post the entire exception trace.
3. Please post the _exact_ debug output for this. I looked at the source code and what you posted here appears inconsistent.
-Peter (Sun)
[Message sent by forum member 'peterwx' (peterwx)]
http://forums.java.net/jive/thread.jspa?messageID=230301