Send mail from support form fails

48 views
Skip to first unread message

Alfredo Cosco

unread,
May 21, 2025, 8:57:07 AM5/21/25
to dataverse...@googlegroups.com
Hi all, 
on an instance with Dataverse 6.2, I made the email configuration; email sending is working fine; I changed my address, and I received the email to validate the new address. 
But when I try to send an email from the support form, I get this error in the log:

[2025-05-21T11:48:28.152+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=87 _ThreadName=http-thread-pool::jk-connector(3)] [timeMillis: 1747828108152] [levelValue: 800] [[
  com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Message Rejected: Invalid From address. Different emails <system_email> and <my_email> found

What's happening?

Thanks,
Alfredo

Philip Durbin

unread,
May 21, 2025, 9:14:24 AM5/21/25
to dataverse...@googlegroups.com
Hmm, I searched through the code base a bit but couldn't find where this error is thrown. Can you please provide more of the log?

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dataverse-community/CAB8fwFNzW1ns_ZgSb%2BFkAWC2R3PymrvHySjsJXurv0QMR%2BbsUg%40mail.gmail.com.


--

Alfredo Cosco

unread,
May 21, 2025, 9:55:21 AM5/21/25
to Dataverse Users Community
Thanks Phil,
here is a more detailed log fragment
(NB I removed some info and I put some placehoders like <system_email> or <support_email> instead of real values)

[2025-05-21T13:29:33.767+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173767] [levelValue: 800] [[
  DEBUG: getProvider() returning jakarta.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]]]

[2025-05-21T13:29:33.768+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173768] [levelValue: 800] [[
  DEBUG SMTP: allow UTF-8]]

[2025-05-21T13:29:33.768+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173768] [levelValue: 800] [[
  DEBUG SMTP: need username and password for authentication]]

[2025-05-21T13:29:33.769+0000] [Payara 6.2023.8] [FINE] [] [edu.harvard.iq.dataverse.util.MailSessionProducer] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173769] [levelValue: 500] [CLASSNAME: edu.harvard.iq.dataverse.util.MailSessionProducer$1] [METHODNAME: getPasswordAuthentication] [[
  Returning PasswordAuthenticator with username='<username>', password='********************']]

[2025-05-21T13:29:33.768+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173768] [levelValue: 800] [[
  DEBUG SMTP: protocolConnect returning false, host=<smtp_server>, user=dataverse, password=<null>]]

[2025-05-21T13:29:33.769+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173769] [levelValue: 800] [[
  DEBUG SMTP: useEhlo true, useAuth true]]

[2025-05-21T13:29:33.769+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173769] [levelValue: 800] [[
  DEBUG SMTP: trying to connect to host "<smtp_server>", port 465, isSSL true]]

[2025-05-21T13:29:33.924+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173924] [levelValue: 800] [[
  220 smtp-server ESMTP Postfix]]

[2025-05-21T13:29:33.924+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173924] [levelValue: 800] [[
  DEBUG SMTP: connected to host "<smtp_server>", port: 465]]


[2025-05-21T13:29:33.951+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173951] [levelValue: 800] [[
  250-smtp-server]

[2025-05-21T13:29:33.951+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173951] [levelValue: 800] [[
  250-PIPELINING]]

[2025-05-21T13:29:33.951+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173951] [levelValue: 800] [[
  250-SIZE 52428800]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  250-VRFY]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  250-ETRN]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  250-STARTTLS]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  250-AUTH PLAIN LOGIN]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  250-ENHANCEDSTATUSCODES]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  250-8BITMIME]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  250-DSN]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  250 CHUNKING]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  DEBUG SMTP: Found extension "PIPELINING", arg ""]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  DEBUG SMTP: Found extension "SIZE", arg "52428800"]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  DEBUG SMTP: Found extension "VRFY", arg ""]]

