IBM Support

PK43702: CONTROL KEYS WERE NOT WORKING PROPERLY.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: CTRL-T and CTRL-Space were not working properly.
    When we use the CTRL-T to activate a hyperlink its not
    activating and sometimes an exception is thrown.
    Stack Trace: java.lang.NullPointerException
    	at
    javax.swing.text.html.HTMLEditorKit$ActivateLinkAction.actionPer
    formed(HTMLEditorKit.java:2191)
    	at
    javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1561
    )
    	at
    javax.swing.JComponent.processKeyBinding(JComponent.java:2497)
    	at
    javax.swing.JComponent.processKeyBindings(JComponent.java:2532)
    	at javax.swing.JComponent.processKeyEvent(JComponent.java:2460)
    	at java.awt.Component.processEvent(Component.java:5005)
    	at java.awt.Container.processEvent(Container.java:1607)
    	at java.awt.Component.dispatchEventImpl(Component.java:3712)
    	at java.awt.Container.dispatchEventImpl(Container.java:1665)
    	at java.awt.Component.dispatchEvent(Component.java:3574)
    	at
    java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManag
    er.java:1742)
    	at
    java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKey
    boardFocusManager.java:686)
    	at
    java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Default
    KeyboardFocusManager.java:897)
    	at
    java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Default
    KeyboardFocusManager.java:800)
    	at
    java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboa
    rdFocusManager.java:649)
    	at java.awt.Component.dispatchEventImpl(Component.java:3604)
    	at java.awt.Container.dispatchEventImpl(Container.java:1665)
    	at java.awt.Window.dispatchEventImpl(Window.java:1653)
    	at java.awt.Component.dispatchEvent(Component.java:3574)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:536)
    	at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispa
    tchThread.java:237)
    	at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatc
    hThread.java:187)
    	at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java
    :181)
    	at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java
    :173)
    	at
    java.awt.EventDispatchThread.run(EventDispatchThread.java:136)
    .
    

Local fix

Problem summary

  • Actually the problem was with control keys. The Control keys
    i.e. CTRL-T and
    CTRL-Space were not working properly. When we use the CTRL-T to
    activate a hyperlink its not
    activating and Sometimes an exception is thrown.
    Clicking the link with the mouse, however, activates the link as
    expected.
    According to customer while pressin CTRL-T once, it should
    navigate to the first visible
    hyperlink.Instead of that when the customer is pressing CTRL-T
    first time it results with
    no effect,on a page that specifies a stylesheet. Pressing Ctrl-T
    again navigates to the
    first visible hyperlink.
    When Ctrl-T is pressed for the first time on a page without a
    stylesheet, focus is
    transferred to the first visible hyperlink, as expected.
    

Problem conclusion

  • This defect will be fixed in:
    1.4.2 SR9
    .
    As the problem was with the navigation of hyperlinks and
    activating the
    hyperlinks, we looked into the two files(JEditorPane.java,
    HTMLEditorKit.java) which are
    responsible for these problems. In JEditorPnae.java we found
    that there are no instructions
    to change the caret position after scrolling to the anchor. And
    in HTMLEditorKit.java we found
    that because of one previous defect(100856)the control is not
    coming to the first visible link
    in the case of using stylesheet and also because of that defect
    its not activating that link also.
    So,regarding setting of caret position we have done some code
    changes. And removed the previous
    defect(100856) and added a condition which will be executed only
    when a stylesheet is used. Actually
    in the case of stylesheet whenever we press CTRL-T , the control
    goes to an invisible link and after
    that control will go to the first visible link on the page. So,
    with the help of Element Iterator we
    skip that invisible link by going to the next element on that
    page.
    .
    To obtain the fix:
    Install build 20070907 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK43702

  • 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 / Xsystem

  • Submitted date

    2007-04-23

  • Closed date

    2007-09-27

  • Last modified date

    2007-09-27

  • 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(1.3/1.4 CO

  • Fixed component ID

    5648C9800

Applicable component levels

  • R42A PSN

       UP

  • R42L PSN

       UP

  • R42W PSN

       UP

  • R420 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.4.2","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022