RHEL7: java.lang.NoClassDefFoundError: Could not initialize class com.stardog.starrocks.NativeStorageKernel

Stardog version: 7.0.0
Distro: RHEL7 -- "generic/rhel7" from the vagrant cloud.

Java version:

[vagrant@hostname stardog]$ java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

Setup

Env:

STARDOG_SERVER_JAVA_ARGS=-Xmx512m -Xms512m -XX:MaxDirectMemorySize=1536m
STARDOG_PREFIX=/tmp/stardog
STARDOG_KEYSTORE_PASSWORD=pass
STARDOG_EXPORT_DIRECTORY=/tmp/stardog/export
STARDOG_BACKUP_DIRECTORY=/tmp/stardog/backups
STARDOG_HOME=/tmp/stardog
STARDOG_LOG_HOME=/tmp/stardog
STARDOG_KEYSTORE_HOME=/tmp/stardog/keystore
STARDOG_KEYSTORE=/tmp/stardog/keystore/keystore.pfx
STARDOG_KEYSTORE_TYPE=PKCS12
STARDOG_PORT=10443

stardog.properties (I also tried to leave it out altogether, does not matter here):

[vagrant@hostname ~]$ cat /tmp/stardog/stardog.properties
# Default options
query.all.graphs = true
security.named.graphs = true
# Base 64 compatible passwords are a requirement for DataPlatform
password.length.max = 64
password.regex = [\\w+\\/=]+

logging.access.enabled = true
logging.access.type = text
logging.access.file = /data/stardog/access.log
logging.access.rotation.type = size
logging.access.rotation.limit = 1000000

logging.slow_query.enabled = true
logging.slow_query.time = 30s
logging.slow_query.type = text

backup.location = /data/stardog/backups
export.dir = /data/stardog/export

javax.net.ssl.keyStore = /data/stardog/keystore/keystore.pfx
javax.net.ssl.keyStorePassword = pass
javax.net.ssl.keyStoreType = PKCS12

Start command:

[vagrant@hostname ~]$ /code/pie/ONT/active/bin/stardog-admin server start --daemon --home ${STARDOG_HOME} --enable-ssl --ssl-port ${STARDOG_PORT} --port 5820
Starting Stardog server in background, see /tmp/stardog//stardog.log for more information.

Log output:

OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
An unexpected error occurred.
java.lang.NoClassDefFoundError: Could not initialize class com.stardog.starrocks.NativeStorageKernel

There is a related thread here: Got error when start server Stardog but there is no info on the error and why it occurs.

Additional Info

The necessary .jar with the class is there: /code/pie/ONT/active/server/dbms/stardog-7.0.0.jar

LIB_DIR seems to be resolving properly:

...
setup_dynamic_libs() {
        LIB_DIR="${STARDOG}/lib"
        echo ${LIB_DIR}
...
[vagrant@hostname bin]$ ./stardog-admin help db
/code/pie/ONT/stardog-7.0.0/bin/../lib

The CLASSPATH is build correctly:

/code/pie/ONT/stardog-7.0.0/bin/../client/ext/*:/code/pie/ONT/stardog-7.0.0/bin/../client/api/*:/code/pie/ONT/stardog-7.0.0/bin/../client/cli/*:/code/pie/ONT/stardog-7.0.0/bin/../client/http/*:/code/pie/ONT/stardog-7.0.0/bin/../client/pack/*:/code/pie/ONT/stardog-7.0.0/bin/../server/ext/*:/code/pie/ONT/stardog-7.0.0/bin/../server/dbms/*

This problem does not occur in Stardog 7.0.3. Can be closed.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.