#1 2024-10-14 13:35:38

HawraJuma16
Member
Registered: 2024-10-14

No default Email - SMTP server datasink configured

I am getting the error of No default Email - SMTP server datasink configured when I try to activate the user:
net.datenwerke.gxtdto.client.servercommunication.exceptions.ServerCallFailedException: No default Email - SMTP server datasink configured
<br>    at net.datenwerke.rs.passwordpolicy.server.ActivateUserRpcServiceImpl.activateAccount(ActivateUserRpcServiceImpl.java:51)
<br>    at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:64)
<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)
<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
<br>    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
<br>    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
<br>    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
<br>    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:587)
<br>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:333)
<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)
<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
<br>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:303)
<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)
<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
<br>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:373)
<br>    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
<br>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:555)
<br>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)
<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
<br>    at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:290)
<br>    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:280)
<br>    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:184)
<br>    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:89)
<br>    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
<br>    at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:94)
<br>    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
<br>    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)
<br>    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
<br>    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:168)
<br>    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
<br>    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:168)
<br>    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
<br>    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
<br>    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
<br>    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
<br>    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
<br>    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
<br>    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:346)
<br>    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:383)
<br>    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
<br>    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:937)
<br>    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
<br>    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
<br>    at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
<br>    at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
<br>    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
<br>    at java.base/java.lang.Thread.run(Thread.java:829)
<br>Caused by: java.lang.IllegalStateException: No default Email - SMTP server datasink configured
<br>    at net.datenwerke.rs.core.service.mail.MailServiceImpl.loadDefaultEmailDatasink(MailServiceImpl.java:190)
<br>    at net.datenwerke.rs.core.service.mail.MailServiceImpl.loadDatasink(MailServiceImpl.java:198)
<br>    at net.datenwerke.rs.core.service.mail.MailServiceImpl.newSimpleMail(MailServiceImpl.java:122)
<br>    at net.datenwerke.rs.core.service.mail.MailServiceImpl.newTemplateMail(MailServiceImpl.java:136)
<br>    at net.datenwerke.rs.core.service.mail.MailServiceImpl.newTemplateMail(MailServiceImpl.java:130)
<br>    at net.datenwerke.rs.passwordpolicy.service.activateuser.ActivateUserServiceImpl.activateAccount(ActivateUserServiceImpl.java:112)
<br>    at net.datenwerke.rs.passwordpolicy.server.ActivateUserRpcServiceImpl.activateAccount(ActivateUserRpcServiceImpl.java:49)
<br>    ... 48 more
<br>

Where I have provided the following details in the datasink and updated the datasink in the system files:
<email disabled="false" supportsScheduling="true">
    <defaultDatasinkId>5003</defaultDatasinkId>
  </email>
where 5003 us the datasink ID

Offline

#2 2024-10-14 13:43:38

eduardo
Administrator
Registered: 2016-11-01
Website

Re: No default Email - SMTP server datasink configured

Hi HawraJuma16,

pls don't forget to reload your configuration with the "config reload" terminal command. You may have to log out and log in again.

Regards,
Eduardo

Offline

#3 2024-10-15 09:56:38

HawraJuma16
Member
Registered: 2024-10-14

Re: No default Email - SMTP server datasink configured

Thank you so much! it worked

Offline

Board footer

Powered by FluxBB