Error: time is more than 10 years from present: 1104530400000 when building java/openjdk*

Greg Lewis glewis at eyesbeyond.com
Sat Jan 3 05:55:47 UTC 2015


On Wed, Dec 31, 2014 at 12:13:00AM +0100, Antoine Brodin wrote:
> On Tue, Dec 30, 2014 at 1:21 PM, Antoine Brodin <antoine at freebsd.org> wrote:
> > On Tue, Dec 30, 2014 at 9:20 AM, Antoine Brodin <antoine at freebsd.org> wrote:
> >> On Tue, Dec 30, 2014 at 8:02 AM, Antoine Brodin <antoine at freebsd.org> wrote:
> >>> Hi there,
> >>>
> >>> Today I had this error when building lang/openjdk6 and lang/openjdk7 ports:
> >>>
> >>> /usr/local/bootstrap-openjdk/bin/java  -Xmx896m -Xms128m
> >>> -XX:PermSize=32m -XX:MaxPermSize=160m -jar
> >>> /wrkdirs/usr/ports/java/openjdk6/work/build/bsd-amd64/btjars/generatecurrencydata.jar
> >>> -o /wrkdirs/usr/ports/java/openjdk6/work/build/bsd-amd64/lib/currency.data.temp
> >>> \
> >>> < ../../../src/share/classes/java/util/CurrencyData.properties
> >>> Error: time is more than 10 years from present: 1104530400000
> >>> java.lang.RuntimeException: time is more than 10 years from present:
> >>> 1104530400000
> >>> at build.tools.generatecurrencydata.GenerateCurrencyData.makeSpecialCaseEntry(GenerateCurrencyData.java:285)
> >>> at build.tools.generatecurrencydata.GenerateCurrencyData.buildMainAndSpecialCaseTables(GenerateCurrencyData.java:225)
> >>> at build.tools.generatecurrencydata.GenerateCurrencyData.main(GenerateCurrencyData.java:154)
> >>> Makefile:323: recipe for target
> >>> '/wrkdirs/usr/ports/java/openjdk6/work/build/bsd-amd64/lib/currency.data'
> >>> failed
> >>>
> >>> Full logs available at:
> >>> http://package20.nyi.freebsd.org/data/91amd64-default-baseline/375810/logs/errors/openjdk6-b33,1.log
> >>> http://package20.nyi.freebsd.org/data/91amd64-default-baseline/375810/logs/errors/openjdk-7.71.14_1,1.log
> >>
> >>
> >> It may come from this line in CurrencyData.properties:
> >>
> >> # TURKEY
> >> TR=TRL;2004-12-31-22-00-00;TRY
> >>
> >> 31 december 2004 was 10 years ago
> >
> > With attached patch,  which backports the file from the openjdk8
> > version,  I am able to build openjdk7.
> > I'd like to have something committed before 1AM UTC as weekly package
> > builds will start then.
> 
> 
> I committed a simpler patch since the first one didn't work for openjdk6.
> In June 2015 the problem will probably occur again.

Thanks Antoine.  It looks like there is an upstream fix for this which is
in the Update 80 branch.  I expect that may be out before June, but, if
not, I can backport it.

There is also a proposed patch for OpenJDK 6 that is likely to be committed
upstream and can be backported if so.

-- 
Greg Lewis                          Email   : glewis at eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis at FreeBSD.org


More information about the freebsd-java mailing list