Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-24752

upgrade ambari-utility and ambari-server-spi dependencies for JDK11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.1
    • 2.8.0
    • None

    Description

      ± % java -version
      java version "11" 2018-09-25
      Java(TM) SE Runtime Environment 18.9 (build 11+28)
      Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)
      
      ± % mvn clean test -Dgenerate.swagger.resources=true -Drat.skip -pl ambari-utility
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building ambari-utility 1.0.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ ambari-utility ---
      [INFO] Deleting /Users/gboros/Documents/dev/ambari/ambari-utility/target
      [INFO] Deleting /Users/gboros/Documents/dev/ambari/ambari-utility (includes = [**/*.pyc], excludes = [])
      [INFO]
      [INFO] --- build-helper-maven-plugin:1.8:regex-property (parse-package-version) @ ambari-utility ---
      [INFO]
      [INFO] --- build-helper-maven-plugin:1.8:regex-property (parse-package-release) @ ambari-utility ---
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ambari-utility ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 1 resource
      [INFO]
      [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ ambari-utility ---
      [INFO] Compiling 14 source files to /Users/gboros/Documents/dev/ambari/ambari-utility/target/classes
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ambari-utility ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 3 resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ ambari-utility ---
      [INFO] Compiling 3 source files to /Users/gboros/Documents/dev/ambari/ambari-utility/target/test-classes
      [INFO]
      [INFO] --- maven-surefire-plugin:2.20:test (default-test) @ ambari-utility ---
      [INFO]
      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.apache.ambari.swagger.AmbariSwaggerReaderTest
      [INFO] Running org.apache.ambari.checkstyle.UndocumentedRestApiOperationCheckTest
      [INFO] Running org.apache.ambari.checkstyle.AvoidTransactionalOnPrivateMethodsCheckTest
      [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.253 s - in org.apache.ambari.checkstyle.AvoidTransactionalOnPrivateMethodsCheckTest
      [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.287 s - in org.apache.ambari.checkstyle.UndocumentedRestApiOperationCheckTest
      [ERROR] Tests run: 8, Failures: 0, Errors: 7, Skipped: 0, Time elapsed: 1.479 s <<< FAILURE! - in org.apache.ambari.swagger.AmbariSwaggerReaderTest
      [ERROR] swaggerBasicCase(org.apache.ambari.swagger.AmbariSwaggerReaderTest)  Time elapsed: 1.21 s  <<< ERROR!
      java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlRootElement
      	at org.apache.ambari.swagger.AmbariSwaggerReaderTest.swaggerBasicCase(AmbariSwaggerReaderTest.java:71)
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlRootElement
      	at org.apache.ambari.swagger.AmbariSwaggerReaderTest.swaggerBasicCase(AmbariSwaggerReaderTest.java:71)
      
      [ERROR] swaggerConflictingNestedApis(org.apache.ambari.swagger.AmbariSwaggerReaderTest)  Time elapsed: 0.006 s  <<< ERROR!
      java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlRootElement
      	at org.apache.ambari.swagger.AmbariSwaggerReaderTest.swaggerConflictingNestedApis(AmbariSwaggerReaderTest.java:86)
      
      [ERROR] swaggerConflictingNestedApisWithPreferredParent(org.apache.ambari.swagger.AmbariSwaggerReaderTest)  Time elapsed: 0.004 s  <<< ERROR!
      java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlRootElement
      	at org.apache.ambari.swagger.AmbariSwaggerReaderTest.swaggerConflictingNestedApisWithPreferredParent(AmbariSwaggerReaderTest.java:103)
      
      [ERROR] swaggerConflictingNestedApisWithSamePreferredParent(org.apache.ambari.swagger.AmbariSwaggerReaderTest)  Time elapsed: 0.003 s  <<< ERROR!
      java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlRootElement
      	at org.apache.ambari.swagger.AmbariSwaggerReaderTest.swaggerConflictingNestedApisWithSamePreferredParent(AmbariSwaggerReaderTest.java:121)
      
      [ERROR] swaggerConflictingNestedApisWithBadPreferredParent(org.apache.ambari.swagger.AmbariSwaggerReaderTest)  Time elapsed: 0.003 s  <<< ERROR!
      java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlRootElement
      	at org.apache.ambari.swagger.AmbariSwaggerReaderTest.swaggerConflictingNestedApisWithBadPreferredParent(AmbariSwaggerReaderTest.java:140)
      
      [ERROR] swaggerNestedApisWithOverwrite(org.apache.ambari.swagger.AmbariSwaggerReaderTest)  Time elapsed: 0.009 s  <<< ERROR!
      java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlRootElement
      	at org.apache.ambari.swagger.AmbariSwaggerReaderTest.swaggerNestedApisWithOverwrite(AmbariSwaggerReaderTest.java:156)
      
      [ERROR] swaggerApiThatIsBothTopLevelAndNestedIsCountedAsTopLevel(org.apache.ambari.swagger.AmbariSwaggerReaderTest)  Time elapsed: 0.003 s  <<< ERROR!
      java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlRootElement
      	at org.apache.ambari.swagger.AmbariSwaggerReaderTest.swaggerApiThatIsBothTopLevelAndNestedIsCountedAsTopLevel(AmbariSwaggerReaderTest.java:171)
      
      [INFO]
      [INFO] Results:
      [INFO]
      [ERROR] Errors:
      [ERROR]   AmbariSwaggerReaderTest.swaggerApiThatIsBothTopLevelAndNestedIsCountedAsTopLevel:171 » NoClassDefFound
      [ERROR]   AmbariSwaggerReaderTest.swaggerBasicCase:71 » NoClassDefFound javax/xml/bind/a...
      [ERROR]   AmbariSwaggerReaderTest.swaggerConflictingNestedApis:86 » NoClassDefFound java...
      [ERROR]   AmbariSwaggerReaderTest.swaggerConflictingNestedApisWithBadPreferredParent:140 » NoClassDefFound
      [ERROR]   AmbariSwaggerReaderTest.swaggerConflictingNestedApisWithPreferredParent:103 » NoClassDefFound
      [ERROR]   AmbariSwaggerReaderTest.swaggerConflictingNestedApisWithSamePreferredParent:121 » NoClassDefFound
      [ERROR]   AmbariSwaggerReaderTest.swaggerNestedApisWithOverwrite:156 » NoClassDefFound j...
      [INFO]
      [ERROR] Tests run: 10, Failures: 0, Errors: 7, Skipped: 0
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 6.540 s
      [INFO] Finished at: 2018-10-08T15:58:45+02:00
      [INFO] Final Memory: 28M/104M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on project ambari-utility: There are test failures.
      [ERROR]
      [ERROR] Please refer to /Users/gboros/Documents/dev/ambari/ambari-utility/target/surefire-reports for the individual test results.
      [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
      [ERROR] -> [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/MojoFailureException
      

      Attachments

        Issue Links

          Activity

            People

              gboros Gabor Boros
              gboros Gabor Boros
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m