Bug 225253 - [regression] java/openjdk7: can't run any GUI java application
Summary: [regression] java/openjdk7: can't run any GUI java application
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Greg Lewis
Keywords: regression
Depends on:
Reported: 2018-01-17 06:57 UTC by Dmitry Afanasiev
Modified: 2020-04-26 17:27 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (glewis)


Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Afanasiev 2018-01-17 06:57:33 UTC
Any GUI application fails to start using openjdk-7.151.01,1 with ArrayIndexOutOfBoundsException exception.

For example net/ldapbrowser fails with messages:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
        at sun.awt.IconInfo.<init>(IconInfo.java:84)
        at sun.awt.X11.XWindowPeer.getDefaultIconInfo(XWindowPeer.java:437)
        at sun.awt.X11.XWindowPeer.updateIconImages(XWindowPeer.java:334)
        at sun.awt.X11.XWindowPeer.postInit(XWindowPeer.java:284)
        at sun.awt.X11.XDecoratedPeer.postInit(XDecoratedPeer.java:97)
        at sun.awt.X11.XFramePeer.postInit(XFramePeer.java:86)
        at sun.awt.X11.XBaseWindow.init(XBaseWindow.java:187)
        at sun.awt.X11.XBaseWindow.<init>(XBaseWindow.java:263)
        at sun.awt.X11.XWindow.<init>(XWindow.java:133)
        at sun.awt.X11.XComponentPeer.<init>(XComponentPeer.java:116)
        at sun.awt.X11.XCanvasPeer.<init>(XCanvasPeer.java:42)
        at sun.awt.X11.XPanelPeer.<init>(XPanelPeer.java:46)
        at sun.awt.X11.XWindowPeer.<init>(XWindowPeer.java:124)
        at sun.awt.X11.XDecoratedPeer.<init>(XDecoratedPeer.java:57)
        at sun.awt.X11.XFramePeer.<init>(XFramePeer.java:54)
        at sun.awt.X11.XToolkit.createFrame(XToolkit.java:323)
        at java.awt.Frame.addNotify(Frame.java:477)
        at java.awt.Window.addNotify(Window.java:762)
        at java.awt.Window.show(Window.java:1031)
        at lbe.ui.BrowserApp.main(BrowserApp.java:220)

port built with X11 support:
# make showconfig
===> The following configuration options are available for openjdk-7.151.01,1:
     DEBUG=off: Enable extra debugging info
     POLICY=off: Install the Unlimited Strength Policy Files
     TZUPDATE=on: Update the time zone data
     X11=on: X11 (graphics) support

Problem reproducible on stable/10 and head.

openjdk-7.111.01_1,1 have no this problem.
Comment 1 Greg Lewis freebsd_committer 2020-04-26 17:27:24 UTC
I can run GUI applications with the latest openjdk7 (7u261).  That said, I very much recommend upgrading to a newer version of Java at this point.