Failed to compile tzdata 2020e
See original GitHub issueI’m trying to update tzdata to 2020e, but it fails to compile with error Value 31 for dayOfMonth must be in the range [1,30]
.
Seems like new rules for Israel causes this error (asia
file in tzdata): Rule Zion 1940 only - May 31 24:00u 1:00 D
.
I use source code of version 2.10.8.
Full log:
zgmnkv@zgmnkv-yndx-laptop:~/projects/joda-time/joda-time-2.10.8-tzdata2020e$ mvn -version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_221, vendor: Oracle Corporation, runtime: /usr/local/jdk1.8.0_221/jre
Default locale: ru_RU, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-52-generic", arch: "amd64", family: "unix"
zgmnkv@zgmnkv-yndx-laptop:~/projects/joda-time/joda-time-2.10.8-tzdata2020e$ mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< joda-time:joda-time >-------------------------
[INFO] Building Joda-Time 2.10.8-tzdata2020e
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-maven) @ joda-time ---
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ joda-time ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources to META-INF
[INFO] Copying 18 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ joda-time ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:java (compile-tzdb) @ joda-time ---
Writing zoneinfo files
Fixed negative save values for rule 'Morocco'
Fixed negative save values for rule 'Morocco'
Fixed negative save values for rule 'Morocco'
Fixed negative save values for rule 'Morocco'
Fixed negative save values for rule 'Morocco'
Fixed negative save values for rule 'Namibia'
[WARNING]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:293)
at java.lang.Thread.run (Thread.java:748)
Caused by: org.joda.time.IllegalFieldValueException: Value 31 for dayOfMonth must be in the range [1,30]
at org.joda.time.field.FieldUtils.verifyValueBounds (FieldUtils.java:259)
at org.joda.time.field.PreciseDurationDateTimeField.set (PreciseDurationDateTimeField.java:79)
at org.joda.time.tz.DateTimeZoneBuilder$OfYear.setDayOfMonth (DateTimeZoneBuilder.java:716)
at org.joda.time.tz.DateTimeZoneBuilder$OfYear.setDayOfMonthNext (DateTimeZoneBuilder.java:681)
at org.joda.time.tz.DateTimeZoneBuilder$OfYear.next (DateTimeZoneBuilder.java:572)
at org.joda.time.tz.DateTimeZoneBuilder$Recurrence.next (DateTimeZoneBuilder.java:770)
at org.joda.time.tz.DateTimeZoneBuilder$Rule.next (DateTimeZoneBuilder.java:879)
at org.joda.time.tz.DateTimeZoneBuilder$RuleSet.nextTransition (DateTimeZoneBuilder.java:1122)
at org.joda.time.tz.DateTimeZoneBuilder$RuleSet.firstTransition (DateTimeZoneBuilder.java:1060)
at org.joda.time.tz.DateTimeZoneBuilder.toDateTimeZone (DateTimeZoneBuilder.java:352)
at org.joda.time.tz.ZoneInfoCompiler.compile (ZoneInfoCompiler.java:396)
at org.joda.time.tz.ZoneInfoCompiler.main (ZoneInfoCompiler.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:293)
at java.lang.Thread.run (Thread.java:748)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.519 s
[INFO] Finished at: 2020-12-24T18:54:33+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java (compile-tzdb) on project joda-time: An exception occured while executing the Java class. null: InvocationTargetException: Value 31 for dayOfMonth must be in the range [1,30] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
zgmnkv@zgmnkv-yndx-laptop:~/projects/joda-time/joda-time-2.10.8-tzdata2020e$
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Red Hat Enterprise Linux Timezone Data (tzdata)
The tzdata package contains data files with rules for various time zones around the world. This document captures Red Hat engineering's tentative plans, ......
Read more >Blame tzdata.spec - Fedora Package Sources
cvsdist ea28131 Summary: Timezone data
cvsdist ea28131 Name: tzdata
Patsy Griffin c7c4c33 Version: 2022f
Patsy Griffin c7c4c33 %define tzdata_version 2022f
Read more >News for the tz database
zdump -v now outputs better failure indications. Bug fixes for code that reads corrupted TZif data. Changes to future timestamps Palestine will spring...
Read more >tzdata-2020f-1.el8 | Build Info - MBOX Koji
Information for build tzdata-2020f-1.el8 ; 1.el8 · git+https://git.centos.org/rpms/tzdata.git#ba91944678dbd991f6fcf2b4674f136049497a2f · Timezone ...
Read more >Build issue (cross-build) after moving to time/tzdata ... - GitHub
After changing the Dockerfile to use time/tzdata for timezone in docker ... Oddly, the cross-compilation for arm64 raise no error and the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Done
Seems that tzdata version in Readme.txt hasn’t been updated https://github.com/JodaOrg/joda-time/blob/master/src/main/java/org/joda/time/tz/src/Readme.txt It’s minor, but could be confusing