bardsoftware / ganttproject

Official GanttProject repository.
http://ganttproject.biz
GNU General Public License v3.0
860 stars 301 forks source link

fails to start with linux 3.0 on arch linux #283

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start
2. -> fails

What is the expected output? What do you see instead?

expected -> should start

instead : 

Exception in thread "main" java.lang.ExceptionInInitializerError
    at java.nio.file.FileSystems.getDefault(Unknown Source)
    at sun.util.calendar.ZoneInfoFile$1.run(Unknown Source)
[...]
Caused by: java.lang.NumberFormatException: For input string: "0-ARCH"
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at sun.nio.fs.LinuxFileSystem.<init>(Unknown Source)
    at sun.nio.fs.LinuxFileSystemProvider.newFileSystem(Unknown Source)
[...]

What version of the product are you using? On what operating system?

[joebar@arch ~]$ yaourt -Q ganttproject
archlinuxfr/ganttproject 2.0.10-1

I'm using Arch Linux.

Please provide any additional information below.

Problem occurs since linux kernel update to 3.0. This is almost certainly the 
cause, I guess gantt is looking for the kernel version and fails to read it 
because the number is now 3.x instead of 2.6.x.
Is is failing on parsing "0-ARCH" as a number, and this is precisely what 
appears when i request ùy kernel version :

[joebar@arch ~]$ uname -r
3.0-ARCH

Original issue reported on code.google.com by guillaum...@gmail.com on 4 Sep 2011 at 2:23

GoogleCodeExporter commented 9 years ago
Sorry I founded out that ganttproject is not the cause of the problem, but 
instead it is the java library itself.

This was my faulty version of java :

[joebar@arch ~]$ java -version
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b134)
Java HotSpot(TM) Client VM (build 21.0-b04, mixed mode)

This one is ok (openjdk6) and allows gantt to run again :
[joebar@arch ~]$ java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.3) (ArchLinux-6.b22_1.10.3-1-i686)
OpenJDK Client VM (build 19.0-b09, mixed mode)

I guess the bug can be closed. Sorry for reporting too fast.

Original comment by guillaum...@gmail.com on 4 Sep 2011 at 2:40

GoogleCodeExporter commented 9 years ago
GanttProject should be able to run using orcale/sun java as well as openjdk.
So the issue is still valid and you narrowed the possible errors down :)

Original comment by maarten....@gmail.com on 4 Sep 2011 at 2:44

GoogleCodeExporter commented 9 years ago
I believe you might as well update your Java 7 package. "ea" in its name 
probably means it is "early access" build, not the release. 

Anyway, the stack trace you posted says that the problem is in JRE and if the 
problem persists, you'd better file an issue to Oracle.

Original comment by dbarashev on 4 Sep 2011 at 2:47