Stardog 5.3.2-1 produces error and will not start

After and automated update of Stardog toveriosn 5.3.2-1 We are unable to start the server. We are running fedora Linux version 22, using Java version 1.8.0_101. We set the JAVA_HOME and STARDOG_HOME accordingly. We attempted to re-downlaod stardog and install it fresh, but it too failed having pointed the START_DOG home to new location… Below is the log error:

ARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/opt/stardog/client/api/guice-4.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
WARN 2018-07-20 22:34:18,850 [main] com.complexible.common.memory.PlatformDependent:(144): sun.misc.VM is not available
There was an error initializing Stardog; one or more dependencies could not be satisfied. Please verify your classpath is correct.
The initialization errors were:

  • Error injecting constructor, java.lang.ExceptionInInitializerError
    com.complexible.stardog.StardogKernel.()
    com.complexible.stardog.StardogKernel
    Caused by:
    java.lang.ExceptionInInitializerError
    at com.complexible.memory.memoryblock.MemoryBlockPool.allocateAll(MemoryBlockPool.java:181)
    at com.complexible.memory.memoryblock.MemoryBlockPool.(MemoryBlockPool.java:50)
    at com.complexible.memory.memoryblock.MemoryContext.createMemoryBlockPool(MemoryContext.java:180)
    at com.complexible.memory.memoryblock.MemoryContext.(MemoryContext.java:65)
    at com.complexible.stardog.StardogKernel.initMemoryContext(StardogKernel.java:703)
    at com.complexible.stardog.StardogKernel.(StardogKernel.java:484)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
    at com.google.inject.internal.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:86)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
    at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
    at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
    at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
    at com.complexible.stardog.Stardog.initKernel(Stardog.java:213)
    at com.complexible.stardog.Stardog.(Stardog.java:206)
    at com.complexible.stardog.Stardog.(Stardog.java:60)
    at com.complexible.stardog.Stardog$StardogBuilder.create(Stardog.java:597)
    at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:149)
    at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:41)
    at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:55)
    at com.complexible.stardog.cli.admin.CLI.main(CLI.java:186)
    Caused by: java.lang.NullPointerException
    at org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast(SystemUtils.java:1642)
    at com.complexible.memory.util.MMBits.(MMBits.java:37)
    … 32 more
    Unable to provision, see the following errors:
  1. Error injecting constructor, java.lang.ExceptionInInitializerError
    at com.complexible.stardog.StardogKernel.(StardogKernel.java:274)
    at com.complexible.stardog.StardogKernel.class(StardogKernel.java:274)
    while locating com.complexible.stardog.StardogKernel
    while locating com.complexible.stardog.Kernel

1 error

Appreciate any guidanc you can provide…

I’m assuming that START_DOG was just a typo but you might want to check that. What OS are you running and what JVM, Oracle or OpenJDK?

Do you have a 9 or 10 JDK installed? Did you export JAVA_HOME? My initial suspicion is that you have a 9 or 10 jdk installed and it’s trying to run with one of those. Stardog uses sun.misc.Unsafe and there have been some changes with that in newer JDKs and Stardog should be run with 1.8. Do you possibly have a custom security policy profile installed?

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