IBM Support

IO21162: JAVA POS PIPE READ HANG

 

APAR status

  • Closed as program error.

Error description

  • A CBASIC program create a POS pipe, and a Java program uses the
    POSFile.read() method to read from the pipe.  If the CBASIC
    program is terminated, the POSFile.read() method hang
    indefinitely
    

Local fix

Problem summary

  •  When using the POSFile class for a POS pipe, it
    was not possible to break out of a POSFile.read(), if the write
    end of the pipe was closed.  It was also not possible to avoid
    the POSFile.read(), if it was going to block.
    

Problem conclusion

  •  The POSFile.length() method was modified to
    behave differently.  When the POSFile refers to a POS pipe, the
    POSFile.length() method returns the number of bytes available
    for a read.  To avoid blocking reads, the Java porgram can first
    verify that the POSFile.length() returns a positive number.
    
    PSEUDOCODE:
       while (READING) {
         if (POSFile.length() < 1) {
           SLEEP a short time
         }
       X = POSFile.read()
       }
    

Temporary fix

Comments

APAR Information

  • APAR number

    IO21162

  • Reported component name

    IBM 4690 OS V6

  • Reported component ID

    5639P7000

  • Reported release

    201

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-05-05

  • Closed date

    2014-05-05

  • Last modified date

    2014-05-05

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

    IO19361

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

Fix information

  • Fixed component name

    IBM 4690 OS V6

  • Fixed component ID

    5639P7000

Applicable component levels

  • R201 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SOULYT","label":"Point of Sale Software->4690 Operating System"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"201","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
05 May 2014