This discussion is archived
5 Replies Latest reply: Apr 8, 2013 9:29 PM by agodavarthi RSS

Weblogic Mail Session Exception

947163 Newbie
Currently Being Moderated
Hi,

I have configured a mail session in Weblogic with the following Java Mail Properties:

mail.smtp.password=*****
mail.smtp.debug=true
mail.smtp.user=*****@gmail.com
mail.smtp.host=smtp.gmail.com
mail.smtp.auth=true
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
mail.smtp.port=465
mail.disable=false
mail.verbose=true
mail.transport.protocol=smtp


And i configured a watch and notification..but no email alert is being sent out and i see the following exception in the log


####<Feb 1, 2013 12:38:37 PM IST> <Error> <Diagnostics> <PC159073> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <29b4c05c8b10fb11:-327747d4:13c947d6645:-7ffd-0000000000000d04> <1359702517627> <BEA-320047> <Mail notification has not been sent due to an error that occurred while creating or sending a mail message:
com.bea.diagnostics.notifications.NotificationPropagationException: javax.mail.AuthenticationFailedException
     at com.bea.diagnostics.notifications.SMTPNotificationService.send(SMTPNotificationService.java:253)
     at weblogic.diagnostics.watch.SMTPNotificationListener.processWatchNotification(SMTPNotificationListener.java:218)
     at weblogic.diagnostics.watch.Watch.performNotifications(Watch.java:621)
     at weblogic.diagnostics.watch.Watch.evaluateHarvesterRuleWatch(Watch.java:519)
     at weblogic.diagnostics.watch.WatchManager.evaluateHarvesterRules(WatchManager.java:393)
     at weblogic.diagnostics.harvester.internal.MetricArchiver.timerExpired(MetricArchiver.java:617)
     at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused By: javax.mail.AuthenticationFailedException
     at javax.mail.Service.connect(Service.java:319)
     at javax.mail.Service.connect(Service.java:169)
     at javax.mail.Service.connect(Service.java:118)
     at javax.mail.Transport.send0(Transport.java:188)
     at javax.mail.Transport.send(Transport.java:118)
     at com.bea.diagnostics.notifications.SMTPNotificationService.send(SMTPNotificationService.java:235)
     at weblogic.diagnostics.watch.SMTPNotificationListener.processWatchNotification(SMTPNotificationListener.java:218)
     at weblogic.diagnostics.watch.Watch.performNotifications(Watch.java:621)
     at weblogic.diagnostics.watch.Watch.evaluateHarvesterRuleWatch(Watch.java:519)
     at weblogic.diagnostics.watch.WatchManager.evaluateHarvesterRules(WatchManager.java:393)
     at weblogic.diagnostics.harvester.internal.MetricArchiver.timerExpired(MetricArchiver.java:617)
     at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
>

Any help in this regards...???
  • 1. Re: Weblogic Mail Session Exception
    Kishore Rout Journeyer
    Currently Being Moderated
    Hi,
    Gmail email server needs SSL/TLS connection. So please add "SMTPUseSSL=Y" to your java mail properties, then try to send.

    Mark if this helps.

    Regards,
    Kishore
  • 2. Re: Weblogic Mail Session Exception
    947163 Newbie
    Currently Being Moderated
    Hi,

    Nothing better..Still the same error..
  • 3. Re: Weblogic Mail Session Exception
    947163 Newbie
    Currently Being Moderated
    Any ideas apart from that..?

    Edited by: 944160 on Feb 8, 2013 7:41 AM
  • 4. Re: Weblogic Mail Session Exception
    947163 Newbie
    Currently Being Moderated
    Still have the same issue...any idea..?
  • 5. Re: Weblogic Mail Session Exception
    agodavarthi Newbie
    Currently Being Moderated
    Javamail properties working fine when they were set in a jsp. And mail has been successfully triggering.


    JavaMail Properties:
    ============================
    mail.smtp.starttls.enable=true
    mail.smtp.user=xxxxxx@gmail.com
    mail.smtp.port=25
    mail.smtp.socketFactory.port=465
    mail.smtp.socketFactory.fallback=false
    mail.transport.protocol=smtp
    mail.smtp.debug=true
    mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
    mail.smtp.auth=true
    mail.smtp.host=gmail-smtp.l.google.com
    mail.smtp.password=xxxxxx
    ============================





    Face the below AuthenticationFailedException when the same are set JavaMail Properties of Mail Session in Weblogic 10.3.6.0

    WatchRuleType: Harvester
    WatchRule: (${DomainRuntime//[weblogic.management.runtime.JVMRuntimeMBean]com.bea:Location=AdminServer,Name=AdminServer,ServerRuntime=AdminServer,Type=JVMRuntime//HeapFreeCurrent} >0) OR (${ServerRuntime//[weblogic.management.runtime.JVMRuntimeMBean]com.bea:Name=AdminServer,ServerRuntime=AdminServer,Type=JVMRuntime//HeapFreeCurrent} < 50)
    WatchData: com.bea:Location=AdminServer,Name=AdminServer,ServerRuntime=AdminServer,Type=JVMRuntime//HeapFreeCurrent = 763595456
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 3000000
    >
    ####<9 Apr, 2013 9:33:29 AM IST> <Error> <Diagnostics> <AdminServer> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <91277109032d956e:92df144:13decf1e716:-8000-00000000000000f3> <1365480209057> <WL-320047> <Mail notification has not been sent due to an error that occurred while creating or sending a mail message:
    com.bea.diagnostics.notifications.NotificationPropagationException: javax.mail.AuthenticationFailedException
         at com.bea.diagnostics.notifications.SMTPNotificationService.send(SMTPNotificationService.java:253)
         at weblogic.diagnostics.watch.SMTPNotificationListener.processWatchNotification(SMTPNotificationListener.java:218)
         at weblogic.diagnostics.watch.Watch.performNotifications(Watch.java:621)
         at weblogic.diagnostics.watch.Watch.evaluateHarvesterRuleWatch(Watch.java:519)
         at weblogic.diagnostics.watch.WatchManager.evaluateHarvesterRules(WatchManager.java:393)
         at weblogic.diagnostics.harvester.internal.MetricArchiver.timerExpired(MetricArchiver.java:617)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused By: javax.mail.AuthenticationFailedException
         at javax.mail.Service.connect(Service.java:319)
         at javax.mail.Service.connect(Service.java:169)
         at javax.mail.Service.connect(Service.java:118)
         at javax.mail.Transport.send0(Transport.java:188)
         at javax.mail.Transport.send(Transport.java:118)
         at com.bea.diagnostics.notifications.SMTPNotificationService.send(SMTPNotificationService.java:235)
         at weblogic.diagnostics.watch.SMTPNotificationListener.processWatchNotification(SMTPNotificationListener.java:218)
         at weblogic.diagnostics.watch.Watch.performNotifications(Watch.java:621)
         at weblogic.diagnostics.watch.Watch.evaluateHarvesterRuleWatch(Watch.java:519)
         at weblogic.diagnostics.watch.WatchManager.evaluateHarvesterRules(WatchManager.java:393)
         at weblogic.diagnostics.harvester.internal.MetricArchiver.timerExpired(MetricArchiver.java:617)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >

    Please suggest.

    Regards,
    Godavarthi.

    Edited by: agodavarthi on Apr 8, 2013 9:26 PM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points