A fix is available
APAR status
Closed as program error.
Error description
When using the wladm Ant task or wladm program to deploy an application (.wlapp) or .adapter file larger than 2 MB , the following exception occurs: com.ibm.worklight.admin.restclient.RESTException: Error accessing http://XXX.XX.XX.XXX:XXXX/worklightadmin/management-apis/1.0/run times/YYYYY/applications?locale=ll_CC: Software caused connection abort: socket write error or com.ibm.worklight.admin.restclient.RESTException: Error accessing http://XXX.XX.XX.XXX:XXXX/worklightadmin/management-apis/1.0/run times/YYYYY/applications?locale=ll_CC: Connection reset
Local fix
Change all <Connector> declarations, in Tomcat's conf/server.xml, by adding an attribute maxSwallowSize="100000000" (or whatever upper limit on the apps and adapters size you can impose). Or use the Worklight Console UI to deploy the application or adapter. Or use the curl program to deploy the application or adapter.
Problem summary
**************************************************************** * USERS AFFECTED: * * Administrators of Worklight Server 6.2.0.x, deployed in a * * Tomcat server of version 7.0.55 or newer, who use wladm to * * deploy apps or adapters. * **************************************************************** * PROBLEM DESCRIPTION: * * Deploying an app or adapter fails with the error message * * "Software caused connection abort: socket write error" or * * "Connection reset". * **************************************************************** * RECOMMENDATION: * * - * ****************************************************************
Problem conclusion
wladm makes a POST request without credentials, and then a POST request with credentials. It is expected that the first request fails with HTTP status code 401. Tomcat 7.0.55 does not like to receive payloads > 2 MB in failing requests; it closes the connection when this happens. In Worklight 6.2.0.2, wladm will make the first POST request without a payload, and add the payload only in the request that carries the credentials.
Temporary fix
Comments
APAR Information
APAR number
PI27757
Reported component name
WORKLIGHT CONSU
Reported component ID
5725I4301
Reported release
620
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2014-10-15
Closed date
2015-03-10
Last modified date
2015-03-10
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
WORKLIGHT CONSU
Fixed component ID
5725I4301
Applicable component levels
R620 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"620","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
17 October 2021