IBM Support

PM30090: ARRAYINDEXOUTOFBOUNDSEXCEPTION WHEN WRITING TO A LOGSTREAM WITH AN EMPTY BYTE ARRAY AND SPECIFYING ZERO LENGTH.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When running WebSphere Application Server on zOS, you can use
    JZOS feature to read and write to a Logstream.
    
    Using JZOS API. an Application will encounter an
    'ArrayIndexOutOfBoundsException' when writing with an empty byte
    array and specifying zero length.
    
    The exception stack will look like below.
    
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    at java.lang.reflect.Method.invoke(Method.java:600)
    at command.CommandExecuter.execute(CommandExecuter.java:115)
    at command.CommandExecuter.main(CommandExecuter.java:66)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index
    out of range: 0
    at com.ibm.jzos.ZLogstreamI.write(ZLogstreamI.java:379)
    at com.ibm.jzos.ZLogstreamI.write(ZLogstreamI.java:340)
    at command.SyslogCommands.sys_blank(SyslogCommands.java:104)
    ... 6 more
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V7.0                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: ArrayIndexOutOfBoundsException in       *
    *                      ZLogstreamI.write when writing an       *
    *                      empty byte[] buffer.                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    ZLogstreamI.write suffers an ArrayIndexOutOfBoundsException
    when writing with an empty byte[] buffer and specifying a zero
    length.
    
    The ArrayIndexOutOfBoundsException also occurs under methods
    ZLogstreamI.read and ZLogstreamI.readMultiBlock.
    

Problem conclusion

  • The ArrayIndexOutOfBoundsException was corrected.  Any attempt
    to read or write while specifying a zero length returns
    immediately without performing any work.
    
    APAR PM30090 is currently targeted for inclusion in Service
    Level (Fix Pack) 7.0.0.17 of WebSphere Application Server V7.0.
    
    Please refer to URL:
    //www.ibm.com/support/docview.wss?rs=404&uid=swg27006970
    for Fix Pack availability.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM30090

  • Reported component name

    WEBSPHERE FOR Z

  • Reported component ID

    5655I3500

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-01-07

  • Closed date

    2011-02-09

  • Last modified date

    2011-06-02

  • 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

    WEBSPHERE FOR Z

  • Fixed component ID

    5655I3500

Applicable component levels

  • R700 PSY UK67335

       UP11/05/19 P F105

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.



Document information

More support for: WebSphere Application Server for z/OS
General

Software version: 7.0

Reference #: PM30090

Modified date: 02 June 2011