IBM Support

IV40570: USING NON-STRING ARGUMENTS IN UIMANAGER.PUT() RESULT IN NULLPOINTEREXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: Exception in thread "AWT-EventQueue-0"
    
    java.lang.NullPointerException
            at
    sun.swing.plaf.synth.SynthFileChooserUIImpl.installStrings(Synth
    FileChooserUIImpl.java:484)
    .
    Stack Trace: Exception in thread "AWT-EventQueue-0"
    java.lang.NullPointerException
            at
    sun.swing.plaf.synth.SynthFileChooserUIImpl.installStrings(Synth
    FileChooserUIImpl.java:484)
            at
    javax.swing.plaf.basic.BasicFileChooserUI.installDefaults(BasicF
    ileChooserUI.java:229)
            at
    sun.swing.plaf.synth.SynthFileChooserUI.installDefaults(SynthFil
    eChooserUI.java:191)
            at
    javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileCho
    oserUI.java:144)
            at
    sun.swing.plaf.synth.SynthFileChooserUI.installUI(SynthFileChoos
    erUI.java:134)
            at javax.swing.JComponent.setUI(JComponent.java:673)
            at
    javax.swing.JFileChooser.updateUI(JFileChooser.java:1774)
            at javax.swing.JFileChooser.setup(JFileChooser.java:371)
            at
    javax.swing.JFileChooser.<init>(JFileChooser.java:344)
            at
    javax.swing.JFileChooser.<init>(JFileChooser.java:297)
            at HFileDialog.<init>(FileChooserDemo.java:133)
            at
    FileChooserDemo.actionPerformed(FileChooserDemo.java:69)
            at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.ja
    va:2006)
            at
    javax.swing.AbstractButton$Handler.actionPerformed(AbstractButto
    n.java:2329)
            at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButton
    Model.java:398)
            at
    javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.jav
    a:253)
            at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicBu
    ttonListener.java:247)
            at
    java.awt.Component.processMouseEvent(Component.java:6299)
            at
    javax.swing.JComponent.processMouseEvent(JComponent.java:3278)
            at java.awt.Component.processEvent(Component.java:6064)
            at java.awt.Container.processEvent(Container.java:2052)
            at
    java.awt.Component.dispatchEventImpl(Component.java:4662)
            at
    java.awt.Container.dispatchEventImpl(Container.java:2110)
            at java.awt.Component.dispatchEvent(Component.java:4492)
            at
    java.awt.LightweightDispatcher.retargetMouseEvent(Container.java
    :4588)
            at
    java.awt.LightweightDispatcher.processMouseEvent(Container.java:
    4249)
            at
    java.awt.LightweightDispatcher.dispatchEvent(Container.java:4179
    )
            at
    java.awt.Container.dispatchEventImpl(Container.java:2096)
            at java.awt.Window.dispatchEventImpl(Window.java:2490)
            at java.awt.Component.dispatchEvent(Component.java:4492)
            at
    java.awt.EventQueue.dispatchEventImpl(EventQueue.java:654)
            at java.awt.EventQueue.access$000(EventQueue.java:95)
            at java.awt.EventQueue$1.run(EventQueue.java:613)
            at java.awt.EventQueue$1.run(EventQueue.java:611)
            at
    java.security.AccessController.doPrivileged(AccessController.jav
    a:224)
            at
    com.ibm.oti.security.CheckedAccessControlContext.securityCheck(C
    heckedAccessControlContex
    t.java:30)
            at
    com.ibm.oti.security.CheckedAccessControlContext.securityCheck(C
    heckedAccessControlContex
    t.java:34)
            at
    sun.misc.JavaSecurityAccessWrapper.doIntersectionPrivilege(JavaS
    ecurityAccessWrapper.java
    :46)
            at java.awt.EventQueue$2.run(EventQueue.java:627)
            at java.awt.EventQueue$2.run(EventQueue.java:625)
            at
    java.security.AccessController.doPrivileged(AccessController.jav
    a:224)
            at
    com.ibm.oti.security.CheckedAccessControlContext.securityCheck(C
    heckedAccessControlContex
    t.java:30)
            at
    sun.misc.JavaSecurityAccessWrapper.doIntersectionPrivilege(JavaS
    ecurityAccessWrapper.java
    :41)
            at
    java.awt.EventQueue.dispatchEvent(EventQueue.java:624)
            at
    java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatc
    hThread.java:280)
            at
    java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchTh
    read.java:195)
            at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatc
    hThread.java:185)
            at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java
    :180)
            at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java
    :172)
            at
    java.awt.EventDispatchThread.run(EventDispatchThread.java:133)
    .
    N/A
    
    This is a Regression on Java 6 after applying Java 6 SR5
    

Local fix

  • N/A
    

Problem summary

  • Problem occurred when non-string objects are used as values for
    the following keys in UIManager.put(Object key, Object value)
    API.
    lookInLabelMnemonic,
    fileNameLabelMnemonic,
    filesOfTypeLabelMnemonic and
    folderNameLabelMnemonic
    

Problem conclusion

  • This defect will be fixed in:
    7.0.0 SR5
    6.0.1 SR6
    6.0.0 SR14
    .
    JVM has been  updated to handle non-string values by
    UIManager.put().
    

Temporary fix

  • N/A
    

Comments

APAR Information

  • APAR number

    IV40570

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-04-24

  • Closed date

    2013-05-12

  • Last modified date

    2013-07-10

  • 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

  • R700 PSY

       UP

  • R600 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
21 February 2022