• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

StackOverflowError

 
Ayoub Limouni
Greenhorn
Posts: 19
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 806
7
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NO neither one nor the other ! but still do not understand why StackOverflowError !!!
 
Claude Moore
Ranch Hand
Posts: 806
7
IBM DB2 Java Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you either post the stacktrace ?
 
Luan Cestari
Ranch Hand
Posts: 172
C++ Redhat Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic