java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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(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.<init>(XBaseWindow.java:150) at sun.awt.X11.XWindow.<init>(XWindow.java:86) at sun.awt.X11.XComponentPeer.<init>(XComponentPeer.java:101) at sun.awt.X11.XCanvasPeer.<init>(XCanvasPeer.java:22) at sun.awt.X11.XPanelPeer.<init>(XPanelPeer.java:27) at sun.awt.X11.XWindowPeer.<init>(XWindowPeer.java:53) at sun.awt.X11.XDecoratedPeer.<init>(XDecoratedPeer.java:36) at sun.awt.X11.XFramePeer.<init>(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 org.embl.ebi.escience.scuflui.shared.UIUtils$1.createFrame(UIUtils.java:58) at org.embl.ebi.escience.scuflui.shared.UIUtils.createFrame(UIUtils.java:90) at org.embl.ebi.escience.scuflworkers.beanshell.BeanshellEditor$1.actionPerformed(BeanshellEditor.java:29) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.AbstractButton.doClick(AbstractButton.java:302) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041) at java.awt.Component.processMouseEvent(Component.java:5488) at javax.swing.JComponent.processMouseEvent(JComponent.java:3126) at java.awt.Component.processEvent(Component.java:5253) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1778) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) {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 ./runme.sh 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: 6.8.99.901-4 Contact: cygwin-xfree@cygwin.com 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 runme.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 =runme.sh=: Replace {code} ARGS="-Xmx300m" {code} with {code} ARGS="-Xmx300m -Dawt.toolkit=sun.awt.motif.MToolkit" {code}
    via by Stian Soiland-Reyes,
  • Get list of english fonts only
    via Stack Overflow by Alex
    ,
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    7 more bugmates