Step 1 of 4: Choose Issues

Cancel

T Key Summary Assignee Reporter Status Created Updated Components Description
Sub-task WFCORE-3445

WFCORE-1374 Update jandex to 2.0.4.Final

Tomaž Cerar (Inactive) Tomaž Cerar (Inactive) Resolved Server

Update to jandex 2.0.4.Final which has fix for JANDEX-41

Sub-task WFCORE-2980

WFCORE-1374 Bump the version of mockito

Tomaž Cerar (Inactive) Rostislav Svoboda Resolved Test Suite

Bump the version of Mockito to pull latest changes related to jdk9

Sub-task WFCORE-1859

WFCORE-1374 Investigate and fix JDK9 modular params propagation to forked processes

Richard Opalka Richard Opalka Resolved Server, Test Suite
Sub-task WFCORE-1833

WFCORE-1374 Fix ServiceLoader iterator issue

Richard Opalka Richard Opalka Resolved  

ServiceLoader regression in latest Jigsaw JDK9 builds
is caused by fact ServiceLoader's iterator call to hasNext() method
is not covered with ServiceConfigurationError try-catch statement.

Sub-task WFCORE-1431

WFCORE-1374 Look into loading Sasl providers on jigsaw

Tomaž Cerar (Inactive) Tomaž Cerar (Inactive) Resolved Remoting

With JDK9 jigsaw builds remoting and most tests related to it fail.

java.lang.IllegalAccessException: class org.xnio.sasl.SaslUtils cannot access class com.sun.security.sasl.ntlm.FactoryImpl (in module java.security.sasl) because module java.security.sasl does not export com.sun.security.sasl.ntlm to unnamed module @a67c67e
	at sun.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:411)
	at sun.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:402)
	at sun.reflect.Reflection.ensureMemberAccess(java.base@9-ea/Reflection.java:99)
	at java.lang.Class.newInstance(java.base@9-ea/Class.java:545)
	at org.xnio.sasl.SaslUtils.getFactories(SaslUtils.java:138)
	at org.xnio.sasl.SaslUtils.getSaslServerFactories(SaslUtils.java:87)
	at Test.main(Test.java:3)
java.lang.IllegalAccessException: class org.xnio.sasl.SaslUtils cannot access class com.sun.security.sasl.digest.FactoryImpl (in module java.security.sasl) because module java.security.sasl does not export com.sun.security.sasl.digest to unnamed module @a67c67e
	at sun.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:411)
	at sun.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:402)
	at sun.reflect.Reflection.ensureMemberAccess(java.base@9-ea/Reflection.java:99)
	at java.lang.Class.newInstance(java.base@9-ea/Class.java:545)
	at org.xnio.sasl.SaslUtils.getFactories(SaslUtils.java:138)
	at org.xnio.sasl.SaslUtils.getSaslServerFactories(SaslUtils.java:87)
	at Test.main(Test.java:3)
java.lang.IllegalAccessException: class org.xnio.sasl.SaslUtils cannot access class com.sun.security.sasl.ServerFactoryImpl (in module java.security.sasl) because module java.security.sasl does not export com.sun.security.sasl to unnamed module @a67c67e
	at sun.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:411)
	at sun.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:402)
	at sun.reflect.Reflection.ensureMemberAccess(java.base@9-ea/Reflection.java:99)
	at java.lang.Class.newInstance(java.base@9-ea/Class.java:545)
	at org.xnio.sasl.SaslUtils.getFactories(SaslUtils.java:138)
	at org.xnio.sasl.SaslUtils.getSaslServerFactories(SaslUtils.java:87)
	at Test.main(Test.java:3)
java.lang.IllegalAccessException: class org.xnio.sasl.SaslUtils cannot access class com.sun.security.sasl.gsskerb.FactoryImpl (in module jdk.security.jgss) because module jdk.security.jgss does not export com.sun.security.sasl.gsskerb to unnamed module @a67c67e
	at sun.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:411)
	at sun.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:402)
	at sun.reflect.Reflection.ensureMemberAccess(java.base@9-ea/Reflection.java:99)
	at java.lang.Class.newInstance(java.base@9-ea/Class.java:545)
	at org.xnio.sasl.SaslUtils.getFactories(SaslUtils.java:138)
	at org.xnio.sasl.SaslUtils.getSaslServerFactories(SaslUtils.java:87)
	at Test.main(Test.java:3)

Problem is in org.xnio.sasl.SaslUtil.getFactories()
Which doesn't work correctly on Jigsaw as it prevents us form loading classes from java base image as they are not exported.

as workaround we have

-XaddExports:java.security.sasl/com.sun.security.sasl.digest=ALL-UNNAMED,java.security.sasl/com.sun.security.sasl=ALL-UNNAMED

but we should have proper solution.

The stack trace we see on JDK9 is:

Sub-task WFCORE-1375

WFCORE-1374 Fix build to make it work with JDK9 new versioning

Tomaž Cerar (Inactive) Tomaž Cerar (Inactive) Resolved  

Java 9 uses new versioning http://openjdk.java.net/jeps/223
that breaks some maven plugins.
Fixes are done already in upstream.
best action is to upgrade to jboss-parent that uses new versions of plugins.

Cancel