Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Kotlin pipeline stopped compiling: ExceptionInInitializerError > Unable to make protected void

So, my project was working fine and for some odd reason it starts to falling the build.

Looking at it, I found this


[ERROR] java.lang.ExceptionInInitializerError

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.util.ResourceBundle.setParent(java.util.ResourceBundle) accessible: module java.base does not "opens java.util" to unnamed module @646427f7

Looking into I saw some posts in the IntelliJ issues about this, pointing to java 16 and kotlin compiler.


My poem is set to


Any ideas on this one?

1 answer

1 accepted

So, finally found a answer, actually very simple one.

Just specify the java version in the pipeline yml file.


At the first line whe you have 

image: maven:3.6.3

add the -java version

I changed mine to: image: maven:3.6.3-jdk-14

Since this error is caused by how kotlin access some methos in java that were changed in java 16, so they don't work anymore. And bitbucket has upgraded it images with the last version of java, which cause this issue to happen.


Would be nice if the bitbucket detect if you have a kotlin project and does not update the java

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

207 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you