ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Reporting Application Errors by Email
Subject:   STARTTLS error
Date:   2006-10-31 01:52:57
From:   Josh3006
C:\log>java Log4jExample
[2006-10-31 17:46:59,906] DEBUG Log4jExample This is a debug message.
[2006-10-31 17:46:59,921] ERROR Log4jExample Caught an exception
java.lang.NumberFormatException: For input string: "Hello world"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at Log4jExample.main(Log4jExample.java:15)
log4j:ERROR Error occured while sending e-mail notification.
javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first g9sm10363981wra


at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1189)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:842)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:491)
at javax.mail.Transport.send0(Transport.java:151)
at javax.mail.Transport.send(Transport.java:80)
at org.apache.log4j.net.SMTPAppender.sendBuffer(Unknown Source)
at org.apache.log4j.net.SMTPAppender.append(Unknown Source)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
at org.apache.log4j.Category.callAppenders(Category.java:194)
at org.apache.log4j.Category.forcedLog(Category.java:379)
at org.apache.log4j.Category.error(Category.java:310)
at Log4jExample.main(Log4jExample.java:19)


anyone can help on this ??