Stardog 2.2 icv http client ClassNotFoundException

1 view
Skip to first unread message

Duane Holt

unread,
Jul 9, 2014, 11:27:50 AM7/9/14
to sta...@clarkparsia.com
Good morning!

I'm trying to use the the icv http client with a standalone database but I seem to be missing a dependency somewhere because the sample code throws a ClassNotFoundException

Before running mavenInstall.sh I updated openrdf-sesame-2.7.12.jar with the pom and properties from the 2.7.10 jar (after updating the version number in the pom).
I'm using the groupId:artifactId:version from the Stardog documentation (com.complexible.stardog.icv.http:client:2.2).

The specific error is

Exception in thread "main" java.lang.NoClassDefFoundError: com/complexible/barc/ProtocolConstants
    at com.complexible.stardog.protocols.http.client.BaseHttpClient.<clinit>(BaseHttpClient.java:115)
    at com.complexible.stardog.protocols.http.client.HttpDriver.connectAdmin(HttpDriver.java:105)
    at com.complexible.stardog.api.admin.AdminConnectionConfiguration.connect(AdminConnectionConfiguration.java:39)
    at HttpErrorExample.main(HttpErrorExample.java:46)
Caused by: java.lang.ClassNotFoundException: com.complexible.barc.ProtocolConstants
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    ... 4 more

My source code and pom are attached.

v/r,
Duane
HttpErrorExample.java
pom.xml

Mike Grove

unread,
Jul 9, 2014, 2:12:26 PM7/9/14
to stardog
The class in question is contained in dist/client/snarl/bigpacket-shared-2.2.jar.  The imports is wrong in the source, which we will fix for the next version.  In the meantime, you might have to manually include that file.

Cheers,

Mike


--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Duane Holt

unread,
Jul 9, 2014, 5:42:29 PM7/9/14
to sta...@clarkparsia.com
Thanks, Mike!

Looks like it needed pellet-3.0.2.jar as well.  After adding them manually, the program ran fine.

v/r,
Duane
Reply all
Reply to author
Forward
0 new messages