Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7148

Jenkin's job EJBCA_TRUNK_UNIT_PUPPET compilation failure

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.14.0
    • Fix Version/s: EJBCA 6.14.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      EJBCA Sprint 17

      Description

      Jenkin's job EJBCA_TRUNK_UNIT_PUPPET randomly experience compilation failures:

      compile:
          [javac] Compiling 35 source files to /home/hudson/workspace/EJBCA_TRUNK_UNIT_PUPPET/ejbca/modules/ejbca-rest-api/build/WEB-INF/classes
         [clover] OpenClover Version 4.2.1, built on November 21 2017 (build-1004)
         [clover] Loaded from: /home/hudson/workspace/EJBCA_TRUNK_UNIT_PUPPET/ejbca/lib/ext/openclover-ant/clover.jar
         [clover] Clover free edition.
         [clover] Updating existing database at '/home/hudson/workspace/EJBCA_TRUNK_UNIT_PUPPET/ejbca/reports/clover/clover.db'.
         [clover] Processing files at 1.7 source level.
         [clover] Clover all over. Instrumented 35 files (8 packages).
         [clover] Elapsed time = 0.155 secs. (225.806 files/sec, 27,883.871 srclines/sec)
          [javac] /tmp/clover2858129134020911247.tmp/org/ejbca/ui/web/rest/api/io/request/SearchCertificatesRestRequest.java:40: error: annotation ValidSearchCertificateMaxNumberOfResults is missing value for the attribute <clinit>
          [javac]     @ValidSearchCertificateMaxNumberOfResults
          [javac]     ^
          [javac] /tmp/clover2858129134020911247.tmp/org/ejbca/ui/web/rest/api/io/request/SearchCertificatesRestRequest.java:43: error: annotation ValidSearchCertificateCriteriaRestRequestList is missing value for the attribute <clinit>
          [javac]     @ValidSearchCertificateCriteriaRestRequestList
          [javac]     ^
          [javac] Note: /tmp/clover2858129134020911247.tmp/org/ejbca/ui/web/rest/api/exception/ExceptionClasses.java uses or overrides a deprecated API.
          [javac] Note: Recompile with -Xlint:deprecation for details.
          [javac] 2 errors
      

       
      Possible reason for this issue is in bugs of OpenJDK 7+: JDK-8013485, JDK-8061361, JDK-8072363.

      The EJBCA_TRUNK_UNIT_PUPPET uses OpenJDK:

      hudson@puppetagent02:~$ java -version
      java version "1.7.0_65"
      OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu0.14.04.1)
      OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
      

      Update the OpenJDK of EJBCA_TRUNK_UNIT_PUPPET to version 7u85+.

        Attachments

          Activity

            People

            • Assignee:
              andrey_helmes Andrey Sergeev
              Reporter:
              andrey_helmes Andrey Sergeev
              Verified by:
              Mike Agrenius Kushner
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 7 hours Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 7 hours Remaining Estimate - 1 hour
                7h