gc-garcol / aeron-bank

A simple Bank-app using the Aeron cluster
7 stars 0 forks source link
aeron aeron-cluster consul-discovery raft ring-buffer sbe simple-binary-encoding spring-boot-3 spring-cloud-gateway

BANK ACCOUNT

Tech stacks

Pre-requisites

High-level design

Architect overview

bank-app-design

Project structure

Run project

make build-jar

make build-image

make run-containers

Generate SBE codecs

./gradlew generateCodecs

Run local

./gradlew runSingleNodeCluster --args='--aeron.cluster.port=9000 --aeron.cluster.node=0 --aeron.cluster.baseDir=node0'

ISSUES

Problem

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Set sun.nio.ch.SelectorImpl.selectedKeys accessible: module java.base does not "opens sun.nio.ch" to unnamed module @XXXXXX

Solution

Add --add-opens java.base/sun.nio.ch=ALL-UNNAMED to the JVM arguments.

fix_issue_InaccessibleObjectException