AppWorks Gateway - Unable to send emails/notifications

Hi All,

Has anyone seen this error log from TomCat Catalina when AppWorks try to send an email?

Ultimately would like to resolve this for the share notifications, rather than getting users to check the web client. All other functionality at this time works.

May 18, 2015 10:00:01 PM com.sun.jersey.spi.container.servlet.WebComponent filterFormParameters
WARNING: A servlet request, to the URI http://SERVERNAME:8080/gateway/v1/mail, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.

Comments

  • I got into the same issue. You need to ensure that you app uses properly x-www-form-urlencoded.

    For AngularJS, which was my case, I used the following solution:
    http://stackoverflow.com/a/25570077/2362887
    I got email notifications working fine after that.

  • Hi Marcin, I am seeing this is standard OpenText ECM Everywhere / Tempo not a custom app.

  • Hi Matt,

    If you are debugging the mail sending functionality in Tempo Box i would take a look in the otsync log created by the module in Content Server as it initiates the mail request for Tempo Box

    When a mail request is sent you should see a POST request to the mail endpoint in AWG

    For Example

    12:10:08,090 [pool-2-thread-1] DEBUG org.apache.http.headers  - >> POST /gateway/v1/mail HTTP/1.1
    12:10:08,090 [pool-2-thread-1] DEBUG org.apache.http.headers  - >> Content-Length: 1604
    12:10:08,090 [pool-2-thread-1] DEBUG org.apache.http.headers  - >> Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    

    That log will also show events related to Tempo Box notifications as well

    Hope it helps

    Simon