Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

sun.net.smtp.SmtpProtocolException inside a WO app

843830Nov 25 2005
This is not a WO (Apple WebObjects) app I wrote but one I am helping to install and host. It is not java.mail but sun.net.SmtpClient, but I cannot find a forum for sun.net stuff...

The app tries to send email using the sun java sun.net.SmtpClient .

Anyway, we get this exception on the app side:

24 Nov 2005 21:41:14,572 ERROR [WorkerThread 2]: com.sPearWay.electronicCommerce.MailDelivery - sendEmail() exception:
sun.net.smtp.SmtpProtocolException:
at sun.net.smtp.SmtpClient.issueCommand(SmtpClient.java:48)
at sun.net.smtp.SmtpClient.closeServer(SmtpClient.java:38)
blah blah blah

notice there is nothing listed after sun.net.smtp.SmtpProtocolException: . Usually it will give the text for what sort of error it was, like a 550 or 554 and text.

But the mail server side had the following in the log:

2005-11-24 21:41:14 SMTP protocol violation: synchronization error (input sent without waiting for greeting): rejected connection from H=[166.70.252.252
] input="helo woodhall\r\n"


So it appears that the WO app (sun.net.SmtpClient) is screwing up and not following the smtp protocol of waiting for the remote server to identify itself, but is immediately blasting its HELO command out. Most servers today will enforce the protocol of waiting since about the only people who don't follow it are badly written spam senders.

Any ideas on why this is happening? Or what to do about it?

Thanks
Chad
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 23 2005
Added on Nov 25 2005
0 comments
273 views