Closed as program error.
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) .
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.
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
Reported component name
Reported component ID
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fixed component name
Fixed component ID
Applicable component levels