The moose likes Android and the fly likes Mail Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Mail" Watch "Mail" New topic
Author

Mail

kushagra mittal
Greenhorn

Joined: Jun 02, 2011
Posts: 12


wats wrong with his code!!!
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 13842

Looks fine to me. (Except it wasn't posted with the code tags, but I've fixed that for you.) Why do you ask?
kushagra mittal
Greenhorn

Joined: Jun 02, 2011
Posts: 12
Paul Clapham wrote:Looks fine to me. (Except it wasn't posted with the code tags, but I've fixed that for you.) Why do you ask?



Lines 102 and 112 raises a exception but null messege is printed in catch BY getMessage function...
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4875

Have you verified that line 41 actually returns an email address?

Also, please post the full exception stack trace, that will make the error clearer (without that we will just be guessing).


JBoss In Action
kushagra mittal
Greenhorn

Joined: Jun 02, 2011
Posts: 12
Peter Johnson wrote:Have you verified that line 41 actually returns an email address?

Also, please post the full exception stack trace, that will make the error clearer (without that we will just be guessing).



Ya line 41 returns an Emailaddress.


[Ljava.lang.StackTraceElement;@10d9151

[Ljava.lang.StackTraceElement;@1bf68a9

[Ljava.lang.StackTraceElement;@1e16483

at line 102,112 and 119 resp...
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4875

StackTraceElement? Doesn't sound like an email object to me.

And where is the except stack trace???
 
 
subject: Mail
 
Threads others viewed
Getting exception in sending Email from Servlet
Javamail: Problem sending attachments
javamail.providers
Need Information about sending email Please
urgent help in java mail
developer file tools