A little update: It seems the problematic thing is "JEP 396: Strongly
Encapsulate JDK Internals by Default", which was introduced with Java
16. Adding "--illegal-access=permit" (default of Java 9) to the
commandline arguments restored the behaviour of pre-Java 16.  

Creating the minimal example as well as the related exception instead
of a JVM crash helped a lot.

The JVM crash in the project is gone and everything seems to work like
a charm (deployment, ...). I will run some additional tests with the
deployed application but it is looking good at the moment, so for now:

Java 16 seem to work fine with the current 8.0.7-SNAPSHOT + OpenJPA
3.1.3-SNAPSHOT).

Gruss
Richard

Am Donnerstag, den 08.04.2021, 11:42 +0000 schrieb Zowalla, Richard:
> Sadly, I cannot reproduce the JVM crash in my minimal example. 
> 
> However, it reveals some other (probably access-related) issues in
> LocalBeanProxyFactory.createProxy(...) which might have lead to the
> crash in the actual project. 
> 
> It can be found here: https://github.com/rzo1/jdk16-testing
> 
> Gruss
> Richard
> 
> 
> Am Donnerstag, den 08.04.2021, 11:55 +0100 schrieb Jonathan
> Gallimore:
> > A minimal example would be a big help, thank you!
> > 
> > Jon
> > 
> > On Thu, Apr 8, 2021 at 11:00 AM Zowalla, Richard <
> > richard.zowa...@hs-heilbronn.de> wrote:
> > 
> > > Hi Jon,
> > > 
> > > thanks for your response.
> > > 
> > > I am using the latest OpenJDK 16 build from AdoptOpenJDK (
> > > https://adoptopenjdk.net/?variant=openjdk16&jvmVariant=hotspot)
> > > on
> > > a
> > > Ubuntu 20.04 LTS system.
> > > 
> > > If it helps: I could try to create a minimal example to reproduce
> > > the
> > > crash and push it to Github.
> > > 
> > > Gruss
> > > Richard
> > > 
> > > Am Donnerstag, den 08.04.2021, 10:39 +0100 schrieb Jonathan
> > > Gallimore:
> > > > I did some of the original work on LocalBeanProxyFactory way
> > > > back.
> > > > I'm
> > > > happy to take a look. Are you building your own JDK from
> > > > source,
> > > > or
> > > > downloading a specific binary (if so, which one)?
> > > > 
> > > > Jon
> > > > 
> > > > On Thu, Apr 8, 2021 at 8:07 AM Zowalla, Richard <
> > > > richard.zowa...@hs-heilbronn.de> wrote:
> > > > 
> > > > > Hi,
> > > > > 
> > > > > I am doing some bleeding edge testing related to JDK/JRE 16
> > > > > with
> > > > > the
> > > > > latest TomEE 8.0.7-SNAPSHOT as we have included some 3rd
> > > > > party
> > > > > patches,
> > > > > which should support JDK/JRE 16. One remaining thing is
> > > > > OpenJPA,
> > > > > which
> > > > > will support J16 with 3.1.3-SNAPSHOT (so I have patched it in
> > > > > my
> > > > > test).
> > > > > 
> > > > > I get this weird JVM crash [1] probably related to
> > > > > LocalBeanProxyFactory when deploying a JSF/JAX-RS WAR archive
> > > > > via
> > > > > the
> > > > > TomEE Maven Plugin. Maybe someone has some thoughts on it (or
> > > > > a
> > > > > hint)?
> > > > > 
> > > > > Gruss
> > > > > Richard
> > > > > 
> > > > > 
> > > > > [1] 
> > > > > https://gist.github.com/rzo1/cf70056a0a27d4cb5a714d6211dc7563
> > > > > 
> > > > > 
> > > --
> > > Richard Zowalla, M.Sc.
> > > Research Associate, PhD Student | Medical Informatics
> > > 
> > > Hochschule Heilbronn – University of Applied Sciences
> > > Max-Planck-Str. 39
> > > D-74081 Heilbronn
> > > phone: +49 7131 504 6791
> > > mail: richard.zowa...@hs-heilbronn.de
> > > web: https://www.mi.hs-heilbronn.de/
> > > 
-- 
Richard Zowalla, M.Sc.
Research Associate, PhD Student | Medical Informatics

Hochschule Heilbronn – University of Applied Sciences
Max-Planck-Str. 39 
D-74081 Heilbronn 
phone: +49 7131 504 6791
mail: richard.zowa...@hs-heilbronn.de
web: https://www.mi.hs-heilbronn.de/ 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to