[2025-05-21T13:29:33.953+0000] [Payara 6.2023.8] [INFO] [] [com.sun.mail.smtp] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173953] [levelValue: 800] [[
  mail.mime.allowutf8 set but server doesn't advertise SMTPUTF8 support]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  DEBUG SMTP: Found extension "ETRN", arg ""]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  DEBUG SMTP: Found extension "STARTTLS", arg ""]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  DEBUG SMTP: Found extension "8BITMIME", arg ""]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  DEBUG SMTP: Found extension "DSN", arg ""]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  DEBUG SMTP: Found extension "CHUNKING", arg ""]]

[2025-05-21T13:29:33.952+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173952] [levelValue: 800] [[
  DEBUG SMTP: mail.mime.allowutf8 set but server doesn't advertise SMTPUTF8 support]]

[2025-05-21T13:29:33.953+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173953] [levelValue: 800] [[
  DEBUG SMTP: protocolConnect login, host=<smtp_server>, user=<system_email>, password=<non-null>]]

[2025-05-21T13:29:33.953+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173953] [levelValue: 800] [[
  DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM XOAUTH2 ]]

[2025-05-21T13:29:33.953+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173953] [levelValue: 800] [[
  DEBUG SMTP: Using mechanism LOGIN]]

[2025-05-21T13:29:33.953+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834173953] [levelValue: 800] [[
  DEBUG SMTP: AUTH LOGIN command trace suppressed]]

[2025-05-21T13:29:34.035+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174035] [levelValue: 800] [[
  DEBUG SMTP: AUTH LOGIN succeeded]]

[2025-05-21T13:29:34.035+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174035] [levelValue: 800] [[
  DEBUG SMTP: use8bit false]]

[2025-05-21T13:29:34.035+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174035] [levelValue: 800] [[
  MAIL FROM:<<system_email>>]]

[2025-05-21T13:29:34.070+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174070] [levelValue: 800] [[
  250 2.1.0 Ok]]

[2025-05-21T13:29:34.070+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174070] [levelValue: 800] [[
  RCPT TO:<<support_email>>]]

[2025-05-21T13:29:34.100+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174100] [levelValue: 800] [[
  250 2.1.5 Ok]]

[2025-05-21T13:29:34.101+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174101] [levelValue: 800] [[
  DEBUG SMTP: Verified Addresses]]

[2025-05-21T13:29:34.101+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174101] [levelValue: 800] [[
  DEBUG SMTP:   <support_email>]]

[2025-05-21T13:29:34.101+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174101] [levelValue: 800] [[
  DATA]]

[2025-05-21T13:29:34.128+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174128] [levelValue: 800] [[
  354 End data with <CR><LF>.<CR><LF>]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  Date: Wed, 21 May 2025 13:29:33 +0000 (UTC)]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  From: "ORGANIZATION on behalf of <user_email>" <ystem_email>]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  Reply-To: <user_email>]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  To: <support_email>]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  Message-ID: <------------------>]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  Subject: ORGANIZATION support request: test23]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  MIME-Version: 1.0]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  Content-Type: text/plain; charset=UTF-8]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  Content-Transfer-Encoding: 7bit]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  ORGANIZATION Support,]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  The following message was sent from <user_email>.]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  ---]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  xxy]]

[2025-05-21T13:29:34.131+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174131] [levelValue: 800] [[
  ---]]

[2025-05-21T13:29:34.132+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174132] [levelValue: 800] [[
  Message sent from Support contact form.]]

[2025-05-21T13:29:34.132+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174132] [levelValue: 800] [[
  .]]

[2025-05-21T13:29:34.162+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174162] [levelValue: 800] [[
  550 5.7.1 Message Rejected: Invalid From address. Different emails <system_email> and <user_email> found]]

[2025-05-21T13:29:34.162+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174162] [levelValue: 800] [[
  DEBUG SMTP: got response code 550, with response: 550 5.7.1 Message Rejected: Invalid From address. Different emails <system_email> and <user_email> found
]]

[2025-05-21T13:29:34.162+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174162] [levelValue: 800] [[
  RSET]]

[2025-05-21T13:29:34.189+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174189] [levelValue: 800] [[
  250 2.0.0 Ok]]

[2025-05-21T13:29:34.189+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174189] [levelValue: 800] [[
  DEBUG SMTP: MessagingException while sending, THROW: ]]

[2025-05-21T13:29:34.190+0000] [Payara 6.2023.8] [INFO] [] [] [tid: _ThreadID=86 _ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747834174190] [levelValue: 800] [[
  com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Message Rejected: Invalid From address. Different emails <system_email> and <user_email> found

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2423)
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:2144)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1333)
at jakarta.mail.Transport.send0(Transport.java:231)
at jakarta.mail.Transport.send(Transport.java:100)
at edu.harvard.iq.dataverse.MailServiceBean.sendMail(MailServiceBean.java:235)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:588)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:408)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4835)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:653)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:834)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:603)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
at jdk.internal.reflect.GeneratedMethodAccessor291.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:888)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:833)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:603)
at org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:72)
at org.jboss.weld.module.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52)
at jdk.internal.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:888)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:833)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:375)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4807)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4795)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:90)
at jdk.proxy75/jdk.proxy75.$Proxy414.sendMail(Unknown Source)
at edu.harvard.iq.dataverse.__EJB31_Generated__MailServiceBean__Intf____Bean__.sendMail(Unknown Source)
at edu.harvard.iq.dataverse.SendFeedbackDialog.sendMessage(SendFeedbackDialog.java:218)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.glassfish.expressly.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:186)
at org.glassfish.expressly.parser.AstValue.invoke(AstValue.java:253)
at org.glassfish.expressly.MethodExpressionImpl.invoke(MethodExpressionImpl.java:248)
at org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
at org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
at jakarta.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:113)
at jakarta.faces.event.ActionEvent.processListener(ActionEvent.java:72)
at jakarta.faces.component.UIComponentBase.broadcast(UIComponentBase.java:481)
at jakarta.faces.component.UICommand.broadcast(UICommand.java:197)
at jakarta.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:858)
at jakarta.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1332)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:56)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:72)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:159)
at jakarta.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:691)
at jakarta.faces.webapp.FacesServlet.service(FacesServlet.java:449)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1554)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:83)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:226)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:372)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:239)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:174)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:153)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:196)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:246)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:178)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:118)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:96)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515)
at java.base/java.lang.Thread.run(Thread.java:840)


