Uploaded image for project: 'Java Mission Control'
  1. Java Mission Control
  2. JMC-6118

Java Mission Control tests fails on OpenJDK 8

    Details

    • OS:
      linux_redhat_7.3

      Description

      When I run the tests, i.e. with mvn verify -P uitests on RHEL 7.5 I get a failure at some point on the org.openjdk.jmc.rjmx.test module, in particular the following tests fail:

      -------------------------------------------------------------------------------
      Test set: org.openjdk.jmc.rjmx.test.services.CommercialFeaturesServiceTest
      -------------------------------------------------------------------------------
      Tests run: 4, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.087 sec <<< FAILURE! - in org.openjdk.jmc.rjmx.test.services.CommercialFeaturesServiceTest
      testReadCommercialFeaturesState(org.openjdk.jmc.rjmx.test.services.CommercialFeaturesServiceTest) Time elapsed: 0.028 sec <<< FAILURE!
      java.lang.AssertionError: Could not retrieve the commercial features service. Please make sure that you are connecting to a Java 7u4 or later JVM.
      at org.openjdk.jmc.rjmx.test.services.CommercialFeaturesServiceTest.getCommercialFeaturesService(CommercialFeaturesServiceTest.java:80)
      at org.openjdk.jmc.rjmx.test.services.CommercialFeaturesServiceTest.testReadCommercialFeaturesState(CommercialFeaturesServiceTest.java:57)

      testGetService(org.openjdk.jmc.rjmx.test.services.CommercialFeaturesServiceTest) Time elapsed: 0.015 sec
      testSetCommercialFeaturesState(org.openjdk.jmc.rjmx.test.services.CommercialFeaturesServiceTest) Time elapsed: 0.021 sec <<< FAILURE!
      java.lang.AssertionError: Could not retrieve the commercial features service. Please make sure that you are connecting to a Java 7u4 or later JVM.
      at org.openjdk.jmc.rjmx.test.services.CommercialFeaturesServiceTest.getCommercialFeaturesService(CommercialFeaturesServiceTest.java:80)
      at org.openjdk.jmc.rjmx.test.services.CommercialFeaturesServiceTest.testSetCommercialFeaturesState(CommercialFeaturesServiceTest.java:64)

      testGetCommercialFeaturesService(org.openjdk.jmc.rjmx.test.services.CommercialFeaturesServiceTest) Time elapsed: 0.021 sec <<< FAILURE!
      java.lang.AssertionError: Could not retrieve the commercial features service. Please make sure that you are connecting to a Java 7u4 or later JVM.
      at org.openjdk.jmc.rjmx.test.services.CommercialFeaturesServiceTest.getCommercialFeaturesService(CommercialFeaturesServiceTest.java:80)
      at org.openjdk.jmc.rjmx.test.services.CommercialFeaturesServiceTest.testGetCommercialFeaturesService(CommercialFeaturesServiceTest.java:52)

      -------------------------------------------------------------------------------

       

      The test seems to require a closed JDK with commercial features, I think we should be able to run the full test suite on OpenJDK as well.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                neugens Mario Torre
                Reporter:
                neugens Mario Torre
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: