From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Trying to build latest Icedtea / Java 6 [security update] Date: Thu, 16 Jun 2016 08:55:40 +0200 Message-ID: <8760t9y64z.fsf@elephly.net> References: <20160530045937.GA32652@jasmine> <87pos2ca7z.fsf@elephly.net> <20160531225234.GA19511@jasmine> <87oa7lcuh2.fsf@elephly.net> <20160601062954.GA14412@jasmine> <20160616040212.339f3e6f@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDRDY-0008BH-J4 for guix-devel@gnu.org; Thu, 16 Jun 2016 02:55:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDRDU-0003Tb-C8 for guix-devel@gnu.org; Thu, 16 Jun 2016 02:55:55 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:24843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDRDU-0003Qh-41 for guix-devel@gnu.org; Thu, 16 Jun 2016 02:55:52 -0400 In-reply-to: <20160616040212.339f3e6f@scratchpost.org> 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: Danny Milosavljevic Cc: guix-devel@gnu.org Danny Milosavljevic writes: > 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) > ... This looks font-related. Do you have files in ~/.java/fonts? If so, maybe they are invalid? The changes Leo submitted apply to IcedTea 6, but you are using 8. > Does using a Java GUI "fat client" application work for you? Works for me. I’m using the Axoloti patcher (not yet ready for submission). I’m using the default icedtea package, version 7. ~~ Ricardo