#16 The application doesn't work on 1.7.0-b222 OpenJDK, MacOS

pending
nobody
None
5
2014-08-16
2012-04-03
Anonymous
No

java -jar portecle.jar
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:357)
at sun.lwawt.macosx.CImage$Creator.createFromImage(CImage.java:101)
at sun.lwawt.macosx.CPlatformWindow.getImageForTarget(CPlatformWindow.java:734)
at sun.lwawt.macosx.CPlatformWindow.updateIconImages(CPlatformWindow.java:541)
at sun.lwawt.LWWindowPeer.updateIconImages(LWWindowPeer.java:438)
at java.awt.Window.setIconImages(Window.java:705)
at java.awt.Window.setIconImage(Window.java:743)
at java.awt.Frame.setIconImage(Frame.java:553)
at javax.swing.JFrame.setIconImage(JFrame.java:656)
at net.sf.portecle.FPortecle.initComponents(FPortecle.java:402)
at net.sf.portecle.FPortecle.<init>(FPortecle.java:349)
at net.sf.portecle.FPortecle$CreateAndShowGui.run(FPortecle.java:6731)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:240)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:142)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:134)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

fajtl:~ dagi$ java -version
openjdk version "1.7.0-b222"
OpenJDK Runtime Environment (build 1.7.0-b222-20111220)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)

Discussion

  • Ville Skyttä
    Ville Skyttä
    2012-04-23

    The stack trace indicates problems occurring when we try to set the icon image for the app (images/portecle.gif). It works fine for me with Fedora 17's OpenJDK 1.7.0_b147-icedtea - unfortunately I have nothing to debug this further so I'm afraid someone else will have to chime in here.

     
  • Ville Skyttä
    Ville Skyttä
    2012-04-23

    • status: open --> pending