ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taras Ledkov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-9687) JDK9: JTA tests failed
Date Fri, 28 Sep 2018 09:56:00 GMT

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

Taras Ledkov edited comment on IGNITE-9687 at 9/28/18 9:55 AM:
---------------------------------------------------------------

The patch is not required on JDK9.

To successful run add command line options (e.g. to MAVEN_OPTS):
{code}
--add-modules=java.corba \
--add-modules=java.transaction \
--illegal-access=permit \
--patch-module=java.transaction=$HOME/.m2/repository/javax/transaction/javax.transaction-api/1.3/javax.transaction-api-1.3.jar
{code}

So, the full command line options to run Ignite tests on JDK9:
{code}
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED \
--add-exports java.base/sun.nio.ch=ALL-UNNAMED \
--add-exports java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
--add-exports jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
--add-exports java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
--add-modules java.xml.bind \
--add-modules=java.corba \
--add-modules=java.transaction \
--illegal-access=permit \
--patch-module=java.transaction=$HOME/.m2/repository/javax/transaction/javax.transaction-api/1.3/javax.transaction-api-1.3.jar"
{code}



was (Author: tledkov-gridgain):
The patch is not required.

To successful run add command line options (e.g. to MAVEN_OPTS):
{code}
--add-modules=java.corba \
--add-modules=java.transaction \
--illegal-access=permit \
--patch-module=java.transaction=$HOME/.m2/repository/javax/transaction/javax.transaction-api/1.3/javax.transaction-api-1.3.jar
{code}

So, the full command line options to run Ignite tests on JDK9:
{code}
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED \
--add-exports java.base/sun.nio.ch=ALL-UNNAMED \
--add-exports java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
--add-exports jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
--add-exports java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
--add-modules java.xml.bind \
--add-modules=java.corba \
--add-modules=java.transaction \
--illegal-access=permit \
--patch-module=java.transaction=$HOME/.m2/repository/javax/transaction/javax.transaction-api/1.3/javax.transaction-api-1.3.jar"
{code}


> JDK9: JTA tests failed
> ----------------------
>
>                 Key: IGNITE-9687
>                 URL: https://issues.apache.org/jira/browse/IGNITE-9687
>             Project: Ignite
>          Issue Type: Task
>    Affects Versions: 2.6
>            Reporter: Taras Ledkov
>            Assignee: Taras Ledkov
>            Priority: Major
>              Labels: jdk9
>             Fix For: 2.7
>
>
> JTA tests fail on JDK9 with error:
> {{java.lang.NoClassDefFoundError: javax/rmi/PortableRemoteObject}}
> the option {{--add-modules java.se.ee}}
> changes the error to:
> {{java.lang.NoClassDefFoundError: javax/transaction/UserTransaction}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message