After entering SMTP values (host, port, etc), selecting the 'Test' button, results in the below error being displayed:
java.rmi.RemoteException: example.rmi.hostIP:RMIRegistryPort:sendEmail; nested exception is:
java.lang.NullPointerException
at com.appworx.client.screen.util.ClientSocketManager.sendRequest1(ClientSocketManager.java:310)
at com.appworx.shared.iface.IRmiServer_Stub.sendEmail(IRmiServer_Stub.java:1214)
at com.appworx.client.screen.agentmgr.B$1.actionPerformed(EmailPanel.java:182)
...
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.NullPointerException
at com.appworx.shared.code.email.Email.A(Email.java:365)
at com.appworx.server.data.AxRmiServer.sendEmail(AxRmiServer.java:3455)
...
at com.uc4.be.threading.AbstractWorker.run(AbstractWorker.java:367)
at java.lang.Thread.run(Thread.java:750)
Applications Manager all versions
A more detailed error can be found in the $AW_HOME/log/RmiServer<timestamp>.log covering time of issue.
It is best to enable RmiServer debug, reproduce the issue by selecting the Test button, and then reviewing the latest RmiServer<timestamp>.log for the latest "AwE-" error.
The most common error message found in the RmiServer log is:
ErrorMsg: AwE-5123 Email error
Details: {mail.smtp.port=25, mail.smtp.writetimeout=180000, mail.smtp.host=example.smtp.hostIP, mail.smtp.timeout=180000, mail.smtp.connectiontimeout=30000, [email protected]}
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: example.smtp.hostIP, 25; timeout 30000;
nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2210)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:722)
at jakarta.mail.Service.connect(Service.java:342)
at jakarta.mail.Service.connect(Service.java:222)
at jakarta.mail.Service.connect(Service.java:171)
at jakarta.mail.Transport.send0(Transport.java:230)
at jakarta.mail.Transport.send(Transport.java:100)
at com.appworx.shared.code.email.Email.A(Email.java:355)
at com.appworx.server.data.AxRmiServer.sendEmail(AxRmiServer.java:3455)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.uc4.be.util.InvokeUtil.invoke(InvokeUtil.java:122)
at com.appworx.util.InvokeRequest.invokeMethod(InvokeRequest.java:47)
at com.appworx.server.data.B.A(ClientServices.java:150)
at com.appworx.server.data.B.A(ClientServices.java:132)
at com.appworx.server.data.D$_A.doRun(RemoteClientSocketManager.java:174)
at com.uc4.be.threading.AbstractWorker.run(AbstractWorker.java:367)
at java.lang.Thread.run(Thread.java:750)
If the above error is seen:
1. The SMTP host/IP and/or Port values are incorrect
or
2. If values are correct, a network/firewall issue maybe present.
Lastly, if a different error is found that can not be resolved, open a case with Broadcom Support, and provide issue information as well as RmiServer log containing the error.