Hi Team, had a quick question, i am trying to create a graph using Stardog api. I have added all the dependencies except gremlin and jena as per the Stardog doc, but still facing issue:
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.NoSuchMethodError: com.complexible.common.io.Files2.tmpDir()Ljava/io/File;
at com.complexible.stardog.StardogConfiguration.(StardogConfiguration.java:221)
at com.complexible.stardog.Stardog.(Stardog.java:164)
at com.complexible.stardog.Stardog.buildServer(Stardog.java:300)
at GraphOperations.main(GraphOperations.java:18)
Are you mixing up different versions of the Stardog API? Because that's the common reason for NoSuchMethodError, which means it finds the class but the class doesn't provide the method with the correct method signature.
Hi Lorenz,
Thank you for the reply!
I could not find any latest version for stardog-protocols-snarl-shared, so it is different from all others. Would you please suggest me solution for that. and i am using Stardog version 5.3.3 right now.
And if that is not the right one, which dependency should be used for SNARLProtocolConstants
I don't know where to download Jar files in general. I prefer using Maven and according to the docs, I don't think you have to import this explicitely.
I think the issue was because i wan using the old way to start Stardog server using API. Now i am trying using: Stardog aStardog = Stardog.builder().create();
Will get back in case I face any issue with that!
Exception in thread "main" com.complexible.stardog.security.StardogAuthenticationException: Authentication failed for account 'admin'
at com.complexible.stardog.StardogKernel.login(StardogKernel.java:1041)
at com.complexible.stardog.api.EmbeddedDriver.lambda$login$0(EmbeddedDriver.java:156)
at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
have used username/password:admin/admin and that works find when i start Stardog using the CLI
Would you please suggest me something on the same?