IBM Support

IV44166: FILECHANNEL.TRANSFERTO() OR FILECHANNEL.TRANSFERFROM() FAILS WIT H IOEXCEPTION ON AIX PLATFORM

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: N/A
    .
    Stack Trace: Caused by: java.io.IOException: Invalid argument
    
    at sun.nio.ch.FileChannelImpl.map0(Native Method)
    at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:746)
    at
    sun.nio.ch.FileChannelImpl.transferToTrustedChannel(FileChannelI
    mpl.java:440)
    at
    sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:513)
    .
    

Local fix

Problem summary

  • When a file, which is on a CIFS (Common Internet File System)
    mount on AIX system, is transferred to another file using
    FileChannel.transferTo() or FileChannelImpl.transferFrom()
    functions, they fail with 'Invalid argument'. These functions
    used the memory mapping for transferring the file and AIX has a
    documented limitation while doing mmap() on CIFS mounted files.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR15
    6.0.1 SR7
    7.0.0 SR6
    .
     The JDK has been updated to fall back to the sequential file
    transfer by reading the source file and writing to the
    destination file sequentially when mmap() fails
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV44166

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-06-12

  • Closed date

    2013-08-12

  • Last modified date

    2013-08-12

  • 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

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVQ3Y","label":"Java Class Libraries"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
12 August 2013