java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0

Coderanch | Ravi Sathish | 1 decade ago
  1. 0

    IllegalArgumentException: Width (0) and height (0); Java 1.5 problem

    Coderanch | 1 decade ago | Ravi Sathish
    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
  2. 0

    When running Taverna 1.5.x it is not possible to edit a beanshell processor. When right clicking and selecting "Configure beanshell" nothing happens on screen, while the terminal shows a stack trace: {code} Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0 at java.awt.image.DirectColorModel.createCompatibleWritableRaster( at sun.awt.X11.XFramePeer.setIconImage( at sun.awt.X11.XFramePeer.postInit( at sun.awt.X11.XBaseWindow.init( at sun.awt.X11.XBaseWindow.<init>( at sun.awt.X11.XWindow.<init>( at sun.awt.X11.XComponentPeer.<init>( at sun.awt.X11.XCanvasPeer.<init>( at sun.awt.X11.XPanelPeer.<init>( at sun.awt.X11.XWindowPeer.<init>( at sun.awt.X11.XDecoratedPeer.<init>( at sun.awt.X11.XFramePeer.<init>( at sun.awt.X11.XToolkit.createFrame( at java.awt.Frame.addNotify( at at at java.awt.Component.setVisible( at org.embl.ebi.escience.scuflui.shared.UIUtils$1.createFrame( at org.embl.ebi.escience.scuflui.shared.UIUtils.createFrame( at org.embl.ebi.escience.scuflworkers.beanshell.BeanshellEditor$1.actionPerformed( at javax.swing.AbstractButton.fireActionPerformed( at javax.swing.AbstractButton$Handler.actionPerformed( at javax.swing.DefaultButtonModel.fireActionPerformed( at javax.swing.DefaultButtonModel.setPressed( at javax.swing.AbstractButton.doClick( at javax.swing.plaf.basic.BasicMenuItemUI.doClick( at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased( at java.awt.Component.processMouseEvent( at javax.swing.JComponent.processMouseEvent( at java.awt.Component.processEvent( at java.awt.Container.processEvent( at java.awt.Component.dispatchEventImpl( at java.awt.Container.dispatchEventImpl( at java.awt.Component.dispatchEvent( at java.awt.LightweightDispatcher.retargetMouseEvent( at java.awt.LightweightDispatcher.processMouseEvent( at java.awt.LightweightDispatcher.dispatchEvent( at java.awt.Container.dispatchEventImpl( at java.awt.Window.dispatchEventImpl( at java.awt.Component.dispatchEvent( at java.awt.EventQueue.dispatchEvent( at java.awt.EventDispatchThread.pumpOneEventForHierarchy( at java.awt.EventDispatchThread.pumpEventsForHierarchy( at java.awt.EventDispatchThread.pumpEvents( at java.awt.EventDispatchThread.pumpEvents( at {code} This was reported by Luna De Ferrari to taverna-users at 2007-01-23 in thread "Exception in thread "AWT-EventQueue-0" when trying to edit a BeanShell processor": {quote} java version "1.5.0_10" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03) Java HotSpot(TM) Server VM (build 1.5.0_10-b03, mixed mode) And I use CygWin/X as X server to redirect the taverna gui on my windows laptop. My actions: 1. open taverna with the standard ./ 2. try to drag and drop a new beanshell from the local services to the advanced model explorer 3. it doesn't work (another problem I had not signalled, sorry) 4. so I try another way of adding it > right click on the beanshell icon in local services > add to model 5. it works, and the new beanshell appears in the processors folder of the advanced model explorer 6. at this point I right click on it > configure beanshell (to put some code in) 7. nothing happens, but on the shell I get the error: Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0 {quote} Reproduced using Cygwin/X11 and ssh -XY to a workstation running Ubuntu 6.10 and java 1.5.0_08. {code} stain@mirawin ~ $ X -version Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: Contact: stain@mirawin ~ $ ssh -XY rpc268 stain@rpc268's password: (..) : stain@rpc268 ~/download;cd taverna-1.5.0/ : stain@rpc268 ~/download/taverna-1.5.0;sh (..) {code} In addition, as reported, drag and drop don't work at all with this setup. Recommended workaround is to run Taverna locally in Windows to edit the workflow or edit Replace {code} ARGS="-Xmx300m" {code} with {code} ARGS="-Xmx300m -Dawt.toolkit=sun.awt.motif.MToolkit" {code}

    JIRA | 10 years ago | Stian Soiland-Reyes
    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
  3. 0

    Support | Java exception when launching Sonic Management Console using Cygwin | 11 months ago
    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    displayWidth and displayHeight not available in setup() in 2.0a6

    GitHub | 4 years ago | processing-bugs
    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be &lt;= 0

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Width (0) and height (0) cannot be <= 0

      at java.awt.image.DirectColorModel.createCompatibleWritableRaster()
    2. Java RT
      1. java.awt.image.DirectColorModel.createCompatibleWritableRaster(
      1 frame
    3. sun.awt.X11
      1. sun.awt.X11.XFramePeer.setIconImage(
      2. sun.awt.X11.XFramePeer.postInit(
      3. sun.awt.X11.XBaseWindow.init(
      3 frames