beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago Henrique Ramos da Mata (JIRA)" <>
Subject [jira] [Created] (BEAM-3693) On ubuntu 16 and Java 1.8 the package beam-sdks-java-core 2.2.0 throws Invalid value for MonthOfYear
Date Mon, 12 Feb 2018 21:54:00 GMT
Thiago Henrique Ramos da Mata created BEAM-3693:

             Summary: On ubuntu 16 and Java 1.8 the package beam-sdks-java-core 2.2.0 throws
Invalid value for MonthOfYear
                 Key: BEAM-3693
             Project: Beam
          Issue Type: Bug
          Components: beam-model
    Affects Versions: 2.2.0
    $ mvn version

    Apache Maven 3.3.9
    Maven home: /usr/share/maven
    Java version: 9.0.4, vendor: Oracle Corporation
    Java home: /usr/lib/jvm/java-9-oracle
    Default locale: en_NZ, platform encoding: UTF-8
    OS name: "linux", version: "4.13.0-32-generic", arch: "amd64", family: "unix"

    $ java -version

    java version "1.8.0_161"
    Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
    Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

    $ lsb_release -a

    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 16.04.3 LTS
    Release:    16.04
    Codename:   xenial
            Reporter: Thiago Henrique Ramos da Mata
            Assignee: Kenneth Knowles
             Fix For: 2.1.0

The problem is caused by the package beam-sdks-java-core in the version 2.2.0. This package
was being loaded into the package my.projects.models.

Here is the isolated program that replicates the same error message:

## ./pom.xml

     <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="" xmlns:xsi=""
## ./src/main/java/com/mock/bug/

     package com.mock.bug;

    public class Main {
        public void main(String[] input){
            System.out.println("hello workd");

## ./src/test/java/com/mock/bug/

    package com.mock.bug;

    import org.junit.Test;

    import static org.junit.Assert.*;

    public class DummyHealthCheckTest {
        public void DummyCheckTest() {
            boolean t = true;

## Command to fire the error message:

    mvn -U clean package

## Exception Message
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by$ReflectUtils$1
(file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,
WARNING: Please consider reporting this to the maintainers of$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building mock-bug 0.123
[INFO] ------------------------------------------------------------------------
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ mock-bug ---
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mock-bug ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build
is platform dependent!
[INFO] skip non existing resourceDirectory /home/me/projects/mock-bug/src/main/resources
[INFO] --- maven-compiler-plugin:3.5:compile (default-compile) @ mock-bug ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform
[INFO] Compiling 1 source file to /home/me/projects/mock-bug/target/classes
An exception has occurred in the compiler (9.0.4). Please file a bug against the Java compiler
via the Java bug reporting page ( after checking the Bug Database
( for duplicates. Include your program and the following diagnostic in
your report. Thank you.
java.time.DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): 0
	at java.base/java.time.temporal.ValueRange.checkValidValue(
	at java.base/java.time.temporal.ChronoField.checkValidValue(
	at java.base/java.time.LocalDate.of(
	at java.base/java.time.LocalDateTime.of(
	at jdk.zipfs/jdk.nio.zipfs.ZipUtils.dosToJavaTime(
	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.cen(
	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.readCEN(
	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.getEntry(
	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newInputStream(
	at jdk.zipfs/jdk.nio.zipfs.JarFileSystem.isMultiReleaseJar(
	at jdk.zipfs/jdk.nio.zipfs.JarFileSystem.<init>(
	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(
	at jdk.compiler/$ArchiveContainer.<init>(
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/$PackageSymbol.members(
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/$JCCompilationUnit.accept(
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/$doCall$0(
	at jdk.compiler/
	at jdk.compiler/
	at jdk.compiler/
	at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(
	at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(
	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(
	at org.apache.maven.plugin.compiler.CompilerMojo.execute(
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(
	at org.apache.maven.DefaultMaven.doExecute(
	at org.apache.maven.DefaultMaven.doExecute(
	at org.apache.maven.DefaultMaven.execute(
	at org.apache.maven.cli.MavenCli.execute(
	at org.apache.maven.cli.MavenCli.doMain(
	at org.apache.maven.cli.MavenCli.main(
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.base/java.lang.reflect.Method.invoke(
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(

If we change the beam-sdks-java-core version from 2.2.0 to 2.1.0 the project can be compiled
and tested. 

While this information is not enough to fix the issues or to inform why this is only happening
on some machines, I believe that is the best answer that can be extracted from this.

This message was sent by Atlassian JIRA

View raw message