IBM Support

OA55333: EDC5113I BAD FILE DESCRIPTOR OR JAVA.NIO.CHANNELS.CLOSEDCHANNEL EXCEPTION IS SEEN WITH THE LATEST LEVELS OF JAVA 7 AND 8.

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • After migrating to Java 7 SR10.FP15, the following messages may
    be seen:
    CSD0050I Command processing ended abnormally:
     EDC5113I Bad file descriptor.
    
    
    After migrating to Java 8 SR5.FP10, the following messages may
    be seen:
    CSD0050I Command processing ended abnormally:
    .CSD0065I No error message available.
    .Exception: java.nio.channels.ClosedChannelException
    
    Additional Keywords:
    Java7 SR10 FP15
    Java8 SR5 FP10
    

Local fix

  • Add the following in a shell script:
    -Dcom.ibm.streams.CloseFDWithStream=false
    For example:
    
    java                                \
    -jar /etc/encryptionfacility/CSDEncryptionFacility.jar \
    -Dcom.ibm.streams.CloseFDWithStream=false \
    -homedir /etc/encryptionfacility    \
    -keystore /home/user.keystore.JCEKS \
    -keystore-type JCEKS                \
    -key-size 2048                      \
    -keystore-password password         \
    -key-password password              \
    -g
    
    or
    Add the following in the Java environment script that configures
    any environment variables for the Java JVM:
    >>>
    Add this line:
    JAVA_OPT="-Dcom.ibm.streams.CloseFDWithStream=false"
    just above the export IBM_JAVA_OPTIONS="$IJO
    -Dibm.DES.usehdwr.size=0"
    
    and then change the 'export IBM_JAVA_OPTIONS=' to this:
    export IBM_JAVA_OPTIONS="$IJO $JAVA_OPT
    -Dibm.DES.usehdwr.size=0"
    <<<
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Encryption Facility Users working with JCEKS *
    *                 keystores on Java 7 SR10.FP15 or later and   *
    *                 Java 8 SR5.FP10 or later.                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: Users working with JCEKS keystores can  *
    *                      receive an IOException for a Bad File   *
    *                      Descriptor on Java 7 or a               *
    *                      ClosedChannelException on Java 8 during *
    *                      Encryption Facility's cleanup process.  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Problem Summary:
    ----------------
    After processing completes, Encryption Facility attempts to
    close any keystore files that were opened. On certain versions
    of Java 7 and Java 8, the following exceptions will be thrown.
    
    For Java 7 SR10.FP15 or later
    CSD0050I Command processing ended abnormally:
     EDC5113I Bad file descriptor.
    
    For Java 8 SR5.FP10 or later:
    CSD0050I Command processing ended abnormally:
     CSD0065I No error message available.
     Exception: java.nio.channels.ClosedChannelException
    

Problem conclusion

  • This APAR changes cleanup processing to avoid trying to close
    keystores that have already been closed. This will ensure that
    processing can complete without exceptions during cleanup.
    
    A trace message included in this APAR will also be documented
    in the next refresh, if there is one, of the IBM Encryption
    Facility for z/OS: Using Encryption Facility for OpenPGP
    SA23-2230.
    
    Chapter 5. Encryption Facility for OpenPGP messages
    
    --------------------
    CSD1427I Expected exception caught: ExceptionType. Processing
    will continue.
    
    In the message text:
        ExceptionType: Type of exception caught
    
    Explanation: The listed exception caught during processing was
    expected and processing does not need to be interrupted. This
    message will only appear in trace files when debug options are
    specified in the command.
    System action: Logs expected event in trace file and continues
    processing.
    

Temporary fix

Comments

APAR Information

  • APAR number

    OA55333

  • Reported component name

    ENCRYPTION FACI

  • Reported component ID

    5752XXFIL

  • Reported release

    740

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    YesSpecatt / Pervasive / Xsystem

  • Submitted date

    2018-04-13

  • Closed date

    2018-05-17

  • Last modified date

    2018-06-04

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    UA96277

Modules/Macros

  • CSDENCRY
    

Fix information

  • Fixed component name

    ENCRYPTION FACI

  • Fixed component ID

    5752XXFIL

Applicable component levels

  • R740 PSY UA96277

       UP18/05/18 P F805

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":null,"label":null},"Product":{"code":"SG19O","label":"APARs - MVS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"740","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
04 June 2018