APAR status
Closed as program error.
Error description
Error Message: java.lang.OutOfMemoryError . Stack Trace: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.io.Reader.read(Reader.java:82) at java.util.Scanner.readMore(Scanner.java:2240) at java.util.Scanner.hasNextLine(Scanner.java:818) at TestScanner.main(TestScanner.java:17) .
Local fix
Problem summary
The Scanner Class's hasNextLine and nextLine methods do not save the Scanner's last find position, due to which the Scanner's buffer size is doubled every iteration. This causes the application to throw an Out Of Memory Error once the buffer size exceeds the heap size.
Problem conclusion
This APAR will be fixed in the following Java Releases: 6 SR16 (6.0.16.0) 6 R1 SR8 (6.1.8.0) . The Scanner Class's hasNextLine and nextLine methods is updated to save the matcher's last find position.
Temporary fix
Comments
APAR Information
APAR number
IV55760
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
2014-02-21
Closed date
2014-04-11
Last modified date
2014-04-29
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
[{"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:
29 April 2014