A fix is available
APAR status
Closed as program error.
Error description
The Ant e-mail function with WMQFTE on z/OS does not work. The SMTP server is contacted but the send of the e-mail does not occur because of a hang following the first contact. Eventually the SMTP server times out the connection.
Local fix
Problem summary
The hang is a result of two problems with Ant: 1) Writing newline characters to an output stream does not cause the stream to flush on z/OS. 2) The incorrect codepage is used to create MIME headers. EBCDIC is used instead of UTF-8. As a result, communication with the SMTP server hangs.
Problem conclusion
This APAR resolves the problem by supplying a patched version of Ant with WMQFTE that fixes the two issues: 1) The fix for this is to look at the end of any string being written. If it ends /n or /r/n, PrintStream.flush() is invoked manually. 2) Ensure that UTF-8 is used to encode String data when creating MIME headers. Apache Jira bug 51353 has been raised for this issue.
Temporary fix
Comments
APAR Information
APAR number
PM40776
Reported component name
WMQ FTE Z/OS
Reported component ID
5655U8000
Reported release
703
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2011-06-03
Closed date
2011-07-29
Last modified date
2011-07-29
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
WMQ FTE Z/OS
Fixed component ID
5655U8000
Applicable component levels
R703 PSY
UP
R704 PSY
UP
[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"WebSphere MQ"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0.2"}]
Document Information
Modified date:
27 October 2021