You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2017/03/02 11:36:45 UTC

[jira] [Commented] (CAY-2253) Cayenne JDK9 compatibility

    [ https://issues.apache.org/jira/browse/CAY-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15892106#comment-15892106 ] 

Nikita Timofeev commented on CAY-2253:
--------------------------------------

The workaround for errors like {{module java.base does not "opens java.lang" to unnamed module}} 
is to start java with additional arguments: {{--add-opens java.base/java.lang=ALL-UNNAMED}}

> Cayenne JDK9 compatibility
> --------------------------
>
>                 Key: CAY-2253
>                 URL: https://issues.apache.org/jira/browse/CAY-2253
>             Project: Cayenne
>          Issue Type: Task
>         Environment: Java build 9-ea+158
>            Reporter: Nikita Timofeev
>
> # All tests that validate di.spi.ModuleProvider presence fail as ServiceLoader loads 2 providers instead of 1.
> # *cayenne-server*
> All tests related to hessian serialization are in error.
> # *cayenne-client*
> All tests related to hessian serialization are in error.
> {quote}Unable to make private java.lang.StackTraceElement() accessible: module java.base does not "opens java.lang" to unnamed module{quote}
> # *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
> {quote}
>   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
> {quote}
> # *cayenne-protostuff*
> All tests related to protostuff serialization are in error.
> {quote}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{quote}
> # *cayenne-doc*
> Not really understood why this module is failing
> # *tutorial-rop-server*
> Seems that maven-war-plugin (3.0.0) is not compatible:
> {quote}
> [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]{quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)