From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Trying to build latest Icedtea / Java 6 [security update] Date: Thu, 16 Jun 2016 04:02:12 +0200 Message-ID: <20160616040212.339f3e6f@scratchpost.org> References: <20160530045937.GA32652@jasmine> <87pos2ca7z.fsf@elephly.net> <20160531225234.GA19511@jasmine> <87oa7lcuh2.fsf@elephly.net> <20160601062954.GA14412@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDMdV-0007b5-Ro for guix-devel@gnu.org; Wed, 15 Jun 2016 22:02:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDMdR-0007F8-Lp for guix-devel@gnu.org; Wed, 15 Jun 2016 22:02:24 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:54889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDMdR-0007El-BE for guix-devel@gnu.org; Wed, 15 Jun 2016 22:02:21 -0400 In-Reply-To: <20160601062954.GA14412@jasmine> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Famulari Cc: guix-devel@gnu.org On Wed, 1 Jun 2016 02:29:54 -0400 Leo Famulari wrote: > On Wed, Jun 01, 2016 at 08:07:53AM +0200, Ricardo Wurmus wrote: > > http://icedtea.classpath.org/hg/icedtea6/rev/60be25a84f2d > > > > we should apply this change to the 1.13.11 sources. > > Tested successfully, and applied as 1c6303fae. Not sure when exactly Java broke (I'm not using it much) but it worked before and now I get (when using a GUI program): Exception in thread "main" java.lang.NullPointerException at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264) at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219) at sun.awt.FontConfiguration.init(FontConfiguration.java:107) at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774) at sun.font.SunFontManager$2.run(SunFontManager.java:431) at java.security.AccessController.doPrivileged(Native Method) at sun.font.SunFontManager.(SunFontManager.java:376) at sun.awt.FcFontManager.(FcFontManager.java:35) at sun.awt.X11FontManager.(X11FontManager.java:57) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83) at java.security.AccessController.doPrivileged(Native Method) at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74) at sun.font.SunFontManager.getInstance(SunFontManager.java:250) at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264) at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1107) at javax.swing.JComponent.getFontMetrics(JComponent.java:1617) at javax.swing.plaf.basic.BasicGraphicsUtils.getPreferredButtonSize(BasicGraphicsUtils.java:276) at javax.swing.plaf.basic.BasicButtonUI.getPreferredSize(BasicButtonUI.java:376) at javax.swing.plaf.basic.BasicButtonUI.getMinimumSize(BasicButtonUI.java:366) at javax.swing.JComponent.getMinimumSize(JComponent.java:1735) at javax.swing.BoxLayout.checkRequests(BoxLayout.java:483) at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:301) at java.awt.Container.preferredSize(Container.java:1796) at java.awt.Container.getPreferredSize(Container.java:1780) at javax.swing.JComponent.getPreferredSize(JComponent.java:1655) at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:729) at java.awt.Container.preferredSize(Container.java:1796) at java.awt.Container.getPreferredSize(Container.java:1780) at javax.swing.JComponent.getPreferredSize(JComponent.java:1655) ... Does using a Java GUI "fat client" application work for you? $ java -version openjdk version "1.8.0_91" OpenJDK Runtime Environment (IcedTea 3.0.1) (linux-gnu build 1.8.0_91-b14) OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode) Note that I didn't install icedtea:jdk . I've since installed it into my user profile - no change. Minimal example to reproduce: import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.WindowConstants; public class A { public static void main(String[] args) { JFrame f = new JFrame(); JLabel l = new JLabel("Hello"); f.add(l); // comment me f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); //f.pack(); f.setVisible(true); } } (breaks as soon as the label is in the frame)