This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes StackOverflowError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "StackOverflowError" Watch "StackOverflowError" New topic
Author

StackOverflowError

Ayoub Limouni
Greenhorn

Joined: Jul 12, 2012
Posts: 19

hello reader i've a big problem with javamail api here is the code ; could you please give me an answer
Claude Moore
Ranch Hand

Joined: Jun 24, 2005
Posts: 430
    
    1

Is your piece of code inside a loop ? Or recursive call ? I can't figure why you get a StackOverflow exception, may you post the stack trace ?
Ayoub Limouni
Greenhorn

Joined: Jul 12, 2012
Posts: 19

NO neither one nor the other ! but still do not understand why StackOverflowError !!!
Claude Moore
Ranch Hand

Joined: Jun 24, 2005
Posts: 430
    
    1

Can't you either post the stacktrace ?
Luan Cestari
Ranch Hand

Joined: Feb 07, 2010
Posts: 162

I think that might be some old code remaining from some previous test (I looked the source code of the JDK and just for this snippet and the way you are doing, the only explanation for this is an old code which was overriding the wrong method). The stacktrace might help to guarantee that.

http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/net/Authenticator.java
http://grepcode.com/file/repo1.maven.org/maven2/javax.mail/mail/1.5.0-b01/javax/mail/Session.java
http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/net/PasswordAuthentication.java


Please, visit me for some cool tech post at www.ourdailycodes.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: StackOverflowError
 
Similar Threads
Sending Email using Java mail API in J2EE
How to configure localhost to send email.
Sending mail through Java
Give me solution to send mail
JavaMail, servlet error