Project

General

Profile

Actions

Bug #1480

open

Envio correo: al usar JNDI ya no carga tomcat

Added by Miguel Ruiz Velasco 10 days ago. Updated 10 days ago.

Status:
Feedback
Priority:
High
Start date:
02/19/2026
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.mail.javamail.JavaMailSender mx.go
b.conocer.sii.service.commons.email.impl.EmailSender.mailSender; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'mailSender' defined in class path resource [config/context-service-commons.xml]: Initialization of bean failed; nested exception is org.spr
ingframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'javax.mail.Session' to required type 'javax.mail.Session' for 
property 'session'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [javax.mail.Session] to required type [javax.mail.Sess
ion] for property 'session': no matching editors or conversion strategy found

       java.net.SocketTimeoutException: Read timed out
mx.gob.conocer.sii.commons.exception.ServiceException: Failed to close server connection after message sending; nested exception is javax.mail.MessagingException: Exception reading response;
  nested exception is:
        java.net.SocketTimeoutException: Read timed out
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at mx.gob.conocer.sii.util.exception.ConocerExceptionBuilder.build(ConocerExceptionBuilder.java:44)
        at mx.gob.conocer.sii.util.exception.ConocerExceptionBuilder.build(ConocerExceptionBuilder.java:31)
        at mx.gob.conocer.sii.service.commons.notification.impl.NotificationServiceImpl.sendNotification(NotificationServiceImpl.java:47)
        at mx.gob.conocer.sii.service.commons.notification.impl.NotificationServiceImpl.sendNotification(NotificationServiceImpl.java:36)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Actions #1

Updated by Miguel Ruiz Velasco 10 days ago

  • Status changed from New to In Progress
  • Priority changed from Normal to High
  • % Done changed from 0 to 80
Actions #2

Updated by Miguel Ruiz Velasco 10 days ago

Cambiar de parametros hardcodeados a javax.mail.Session por JNDI

Actions #3

Updated by Miguel Ruiz Velasco 10 days ago

  • Description updated (diff)
Actions #4

Updated by Miguel Ruiz Velasco 10 days ago

  • Status changed from In Progress to Feedback
  • % Done changed from 80 to 100

Enviar JNDI a Spring JavaMailSenderImpl en vez de las credenciales

Actions

Also available in: Atom PDF