We're using the Bitbucket Docker images in our testing enviroment (https://hub.docker.com/r/atlassian/bitbucket).
Today, we realized that the instances are not working anymore, showing a stacktrace with root cause
java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @107e502
Using version tag 8.7 is working, but it looks like any higher version is broken.
Based on the available tags, I assume that the image are shipped with Java 17 starting with 8.8 and there's a compatibility issue with that version.
Is someone else also having this issue? I think it's a general thing but cannot rule out that it is something in our setup.
I just found out that there are "-jdk11" tags available, so using tag 8.17-jdk11 solves the issue of setting up a running Bitbucket 8.17.
The documentation states that using latest is not recommended, but in this case it looks like the default-tags for all versions have been moved to broken builds based on Java 17.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.