APAR status
Closed as program error.
Error description
Error Message: Error message for incorrect printer status: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 For network printers QueuedJobCount is always returned as 0. . Stack Trace: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1880) at sun.print.UnixPrintService.getQueuedJobCountBSD(UnixPrintService .java:377) at sun.print.UnixPrintService.getQueuedJobCount(UnixPrintService.ja va:394) at sun.print.UnixPrintService.getAttribute(UnixPrintService.java:53 7) at PrintServiceTest.main(PrintServiceTest.java:20) .
Local fix
Problem summary
For Wrong Status: On Unix systems the printer status is gathered by running /usr/sbin/lpc status command. The output of this command is parsed and according to the results the status is returned. With C locale the result is parsed correctly but in case of Japanese locale the result obtained from running lpc status command is in Japanese and there parsing fails and it fails to return the correct status. For incorrect QueuedJobCount: This was returned wrongly because wrong line from lpc command was being parsed.
Problem conclusion
This defect will be fixed in: 1.4.2 SR13-2 5.0.0 SR11 . The JVM has been updated to prevent wrong parsing of lpc command. . To obtain the fix: Install build 20090822 or later
Temporary fix
Comments
APAR Information
APAR number
IZ59010
Reported component name
JAVA 5 CLASS LI
Reported component ID
620500130
Reported release
500
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-08-24
Closed date
2009-08-24
Last modified date
2009-08-24
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 5 CLASS LI
Fixed component ID
620500130
Applicable component levels
R500 PSN
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":"5.0","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
24 August 2009