Customer might encounter "HTTP method DELETE doesn't support output" exception when using Invoke REST API to send "DELETE" request
book
Article ID: KB0082414
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for REST and JSON
2.0.0, 2.0.1, 2.1.0
Description
Some REST Servers' DELETE API require data in URI, Headers and body in the HTTP request with DELETE method. However when using REST JSON Plugin "Invoke REST API" activity to send HTTP request with DELETE method, some customer will encounter "HTTP method DELETE doesn't support output" exception if the DELETE HTTP request includes data in body.
Issue/Introduction
Customer might encounter "HTTP method DELETE doesn't support output" exception when using Invoke REST API to send "DELETE" request
Environment
Operation Systems: All
TRA: 5.9.0 and lower
JRE: 1.7.x
Resolution
This issue is due to JRE 1.7 defect, the "HttpURLConnection" method will explicitly denies access to the output stream if the requests method is DELETE. Please note that HTTPS request with DELETE method will not have the same issue.
JRE 1.8 has been fixed this defect, to resolve this issue we recommend our customer to upgrade to TRA 5.10 which comes with JRE 1.8.