The tz building code doesn't work when time zones are supported. You need to
force UTC only with a system property:
-Dorg.joda.time.DateTimeZone.Provider=org.joda.time.tz.UTCProvider

The ant build script does the same thing.

On Mon, Mar 23, 2009 at 1:24 PM, Rodrigo Severo <rodr...@fabricadeideias.com
> wrote:

> Hi,
>
>
> This is my first message to this list.
>
> I'm trying to install joda-time on two Gentoo machines to enable NetBeans.
> Unfortunatelly joda-time is giving my the following error on install:
>
> compile.zoneinfo:
>     [mkdir] Created dir:
> /var/tmp/portage/dev-java/joda-time-1.6/work/joda-time-1.6-src/build/classes/org/joda/time/tz/data
>      [java] Exception in thread "main" java.lang.ArithmeticException:
> Adding time zone offset caused overflow
>      [java]     at
> org.joda.time.chrono.ZonedChronology$ZonedDurationField.getOffsetToAdd(ZonedChronology.java:348)
>      [java]     at
> org.joda.time.chrono.ZonedChronology$ZonedDurationField.getDifference(ZonedChronology.java:330)
>      [java]     at
> org.joda.time.chrono.BaseChronology.get(BaseChronology.java:260)
>      [java]     at
> org.joda.time.base.BasePeriod.<init>(BasePeriod.java:100)
>      [java]     at org.joda.time.Period.<init>(Period.java:439)
>      [java]     at
> org.joda.time.tz.DateTimeZoneBuilder$PrecalculatedZone.create(DateTimeZoneBuilder.java:1432)
>      [java]     at
> org.joda.time.tz.DateTimeZoneBuilder.toDateTimeZone(DateTimeZoneBuilder.java:395)
>      [java]     at
> org.joda.time.tz.ZoneInfoCompiler.compile(ZoneInfoCompiler.java:374)
>      [java]     at
> org.joda.time.tz.ZoneInfoCompiler.main(ZoneInfoCompiler.java:116)
>
> The same exact error occured with timezone-data 2008i and 2009b.
>
> Any ideas where on the cause of this problem or at least where to look for
> the cause?
>
> Please let me know if there4 is any extra info that would help debugging
> this issue.
>
>
> TIA,
>
> Rodrigo Severo
>
> --
>
> ---------------------------------------------------------------------------------------
> Rodrigo Severo
>
> Fábrica de Idéias
> SBS Quadra 2 - Bloco S - Ed. Empire Center - Sala 1.301
> Brasília - DF - CEP 70070-904
> Tel. (61) 3321-1357       Fax (61) 3223-1712
>
> ---------------------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Joda-interest mailing list
> Joda-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>
>
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to