Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2253

Cayenne JDK9 compatibility

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.M5
    • 4.0.RC1, 4.1.M2
    • None
    • None
    • Java 9

    Description

      1. All tests that validate di.spi.ModuleProvider presence fail as ServiceLoader loads 2 providers instead of 1.
      2. cayenne-server
        All tests related to hessian serialization are in error.
      3. cayenne-client
        All tests related to hessian serialization are in error.

        Unable to make private java.lang.StackTraceElement() accessible: module java.base does not "opens java.lang" to unnamed module

      4. cayenne-crypto
        javax.xml.bind.DatatypeConverter moved to a module that is not loaded by default
        see http://mail.openjdk.java.net/pipermail/jdk9-dev/2016-May/004309.html

        Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:533)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:186)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:476)
        ... 32 more

      5. cayenne-protostuff
        All tests related to protostuff serialization are in error.

        Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.Object java.util.Collections$SingletonSet.element accessible: module java.base does not "opens java.util" to unnamed module

      6. cayenne-doc
        Not really understood why this module is failing
      7. tutorial-rop-server
        Seems that maven-war-plugin (3.0.0) is not compatible:

        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:3.0.0:war (default-war) on project tutorial-rop-server: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:3.0.0:war failed: Unable to load the mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:3.0.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null
        ...
        [ERROR] -----------------------------------------------------: ExceptionInInitializerError: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @7f51f588
        [ERROR] -> [Help 1]

      Attachments

        Activity

          People

            ntimofeev Nikita Timofeev
            ntimofeev Nikita Timofeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: