Fixes are available
Rational Host Access Transformation Services, Version 7.1.0.4
Rational Host Access Transformation Services, Version 7.1.0.5
Rational Host Access Transformation Services, Version 7.1.0.6
Rational Host Access Transformation Services, Version 7.5.0.2
Rational Host Access Transformation Services, Version 7.5.1.1
Rational Host Access Transformation Services, Version 7.5.1.2
Rational Host Access Transformation Services, version 7.5.1.3
Rational Host Access Transformation Services Fix Pack 4 (7.5.1.4) for 7.5.1
Rational Host Access Transformation Services Fix Pack 5 (7.5.1.5) for 7.5.1
Rational Host Access Transformation Services Fix Pack 6 (7.5.1.6) for 7.5.1
APAR status
Closed as program error.
Error description
When trying to retrieve the contents of a HATS global variable using the getGlobalVariable function, with the bidiImplicit parameter, you can receive an java.lang.IndexOutOfBoundsException if the global variable does not exist. This problem happens when the code attempts to retrieve the contents of the GV at a specific index. For example: <%= ((TransformInfo)request.getAttribute(CommonConstants. REQ_TRANSFORMINFO)).getGlobalVariable("testGV", true,true). getString(0) %>
Local fix
The workaround is to make sure the global variable has been created before trying to retrieve a specific index of the global variable.
Problem summary
**************************************************************** * USERS AFFECTED: Developers using the getGlobalVariable * * method with the bidiImplicit parameter. * **************************************************************** * PROBLEM DESCRIPTION: Using the getGlobalVariable method * * with the bidiImplicit parameter fails * * with a * * java.lang.IndexOutOfBoundsException * * if the global variable was not * * created prior to retrieving it. * **************************************************************** * RECOMMENDATION: * **************************************************************** When using the getGlobalVariable(String name, boolean createIfNotExist, boolean bidiImplicit) method, if the GV did not exist prior to this call the GV was created with an initial value of null. When the variable was accessed by index it would cause a java.lang.IndexOutOfBoundsException.
Problem conclusion
The getGlobalVariable(String name, boolean createIfNotExist, boolean bidiImplicit) method in BaseInfo was changed to set the initial value of the newly created GV to an empty string, "", instead of null.
Temporary fix
Comments
APAR Information
APAR number
IC61445
Reported component name
RATL HATS FOR 5
Reported component ID
5724U6800
Reported release
710
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-06-10
Closed date
2009-06-24
Last modified date
2009-09-04
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
HATSCOMM
Fix information
Fixed component name
RATL HATS FOR 5
Fixed component ID
5724U6800
Applicable component levels
R710 PSY
UP
R750 PSY
UP
Document Information
Modified date:
04 September 2009