aspose file tools*
The moose likes Android and the fly likes Mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Android
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: 18657
    
    8

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: 5836
    
    7

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: 5836
    
    7

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

And where is the except stack trace???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mail