On some Linux machines, when you run the Management Console the following Java? exception may occur: java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0.


Article ID: 52376


Updated On:


CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On




The Java stack trace for the error might contain the following exception details:
Exception in thread "main" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0

        at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
        at sun.awt.X11.XFramePeer.setIconImage(XFramePeer.java:217)
        at sun.awt.X11.XFramePeer.postInit(XFramePeer.java:75)
        at sun.awt.X11.XBaseWindow.init(XBaseWindow.java:117)
        at sun.awt.X11.XBaseWindow.(XBaseWindow.java:150)
        at sun.awt.X11.XWindow.(XWindow.java:82)
        at sun.awt.X11.XComponentPeer.(XComponentPeer.java:100)
        at sun.awt.X11.XCanvasPeer.(XCanvasPeer.java:22)
        at sun.awt.X11.XPanelPeer.(XPanelPeer.java:27)
        at sun.awt.X11.XWindowPeer.(XWindowPeer.java:53)
        at sun.awt.X11.XDecoratedPeer.(XDecoratedPeer.java:36)
        at sun.awt.X11.XFramePeer.(XFramePeer.java:41)
        at sun.awt.X11.XToolkit.createFrame(XToolkit.java:349)
        at java.awt.Frame.addNotify(Frame.java:491)
        at java.awt.Window.show(Window.java:513)
        at java.awt.Component.show(Component.java:1300)
        at java.awt.Component.setVisible(Component.java:1253)
        at com.netegrity.sm.smconsole.SmConsoleImpl.(SmConsoleImpl.java:61)
        at com.netegrity.sm.smconsole.SmConsoleImpl.main(SmConsoleImpl.java:47)
        at com.netegrity.sm.smconsole.SmConsole.main(SmConsole.java:19)

Cause: The Sun AWT (Abstract Window Toolkit) class


To resolve the java.lang.IllegalArgumentException exception on Linux, set the following environment variable before you run the Management Console:
export AWT_TOOLKIT=MToolkit
Suggest sure you implement the solution on the .profile for smuser.

Additional info on the problem:
Sun Microsystems, Inc. has re-implemented Sun AWT as documented in the "XToolkit on Solaris/Linux" tech note that is located on the following Web page:

The tech note starts with the following announcement about the new XToolkit implementation:
"Starting with release J2SETM 5.0, AWT has been re-implemented on the Solaris and Linux platforms." It explains the advantages of implementing the new Toolkit, and continues with the following statement about the default Toolkit version on Linux in J2SE 5.0:
"The new Toolkit (XToolkit) is the default on Linux in J2SE 5.0."


Component: SMPLC