The change has been introduced in Java version 16+

See https://openjdk.java.net/jeps/396
and https://bugs.openjdk.java.net/browse/JDK-8256358

JEP 396: Strongly Encapsulate JDK Internals by Default (JDK-8256299
> <https://bugs.openjdk.java.net/browse/JDK-8256299>) core-libs
>
> Strongly encapsulate all internal elements of the JDK by default, except
> for critical internal APIs <https://openjdk.java.net/jeps/260#Description>
> such as sun.misc.Unsafe. Allow end users to choose the relaxed strong
> encapsulation that has been the default since JDK 9.
>
> With this change, the default value of the launcher option
> --illegal-access
> <https://openjdk.java.net/jeps/261#Relaxed-strong-encapsulation> is now
> deny rather than permit. As a consequence, existing code that uses most
> internal classes, methods, or fields of the JDK will fail to run. Such code
> can be made to run on JDK 16 by specifying --illegal-access=permit. That
> option will, however, be removed in a future release.
>
> For further details, please see JEP 396
> <https://openjdk.java.net/jeps/396>.
>

You need to add --illegal-access=permit to your surefire configuration or
add it to your JVM options.

--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


On Thu, Sep 2, 2021 at 2:57 PM Alex The Rocker <alex.m3...@gmail.com> wrote:

> Hello again,
>
> Of course my vote related to TomEE 8.0.8 experiments with Java 16 is
> not blocking the release since it's not a binding vote.
> I continued my tests and I found no regression with TomEE+ 8.0.8 with
> IBM Semeru Runtime 11.0.12 (new name for AdoptOpenJDK OpenJ9) with a
> app which relies on JAX-WS / JAX-RS / JMS & Websockets.
>
> With Java 16 runtime, I have this annoying exception in catalina.out
> when I use the embedded ActiveMQ for JMS purposes:
>
> 02-Sep-2021 12:50:33.955 SEVERE [ActiveMQ Task-1]
> org.apache.activemq.util.IntrospectionSupport.setProperty Could not
> set property host on Socket[unconnected]
> java.lang.reflect.InaccessibleObjectException: Unable to make public
> void sun.security.ssl.SSLSocketImpl.setHost(java.lang.String)
> accessible: module java.base does not "export
>  sun.security.ssl" to unnamed module @8960bcc0
>  at
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at
> java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
>  at
> org.apache.activemq.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:179)
>  at
> org.apache.activemq.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:155)
>  at
> org.apache.activemq.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:140)
>  at
> org.apache.activemq.transport.tcp.SslTransport.<init>(SslTransport.java:81)
>  at
> org.apache.activemq.transport.tcp.SslTransportFactory.createTransport(SslTransportFactory.java:122)
>  at
> org.apache.activemq.transport.TransportFactory.doCompositeConnect(TransportFactory.java:138)
>  at
> org.apache.activemq.transport.TransportFactory.compositeConnect(TransportFactory.java:91)
>  at
> org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:1013)
>  at
> org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:149)
>  at
> org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
>  at
> org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
>  at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
>  at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
>  at java.base/java.lang.Thread.run(Thread.java:883)
>
> It's not blocking the JMS requests from executing.
>
> Bbut accumulating exceptions in logs is not something we appreciate,
> since we have alerters on exceptions rates in production, so I hope
> that issue (which is not new with TomEE+ 8.0.8, same issue with 8.0.6)
> will soon be fixed, again having in mind that Java 17 LTS availability
> is getting close...
>
> Hope it helps,
> Alex
>
> Le jeu. 2 sept. 2021 à 09:57, Thomas Andraschko
> <andraschko.tho...@gmail.com> a écrit :
> >
> > +1 (non-binding)
> >
> > I think we should work on java17 after that release
> >
> > Alex The Rocker <alex.m3...@gmail.com> schrieb am Do., 2. Sept. 2021,
> 09:52:
> >
> > > Hello,
> > >
> > > [-1] (non binding) if Java 16 compatibility matters
> > >
> > > Indeed, I have ran Arquillian tests with TomEE embedded 8.0.8 and:
> > > * Arquillian's Basket & Order tests are OK with Java 16 runtime
> > > * My own test of a JAX-RS end point fails with attached exception stack
> > >
> > > Tested class is AboutService.java (attached too)
> > > Test class which fails is AboutServiceTest (attached too)
> > >
> > > With Java 17 availability targeted end of this month, it would be nice
> > > if that kind of reflexion issue found with Java 16 could be fixed
> > > before 8.0.8 is released (if that's not too hard), to give more
> > > changes to have a smooth Java 17 (Long Term Support version)
> > > transition...
> > >
> > > I'm still in progress with other tests
> > >
> > > Kind regards,
> > > Alex
> > >
> > > Le mer. 1 sept. 2021 à 15:50, Jean-Louis Monteiro
> > > <jlmonte...@tomitribe.com> a écrit :
> > > >
> > > > Hi All,
> > > >
> > > > This is a first attempt at a vote for a release of Apache TomEE
> 8.0.8.
> > > >
> > > > Maven Repo:
> > > >
> https://repository.apache.org/content/repositories/orgapachetomee-1186
> > > >
> > > > Binaries & Source:
> > > > https://dist.apache.org/repos/dist/dev/tomee/staging-1186/
> > > >
> > > > Tags:
> > > > https://github.com/apache/tomee/tree/tomee-project-8.0.8
> > > >
> > > > Release notes:
> > > >
> > >
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12350177&styleName=Html&projectId=12312320
> > > >
> > > > Here is an adoc generated version (Thanks Richard)
> > > >
> > > > > = Apache TomEE 8.0.8 Release Notes
> > > > > :index-group: Release Notes
> > > > > :jbake-type: page
> > > > > :jbake-status: published
> > > > > == Dependency upgrade
> > > > > [.compact]
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2990[TOMEE-2990]
> > > > > BatchEE 0.6
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3750[TOMEE-3750]
> > > > > BatchEE 1.0.0
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2987[TOMEE-2987]
> > > CXF
> > > > > 3.4.3
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3756[TOMEE-3756]
> > > > > HSQLDB 2.3.4
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3772[TOMEE-3772]
> > > > > JUnit 4.13.2
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3734[TOMEE-3734]
> > > > > Johnzon 1.2.11
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3755[TOMEE-3755]
> > > > > Johnzon 1.2.13
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3770[TOMEE-3770]
> > > > > Johnzon 1.2.14
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3732[TOMEE-3732]
> > > > > MyFaces 2.3.9
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3753[TOMEE-3753]
> > > > > OpenJPA 3.2.0
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2997[TOMEE-2997]
> > > > > OpenSAML V3.4.6
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2809[TOMEE-2809]
> > > > > OpenWebBeans 2.0.22
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2998[TOMEE-2998]
> > > > > Tomcat 9.0.45
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3760[TOMEE-3760]
> > > > > Tomcat 9.0.48
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3773[TOMEE-3773]
> > > > > Tomcat 9.0.50
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3787[TOMEE-3787]
> > > > > Tomcat 9.0.52
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2939[TOMEE-2939]
> > > > > bcprov-jdk15on 1.67
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3765[TOMEE-3765]
> > > > > bountycastle 1.69
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3764[TOMEE-3764]
> > > > > commons-dbcp 2.3.0
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3759[TOMEE-3759]
> > > > > commons-io 2.10.0
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2972[TOMEE-2972]
> > > > > latest OWB version run on Java16
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2988[TOMEE-2988]
> > > > > xbean 4.18+ (Java 16 support)
> > > > > == New Feature
> > > > > [.compact]
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3730[TOMEE-3730]
> > > Add
> > > > > JSONP and JSONB Providers JAX-RS Client
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2365[TOMEE-2365]
> > > > > Implement Java EE Security API from EE 8
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2966[TOMEE-2966]
> > > > > Provide a pure JUnit5 OpenEJB Extension
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2977[TOMEE-2977]
> > > > > Provide a ApplicationComposer JUnit 5 Extension
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2993[TOMEE-2993]
> > > API
> > > > > pom for each TomEE distribution
> > > > > == Bug
> > > > > [.compact]
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3774[TOMEE-3774]
> > > > > Problems with master branch in Windows 10
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3731[TOMEE-3731]
> > > > > Remove non-compliant JAX-RS Provider sorting
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3768[TOMEE-3768]
> > > > > TomEE plus is affected by CVE-CVE-2021-30468 vulnerability related
> to
> > > > > Apache CXF
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2125[TOMEE-2125]
> > > > > Datasource config: MaxWait, timeBetweenEvictionRunsMillis and
> > > > > MinEvictableIdleTimeMillis are ignored
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3727[TOMEE-3727]
> > > > > Ensure java.io.File is not seen as a JSONB serializable type
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3728[TOMEE-3728]
> > > > > Ensure java.io.Reader is not seen as a JSONB serializable type
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3729[TOMEE-3729]
> > > Do
> > > > > not scan classpath for @Provider when there is a JAX-RS Application
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2968[TOMEE-2968]
> > > > > Postgres connection error when a password contains "}"
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3740[TOMEE-3740]
> > > Fix
> > > > > Test Failures in "openejb-core" introduced during TCK work
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3743[TOMEE-3743]
> > > > > TomEEJsonbProvider not registered anymore as of TomEE 8.0.7? Causes
> > > failing
> > > > > REST-services.
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3739[TOMEE-3739]
> > > Fix
> > > > > JAX-RS landscape / regressions introduced during TCK Work
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3752[TOMEE-3752]
> > > > > Field injection of @Resource WebServiceContext fails when endpoint
> > > uses CDI
> > > > > interceptor
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2975[TOMEE-2975]
> > > > > Download page must provide sigs for all release artifacts
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3718[TOMEE-3718]
> > > > > Missing mime mappings
> > > > > == Improvement
> > > > > [.compact]
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2957[TOMEE-2957]
> > > Fix
> > > > > OWASP Checks on ASF Jenkins Environment
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2974[TOMEE-2974]
> > > CI
> > > > > Build Environment ISO-8859-1 versus UTF-8
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2973[TOMEE-2973]
> > > > > TomEE :: Examples :: JSF2/CDI/BV/JPA/DeltaSpike uses too old
> version of
> > > > > commons-lang3
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2976[TOMEE-2976]
> > > > > Provide Examples for TomEE Arquillian with JUnit 5
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2705[TOMEE-2705]
> > > > > TomEE Plus BOM
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3761[TOMEE-3761]
> > > > > Jakarta Security example with custom identity store
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2704[TOMEE-2704]
> > > > > TomEE Plume BOM
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2703[TOMEE-2703]
> > > > > TomEE WebProfile BOM
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2702[TOMEE-2702]
> > > > > TomEE MicroProfile BOM
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2995[TOMEE-2995]
> > > > > Support constructor injection of JAX-RS Application
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2994[TOMEE-2994]
> > > > > JAX-RS Provider construction favors constructor with the most args
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3758[TOMEE-3758]
> > > > > Jakarta Security example with tomcat-users.xml identity store
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2992[TOMEE-2992]
> > > > > [Certification/TCK] Tomcat Callback handler not consistent with
> > > > > authenticator
> > > > > == Task
> > > > > [.compact]
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3140[TOMEE-3140]
> > > > > Jakarta EE 9.1 TCK Failures
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-3721[TOMEE-3721]
> > > > > Remove dependencies between tomee-webapp modules
> > > > > == Sub-task
> > > > > [.compact]
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2967[TOMEE-2967]
> > > > > Translate to Spanish: examples/xa-datasource
> > > > >  - link:
> https://issues.apache.org/jira/browse/TOMEE-2964[TOMEE-2964]
> > > > > Translate to Portuguese: examples/serverless-tomee-webprofile
> (modifié)
> > > > >
> > > >
> > > > (Developers - please review and adjust your tickets if necessary!)
> > > >
> > > > Please VOTE:
> > > >
> > > > [+1] Yes, release it
> > > > [+0] Not fussed
> > > > [-1] Don't release, there's a showstopper (please specify what the
> > > > showstopper is)
> > > >
> > > > Vote will be open for 72 hours.
> > > >
> > > > Thanks
> > > > --
> > > > Jean-Louis Monteiro
> > > > http://twitter.com/jlouismonteiro
> > > > http://www.tomitribe.com
> > >
>

Reply via email to