#694 Trying to builf fan - timezone.ftz error

tcolar Tue 28 Jul 2009

When i do fan buildall.fan, i get:

Exec [/home/tcolar/fan-1.0.45/bin/fan /home/tcolar/fan/src/buildpods.fan compile]
ERROR: Cannot load timezone database
java.io.FileNotFoundException: /home/tcolar/fan-1.0.45/lib/timezones.ftz (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at fan.sys.TimeZone.loadIndex(TimeZone.java:229)
	at fan.sys.TimeZone.<clinit>(TimeZone.java:494)
	at fan.sys.DateTime.<clinit>(DateTime.java:933)
	at fan.sys.Sys.<clinit>(Sys.java:514)
	at fanx.tools.Fan.execute(Fan.java:29)
	at fanx.tools.Fan.run(Fan.java:230)
	at fanx.tools.Fan.main(Fan.java:268)
ERROR: Cannot init UTC timezone
sys::ParseErr: TimeZone not found: Etc/UTC
	at fan.sys.ParseErr.<init>(ParseErr.java:53)
	at fan.sys.ParseErr.make(ParseErr.java:39)
	at fan.sys.ParseErr.make(ParseErr.java:36)
	at fan.sys.TimeZone.fromStr(TimeZone.java:82)
	at fan.sys.TimeZone.fromStr(TimeZone.java:48)
	at fan.sys.TimeZone.<clinit>(TimeZone.java:504)
	at fan.sys.DateTime.<clinit>(DateTime.java:933)
	at fan.sys.Sys.<clinit>(Sys.java:514)
	at fanx.tools.Fan.execute(Fan.java:29)
	at fanx.tools.Fan.run(Fan.java:230)
	at fanx.tools.Fan.main(Fan.java:268)
java.lang.ExceptionInInitializerError
	at fan.sys.DateTime.<clinit>(DateTime.java:933)
	at fan.sys.Sys.<clinit>(Sys.java:514)
	at fanx.tools.Fan.execute(Fan.java:29)
	at fanx.tools.Fan.run(Fan.java:230)
	at fanx.tools.Fan.main(Fan.java:268)
Caused by: java.lang.NullPointerException
	at fan.sys.TimeZone.<clinit>(TimeZone.java:511)
</pre

KevinKelley Tue 28 Jul 2009

In 1.0.45 timezones.ftz moved to /etc/sys/, but that's looking for it under /lib/, so I think somehow you're getting a version problem, maybe the runtime finding an old sys.jar on the classpath somewhere?

tcolar Tue 28 Jul 2009

Ha OK, must be why. To compile fan itself you need to set a "devHome" and i had that poiting to 0.45, trying to build 0.44 ... I guess i should have both be the same version for it to work right :)

Login or Signup to reply.