all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: guix-devel@gnu.org
Subject: Re: Trying to build latest Icedtea / Java 6 [security update]
Date: Thu, 16 Jun 2016 08:55:40 +0200	[thread overview]
Message-ID: <8760t9y64z.fsf@elephly.net> (raw)
In-Reply-To: <20160616040212.339f3e6f@scratchpost.org>


Danny Milosavljevic <dannym@scratchpost.org> writes:

> On Wed, 1 Jun 2016 02:29:54 -0400
> Leo Famulari <leo@famulari.name> 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.<init>(SunFontManager.java:376)
> 	at sun.awt.FcFontManager.<init>(FcFontManager.java:35)
> 	at sun.awt.X11FontManager.<init>(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

  reply	other threads:[~2016-06-16  6:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-30  4:59 Trying to build latest Icedtea / Java 6 [security update] Leo Famulari
2016-05-31 19:13 ` Ricardo Wurmus
2016-05-31 22:52   ` Leo Famulari
2016-06-01  6:07     ` Ricardo Wurmus
2016-06-01  6:29       ` Leo Famulari
2016-06-16  2:02         ` Danny Milosavljevic
2016-06-16  6:55           ` Ricardo Wurmus [this message]
2016-07-20 22:13             ` IcedTea Java 8 font problems Danny Milosavljevic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760t9y64z.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.