Article - CS421265

Mail Extension is not working in ThingWorx

Modified: 16-Jul-2024   


Applies To

  • ThingWorx Platform 9.4 F000 to 9.5 SP2

Description

  • When trying to send an email an error is received
2024-03-27 09:29:19.712+0000 [L: ERROR] [O: c.t.w.Things] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-80-exec-1] Thing [MailerThing] is not running
2024-03-27 09:29:19.712+0000 [L: WARN] [O: c.t.w.BaseService] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-80-exec-1] Transaction has been marked as a failure for request /Thingworx/Things/MailerThing/Services/SendMessage
  • When trying to save the configuration even if the Administrator user is used the user is getting disconnected
2024-05-27 12:51:51.203+0000 [L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-80-exec-7] Servlet execution threw an exception java.lang.Exception: Servlet execution threw an exception
	at com.thingworx.security.authentication.AuthenticationFilter.propagateRequest(AuthenticationFilter.java:755)
	at com.thingworx.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:245)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
  • Trying to send an Email using different browsers and directly from the server or from outside the organization network, different messages could also be seen
2024-06-10 14:30:28.372+0000 [L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-80-exec-3] Unable to Invoke Service SendMessage on MailThing : 'void com.thingworx.common.utils.HttpUtilities.validateDomainWithoutProtocol(java.lang.String)' java.lang.Exception: 'void com.thingworx.common.utils.HttpUtilities.validateDomainWithoutProtocol(java.lang.String)'
	at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:250)
	at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50)
	at com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:48)
	at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:8497)
	at com.thingworx.things.Thing.processAPIServiceRequest(Thing.java:8434)
	at com.thingworx.webservices.BaseService.handleInvoke(BaseService.java:3339)
	... 49 common frames omitted
Wrapped by: com.thingworx.common.exceptions.InvalidRequestException: Unable to Invoke Service SendMessage on MailThing : 'void com.thingworx.common.utils.HttpUtilities.validateDomainWithoutProtocol(java.lang.String)'
	at com.thingworx.webservices.BaseService.handleInvoke(BaseService.java:3396)
	at com.thingworx.webservices.BaseService.service(BaseService.java:478)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)

 
This is a printer-friendly version of Article 421265 and may be out of date. For the latest version click CS421265