[

Philip Durbin

unread,
May 21, 2025, 11:42:58 AM5/21/25
to dataverse...@googlegroups.com

Hmm, you might want to look into what that setContactDelegation method is doing. It looks like it can mutate fromAddress.

Also, https://github.com/IQSS/dataverse/issues/4210 might be helpful (or might add confusion). It looks like we made changes in 6.2

Alfredo Cosco

unread,
May 22, 2025, 7:23:18 AM5/22/25
to Dataverse Users Community

Hello,

Thank you for the suggestions, but I'm unable to improve the situation. Let me explain the case clearly:

The site is: dataverse.myhost.org 

The system email is: no-r...@emailservice.org 

The email domain is different from the site host domain.

The Dataverse version is 6.2.

I've configured it with standard JVM options:

xml
<jvm-options>-Ddataverse.mail.mta.ssl.enable=true</jvm-options> <jvm-options>-Ddataverse.mail.mta.auth=true</jvm-options> <jvm-options>-Ddataverse.mail.debug=true</jvm-options> <jvm-options>-Ddataverse.mail.mta.port=465</jvm-options> <jvm-options>-Ddataverse.mail.mta.host=smtp.emailservice.email</jvm-options> <jvm-options>-Ddataverse.mail.mta.user=no-r...@emailservice.org</jvm-options> <jvm-options>-Ddataverse.mail.mta.password=****</jvm-options> <jvm-options>-Ddataverse.mail.system-email=no-r...@emailservice.org</jvm-options> <jvm-options>-Ddataverse.mail.support-email=data...@myhost.org</jvm-options>

I can send notifications successfully - I've tested this with email change notifications and it works.

However, I cannot send emails from the Support form:

[2025-05-22T10:46:05.724+0000] [Payara 6.2023.8] [INFO] [] [] [tid: *ThreadID=87 *ThreadName=http-thread-pool::jk-connector(2)] [timeMillis: 1747910765724] [levelValue: 800] [[ com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Message Rejected: Invalid From address. Different emails no-r...@emailservice.org and alfred...@gmail.com found

Following this guide: https://guides.dataverse.org/en/6.2/developers/troubleshooting.html#configuring-troubleshooting-mail-host

I added the :SystemEmail parameter.

I reverted the configuration to the old standard approach, creating a javamail-resource with a command similar to this:

bash
./asadmin create-javamail-resource --mailhost [smtp.gmail.com] --mailuser [test\@test\.com] --fromaddress [test\@test\.com]
--property mail.smtp.auth=[true]:mail.smtp.password=[password]:mail.smtp.port=[465]:mail.smtp.socketFactory.port=[465]
:mail.smtp.socketFactory.fallback=[false]:mail.smtp.socketFactory.class=[javax.net.ssl.SSLSocketFactory] mail/notifyMailSession

Even with this configuration, I can send email change notifications, but I still cannot send emails from the support form.
Thanks,

Alfredo

Philip Durbin

unread,
May 22, 2025, 9:55:25 AM5/22/25
to dataverse...@googlegroups.com
Hi Alfredo,

Thanks for the detailed explanation.

When using the "support" button to send a message, it does make sense that the "from" address is the person asking the question (you, in this case).

I'm not sure why you are seeing this error, though. Please feel free to open an issue https://github.com/IQSS/dataverse . At the very least it sounds like we might need to improve the documentation!

By any chance, have you tried with the latest release (6.6) or the "develop" branch? I'm just wondering if the bug is present there as well.

Thanks,

Phil

Alfredo Cosco

unread,
May 22, 2025, 11:22:45 AM5/22/25
to dataverse...@googlegroups.com

Thank you, Phil.

I have opened the issue on GitHub:
https://github.com/IQSS/dataverse/issues/11514.

I haven't tested it with version 6.6 yet.

Bye,
Alfredo


Reply all
Reply to author
Forward
0 new messages