updating commandbox to 5.3.1 via Homebrew breaks with a java error

Description

The 5.3.1 Homebrew package seems to install openjdk 15 which breaks commandbox. If I remove all copies of Java from my M1 Mac and install CommandBox via HomeBrew I get the following message:

peter@Peters-M1 ~/projects/titan brew install commandbox
==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/manifests/15.0.2
Already downloaded: /Users/peter/Library/Caches/Homebrew/downloads/fa27d798886d52cb9b1751ea1ffce4da621b441441621c0b120155fe748fe5a6--openjdk-15.0.2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/blobs/sha256:063189cdbad2c9ef5ab5e7dc34cea1d2fe68a5405b3728eb87
Already downloaded: /Users/peter/Library/Caches/Homebrew/downloads/a82480d2b36a77ef95b88e7f065130839e51b86ce2bfe263b2e2b004026c9e1a--openjdk--15.0.2.arm64_big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/commandbox/manifests/5.3.1
Already downloaded: /Users/peter/Library/Caches/Homebrew/downloads/2b2ec59754ebcf446ec9b1210c0cbb7cdb059fc659c1393496e74843fb1bebbf--commandbox-5.3.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/commandbox/blobs/sha256:7ab51feadd7ba7c1525c98a0d7a96d010a374cc1ea69b79
Already downloaded: /Users/peter/Library/Caches/Homebrew/downloads/e7374a5dabf65f316ac48e32383c76358d679301a5f97cab7e54a6eafdaa4cd0--commandbox--5.3.1.all.bottle.tar.gz
==> Installing dependencies for commandbox: openjdk
==> Installing commandbox dependency: openjdk
==> Pouring openjdk--15.0.2.arm64_big_sur.bottle.tar.gz
🍺 /opt/homebrew/Cellar/openjdk/15.0.2: 613 files, 305.5MB
==> Installing commandbox
==> Pouring commandbox--5.3.1.all.bottle.tar.gz
🍺 /opt/homebrew/Cellar/commandbox/5.3.1: 241 files, 86.9MB

If I then try to run the box command I get the following:
peter@Peters-M1 box
#

  1. A fatal error has been detected by the Java Runtime Environment:
    #

  2. Internal Error (sharedRuntime.cpp:531), pid=27873, tid=8195

  3. Error: ShouldNotReachHere()
    #

  4. JRE version: OpenJDK Runtime Environment (16.0+14) (build 16+14)

  5. Java VM: OpenJDK 64-Bit Server VM (16+14, mixed mode, tiered, compressed oops, g1 gc, bsd-aarch64)

  6. No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    #

  7. An error report file with more information is saved as:

  8. /Users/peter/projects/titan/

  1. hs_err_pid27873.log
    #

  2. If you would like to submit a bug report, please visit:

  3. https://bugreport.java.com/bugreport/crash.jsp
    #
    [1] 27873 abort box

The hs_err file is attached.

Attachments

1

Activity

Show:

Brad Wood June 22, 2021 at 3:01 PM
Edited

Homebrew has pinned CommandBox to java 11

Brad Wood May 26, 2021 at 7:27 PM

Glad you got it working and sorry for the inconvenience. Hopefully Homebrew merges that change soon to pin java 11.

Former user May 26, 2021 at 7:16 PM

Ya I figured as much. I tried with limited knowledge to get Homebrew to use Java 11 but couldn’t get it to work. For now, I just downloaded the comandbox version bundled with jre and put it into my project root and added the couple of rows to the .gitignore file to keep them out of the repository. That will be good enough for me to limp along for now.

Brad Wood May 26, 2021 at 7:08 PM

Yes, Java 16 has came out and broken everything. Lucee is not yet compatible with it. There is already a pull request in Homebrew to pin CommandBox on Java 11 for now, but it hasn’t been merged yet.

Once that change is made, Homebrew will stop trying to use java 16. I don’t know enough about Homebrew to know if there is a way for you to override the version of java they want you to use.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created May 26, 2021 at 6:56 PM
Updated June 22, 2021 at 3:01 PM
Resolved June 22, 2021 at 3:01 PM