FileNotFoundException when running FreeMind for the first time

Bug #724007 reported by Andrew
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
freemind (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: freemind

Running FreeMind for the first time fails with a FileNotFoundException:

 ak@myo5a:~$ java -version
 java version "1.6.0_24"
 Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
 Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
 ak@myo5a:~$ freemind
 Checking Java Version...
 java.io.FileNotFoundException: /home/ak/.freemind/auto.properties (No such file or directory)
  at java.io.FileInputStream.open(Native Method)
  at java.io.FileInputStream.<init>(FileInputStream.java:137)
  at freemind.main.FreeMindStarter.readUsersPreferences(FreeMindStarter.java:136)
  at freemind.main.FreeMindStarter.main(FreeMindStarter.java:56)
 Panic! Error while loading default properties.
 java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:616)
  at freemind.main.FreeMindStarter.main(FreeMindStarter.java:63)
 Caused by: java.awt.HeadlessException
  at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
  at java.awt.Window.<init>(Window.java:437)
  at java.awt.Frame.<init>(Frame.java:419)
  at javax.swing.JFrame.<init>(JFrame.java:218)
  at freemind.main.FreeMind.<init>(FreeMind.java:201)
  at freemind.main.FreeMind.main(FreeMind.java:705)
  ... 5 more
 Exception in thread "main" java.awt.HeadlessException
  at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
  at java.awt.Window.<init>(Window.java:437)
  at java.awt.Frame.<init>(Frame.java:419)
  at java.awt.Frame.<init>(Frame.java:384)
  at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1758)
  at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1835)
  at javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1692)
  at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:864)
  at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:668)
  at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:639)
  at freemind.main.FreeMindStarter.main(FreeMindStarter.java:67)

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: freemind 0.9.0~rc7+dfsg-1
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic x86_64
Architecture: amd64
Date: Wed Feb 23 15:09:21 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: freemind

Revision history for this message
Andrew (andrewkvalheim) wrote :
summary: - Panic! Error while loading default properties.
- (~/.freemind/auto.properties not found)
+ FileNotFoundException when running FreeMind for the first time
Changed in freemind (Ubuntu):
status: New → Confirmed
Revision history for this message
Peter Rullmann (prullmann) wrote :

That freemind can't find the default properties is not the cause for it not to start.
The java.awt.HeadlessException is what's wrong here. This is because openjdk-6-jre-headless is used as the java alternative. I switched to sun-java6 and now freemind starts without problem.
From the user experience side this is still a bug in my opinion.

Revision history for this message
Jonathan Steinhart (jsteinhart) wrote :

This happens for me too on Trusty with Oracle JVM installed and configured as default java alternative (via oracle-java8-installer).

$ java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

$freemind
java.io.FileNotFoundException: /home/jon/.freemind/auto.properties (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:146)
        at freemind.main.FreeMindStarter.readUsersPreferences(FreeMindStarter.java:136)
        at freemind.main.FreeMindStarter.main(FreeMindStarter.java:56)
Panic! Error while loading default properties.
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at freemind.main.FreeMindStarter.main(FreeMindStarter.java:63)
Caused by: java.awt.HeadlessException
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
        at java.awt.Window.<init>(Window.java:535)
        at java.awt.Frame.<init>(Frame.java:420)
        at javax.swing.JFrame.<init>(JFrame.java:218)
        at freemind.main.FreeMind.<init>(FreeMind.java:201)
        at freemind.main.FreeMind.main(FreeMind.java:705)
        ... 5 more
Exception in thread "main" java.awt.HeadlessException
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
        at java.awt.Window.<init>(Window.java:535)
        at java.awt.Frame.<init>(Frame.java:420)
        at java.awt.Frame.<init>(Frame.java:385)
        at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1756)
        at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1831)
        at javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1697)
        at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:863)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:667)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:638)
        at freemind.main.FreeMindStarter.main(FreeMindStarter.java:67)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.