Shilpa Tendulkar

Ranch Hand
+ Follow
since Jul 29, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shilpa Tendulkar

Hi

I'm trying to read exchange mailbox using javamail api but I'm unable to connect to server. I goggled it for quite some time and tried all things suggested but no luck. hope someone can point me in right direction
following is the exception I get
javax.mail.MessagingException: Unrecognized SSL message, plaintext connection?;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:571)
at javax.mail.Service.connect(Service.java:288)
at comp.devexch.DevExch.main(DevExch.java:47) //trying to connect at this line store.connect(...)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:753)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at com.sun.mail.iap.ResponseInputStream.readResponse(ResponseInputStream.java:97)
at com.sun.mail.iap.Response.<init>(Response.java:96)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:61)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:135)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:261)
at com.sun.mail.iap.Protocol.<init>(Protocol.java:114)
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:104)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)
... 2 more

and code is



Thank you.
SOLVED and SIMPLIFIED

Ignore session changes. In my case, you do not need to access session at all. All you have to do is set javaMailProperties in Mailer

in support.xml or wherever mail bean properties are set




This was so easy I couldnt understand how I missed it

Hope this will help.

11 years ago
SOLVED

I'm glad I was able to resolved the problem. Task was to send bounce emails to another address than "from" address in the mail. I tried setting headers but apparently smtp server ignores it if error occurs. So solution was to set mail.smtp.from address in the javax.mail.session.
I followed these steps:



Also don't forget to copy or move mail.jar and activation.jar in tomcat/lib or tomcat/endorsed folder.


Hope this helps. If there are any chances of improving this solution please let me know. Thanks.

11 years ago
Hi,

Thanks for your reply. yes. from address is diffrent from the one I used in mail.smtp.from because I want bounce mails to go to mail.smtp.from addres instead of going to "from" address in mail bean. Sorry if I was not clear on stating my problem.

I research through some posts on web, it seems you can set bounce address as mail.smtp.from and bounce mails will be notified to this address. Using spring, one need to specifiy smtp.from in javamailproperties in bean settings. As I'm investigating more on this, it seems, I need to set mail session in context and refer it in the bean properties as well. Do you have any idea on how to do this?
11 years ago
Hi
I did debug; there is no exception and mail is sent successfully. its that, mail is being sent to "from" addressee instead of one mentioned in javaMailproperties (mail.smtp.from - I used this for bounced mails.) in bean settings. May be i'm not sure what should I look for when I debug this code.
11 years ago
Thanks for reply. I did debug it but cant see anything which can highight the problem. Debug shows following information; in this MAIL FROM is set to desire bouced address but mail is not sent to this address. Is there somehing I need to do diffrently? Thanks.





I changed bean properties little bit, now mail is sent but when its bounced its not going to the bounced address (mail.smtp.from) address but its going to "from" address from mail.


11 years ago
Hello,

I've been trying to smtp.from properties for bounced mails but there is no luck. I dont see any errors. I have set debug to true which does show me from addres but mail is not sent to that address. I'm using fake email id which I know will bounced.
my bean properties are


Any help will be much appreciated. Thank you.

11 years ago
I get these message on tomcat startup but appliction run ok. Anyone facing the same problem? please help

12 years ago
instead of label use value attribute
12 years ago
Hi
I'm new to struts2. I want to validate whether certain record exist in the DB or not. Now I dont have just a single field to validate to check duplicate record but I need to check complete recored with comibination to say data is duplicated.
What I mean is, optionId should have unique key value pair. there can be multiple key value pairs for one optionId. i'm using actionvalidation.



it seems something is missing, i can still enter duplicate data. can anyone help please?
12 years ago
I am looking for free AJAX bulletin board to use in my project. I tried googling, but couldnt find anything.

Thanks

I just realised when I renamed the action class from AutoGroupsViewAction to AutogroupsViewAction, it works fine...

i have other action classes with has camel case in their names. Also I remember renaming this class from Autogroup... to AutoGroup.. but I also remember this was working for sometime after renaming it to AutoGroup....


I dont know what could have gone wrong..
13 years ago
yes it is deployed and i can see it in the war file. also I have redeploy the whole applications. its still the same
13 years ago
Thanks for the reply. Log say (AutoGroupsViewAction )action class not found. but I can see it is in the build and at the right path..
dont know what else to look for

13 years ago
Hi all,

I am getting 500 error. while executing struts application.
I have checked if action class is public , action method is public, my struts has right configuration but nothing helped. Am I missing anythig else here? following is my code



Any help will be appreciated. Thanks

13 years ago