Embedded Server NPE on startup

Hello, I’m trying to follow the docs on how to use Embedded mode, but it seems they are outdated or maybe it’s just me being blind.
OrientDB Version: 3.1.12
Java Version: AdoptJDK 1.8

Here is how I try to run OrientDB in my app:

    orientDb = new OServer(true);
    orientDb.startup(getClass().getResourceAsStream("/orientdb.xml"));

But I get NPE for some reason:

2021-06-28 15:24:02:184 INFO  OrientDB Server v3.1.12 - Veloce (build b225e767a05a41efa9279a0084ade3fdcec8ab92, branch UNKNOWN) is starting up... 
[OServer]java.lang.NullPointerException
	at com.orientechnologies.orient.core.Orient.onEmbeddedFactoryInit(Orient.java:974)
	at com.orientechnologies.orient.core.db.OrientDBEmbedded.<init>(OrientDBEmbedded.java:107)
	at com.orientechnologies.orient.core.db.OrientDBInternal.embedded(OrientDBInternal.java:110)
	at com.orientechnologies.orient.server.OServer.startupFromConfiguration(OServer.java:401)
	at com.orientechnologies.orient.server.OServer.startup(OServer.java:335)
	at ru.meproject.rustmesponge.RustMeSponge.onServerStarting(RustMeSponge.java:52)
	at org.spongepowered.common.event.listener.StartingEngineEventListener_RustMeSponge_onServerStarting1.handle(Unknown Source)
	at org.spongepowered.vanilla.launch.event.RegisteredListener.handle(RegisteredListener.java:97)
	at org.spongepowered.vanilla.launch.event.VanillaEventManager.post(VanillaEventManager.java:418)
	at org.spongepowered.vanilla.launch.event.VanillaEventManager.post(VanillaEventManager.java:448)
	at org.spongepowered.common.SpongeLifecycle.callStartingEngineEvent(SpongeLifecycle.java:186)
	at net.minecraft.server.dedicated.DedicatedServer.handler$znh000$vanilla$runEngineStartLifecycle(SourceFile:1204)
	at net.minecraft.server.dedicated.DedicatedServer.initServer(SourceFile)
	at net.minecraft.server.MinecraftServer.runServer(SourceFile:645)
	at net.minecraft.server.MinecraftServer.lambda$spin$0(SourceFile:257)
	at java.lang.Thread.run(Thread.java:748)

I tried looking around javadocs, but they seem outdated as well. Issue also might be in my build.gradle file. Here it is:

dependencies {
    implementation("com.orientechnologies:orientdb-core:3.1.12")
    implementation("com.orientechnologies:orientdb-client:3.1.12")
    implementation("com.orientechnologies:orientdb-server:3.1.12")
    implementation("com.orientechnologies:orientdb-tools:3.1.12")
    implementation("com.sun.jna:jna:3.0.9")
    implementation("com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4.2")
    implementation("org.lz4:lz4-java:1.8.0")
}

I am really desperate to make OrientDB work, and can’t find any info on how to do so. I just would like to run NoSQL + graphs database, without http or binary endpoints. What is the right way to do so?

(this topic is a duplicate of my github ticket: onEmbeddedFactoryInit NullPointerException · Issue #9629 · orientechnologies/orientdb · GitHub)