Exception when running HardwareSimulator.sh

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Exception when running HardwareSimulator.sh

danbst
I have OpenJDK 1.8.0.31 64-bit on Nixos + XMonad

Here is exception I get when running HardwareSimulator.sh

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:753)
        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.X11FontManager.<init>(X11FontManager.java:32)
        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:408)
        at java.lang.Class.newInstance(Class.java:438)
        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:1113)
        at javax.swing.JComponent.getFontMetrics(JComponent.java:1624)
        at javax.swing.text.PlainView.calculateLongestLine(PlainView.java:639)
        at javax.swing.text.PlainView.updateMetrics(PlainView.java:209)
        at javax.swing.text.PlainView.updateDamage(PlainView.java:527)
        at javax.swing.text.PlainView.insertUpdate(PlainView.java:451)
        at javax.swing.text.FieldView.insertUpdate(FieldView.java:293)
        at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1610)
        at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1869)
        at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:201)
        at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:748)
        at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:707)
        at javax.swing.text.PlainDocument.insertString(PlainDocument.java:130)
        at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:669)
        at javax.swing.text.JTextComponent.setText(JTextComponent.java:1669)
        at SimulatorsGUI.BinaryComponent.jbInit(Unknown Source)
        at SimulatorsGUI.BinaryComponent.<init>(Unknown Source)
        at SimulatorsGUI.PinsComponent.<init>(Unknown Source)
        at SimulatorsGUI.HardwareSimulatorComponent.<init>(Unknown Source)
        at HardwareSimulatorMain.main(Unknown Source)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception when running HardwareSimulator.sh

cadet1620
Administrator
danbst wrote
I have OpenJDK 1.8.0.31 64-bit on Nixos + XMonad

Here is exception I get when running HardwareSimulator.sh

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:753)
...
        at SimulatorsGUI.BinaryComponent.jbInit(Unknown Source)
        at SimulatorsGUI.BinaryComponent.<init>(Unknown Source)
        at SimulatorsGUI.PinsComponent.<init>(Unknown Source)
        at SimulatorsGUI.HardwareSimulatorComponent.<init>(Unknown Source)
        at HardwareSimulatorMain.main(Unknown Source)
Looks like an OpenJDK install problem.  These might be apropos:

https://bugs.launchpad.net/linaro-oe/+bug/1243879
http://stackoverflow.com/questions/7190924/java-swing-null-pointer-exception

--Mark
Loading...