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

Antoine Brodin antoine at FreeBSD.org
Tue Dec 30 23:13:02 UTC 2014


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.

Cheers,

Antoine


More information about the freebsd-java mailing list