0 Replies Latest reply: Apr 8, 2013 11:40 PM by agodavarthi RSS

    javax.mail.AuthenticationFailedException

    agodavarthi
      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.