PK92076: INCORRECT PRINTER STATUS ON JAPANESE LOCALE AND INCORRECT QUEUED JOB COUNT FOR UNIX SYSTEMS.

Subscribe

You can track all active APARs for this component.

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

    PK92076

  • Reported component name

    JAVA(1.3/1.4 CO

  • Reported component ID

    5648C9800

  • Reported release

    42A

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-07-22

  • 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:

    IZ59010

Fix information

  • Fixed component name

    JAVA(1.3/1.4 CO

  • Fixed component ID

    5648C9800

Applicable component levels

  • R42A PSN

       UP

  • R42L PSN

       UP

  • R42W PSN

       UP

  • R420 PSN

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

z/OS family

Software version:

1.4.2

Reference #:

PK92076

Modified date:

2009-08-24

Translate my page

Machine Translation

Content navigation