java.lang.NoClassDefFoundError exception when running "stardog-admin.bat server start"


(Quico Llinares Llorens) #1

Hi I was trying to install Stardog following your docs, but when I arrive to

stardog-admin.bat server start

I get the following error

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/C:/Users/quico/Desktop/Stardog/stardog-5.3.3/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
Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
at com.complexible.common.rdf.model.AbstractStardogLongLiteral.(AbstractStardogLongLiteral.java:25)
at com.complexible.common.rdf.model.StardogLongIntegerLiteral.(StardogLongIntegerLiteral.java:17)
at com.complexible.common.rdf.model.StardogValueFactory.createLiteral(StardogValueFactory.java:436)
at com.complexible.stardog.index.dictionary.ValueInliner$IntegerInliner.extract(ValueInliner.java:431)
at com.complexible.stardog.index.dictionary.ValueInliner.extract(ValueInliner.java:108)
at com.complexible.stardog.index.dictionary.InliningMappingDictionary.getValue(InliningMappingDictionary.java:91)
at com.complexible.stardog.index.dictionary.DelegatingMappingDictionary.getValue(DelegatingMappingDictionary.java:67)
at com.complexible.stardog.security.index.SecurityIndexes.getSecurityIndexVersion(SecurityIndexes.java:176)
at com.complexible.stardog.security.index.SecurityIndexes.initialize(SecurityIndexes.java:83)
at com.complexible.stardog.security.index.IndexSystemSecurityManagerFactory.create(IndexSystemSecurityManagerFactory.java:58)
at com.complexible.stardog.BaseStardogModule.getSystemSecurityManager(BaseStardogModule.java:200)
at com.complexible.stardog.BaseStardogModule$$FastClassByGuice$$920e5968.invoke()
at com.google.inject.internal.ProviderMethod$FastClassProviderMethod.doProvision(ProviderMethod.java:272)
at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:172)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
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.SingleParameterInjector.inject(SingleParameterInjector.java:38)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:104)
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.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:1103)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
at com.google.inject.multibindings.Multibinder$RealMultibinder.get(Multibinder.java:375)
at com.google.inject.multibindings.Multibinder$RealMultibinder.get(Multibinder.java:258)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:104)
at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:104)
at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:167)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
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.SingleParameterInjector.inject(SingleParameterInjector.java:38)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:104)
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:162)
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.ClassNotFoundException: javax.xml.bind.DatatypeConverter
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
… 76 more

Thanks for helping.


After CTRL+C "stardog-admin.bat server start" do nothing
(zachary.whitley) #2

Try checking to make sure you set the STARDOG_HOME env variable

echo %STARDOG_HOME%

If it’s not set you can set it with

set STARDOG_HOME=C:/Users/quico/Desktop/Stardog/stardog-5.3.3


(Pedro Oliveira) #3

Hi Quico,

Make sure you are using Java 8, as per our requirements.

-pedro


(Quico Llinares Llorens) #4

I have java 10, so, have I to downgrade to 8?
Thanks.


(Quico Llinares Llorens) #5

I have my %STARDOG_HOME% in “C:\Users\quico\Desktop\Stardog\data”. Have I to change to “C:/Users/quico/Desktop/Stardog/stardog-5.3.3”?


(Pedro Oliveira) #6

Yes, Stardog only supports Java 8


(zachary.whitley) #7

It should point to wherever you unzipped the Stardog-5.3.3.zip to. (I just picked that path up from your stacktrace)


(stephen) #8

A point of clarification, $STARDOG should point to where you have unzip the binaries… $STARDOG_HOME should point to the location at which your databases should be stored. They CAN be the same directory, but they don’t have to be.


(Quico Llinares Llorens) #9

I have finally achieved to start the server downgrading to Java 8, but now I have done CTRL+C to shut down it, and then when I do again “stardog-admin.bat server start” I get nothing.Captura


(system) #10

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