[Stardog 2.2][Windows] java.lang.NoClassDefFoundError

16 views
Skip to first unread message

Florian Orpeliere

unread,
Jul 7, 2014, 12:03:22 PM7/7/14
to sta...@clarkparsia.com
Hi,

Already, thank you for the new version 2.2 with a complete web Stardog interface that works brilliantly on OSX. 

However, we have a problem with Windows. When using the data add command, we have the following error:

Exception in thread "main" java.util.ServiceConfigurationError: com.complexible.
stardog
.api.Driver: Provider com.complexible.stardog.protocols.snarl.client.SNAR
LDriver could not be instantiated: java.lang.NoClassDefFoundError: com/complexib
le
/barc/ProtocolConstants
        at java
.util.ServiceLoader.fail(ServiceLoader.java:224)
        at java
.util.ServiceLoader.access$100(ServiceLoader.java:181)
        at java
.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:377)
        at java
.util.ServiceLoader$1.next(ServiceLoader.java:445)
       
[...]
        at com
.complexible.stardog.cli.impl.ConnectionCommand.call(ConnectionCom
mand
.java:86)
        at com
.complexible.stardog.cli.CLIBase.execute(CLIBase.java:52)
        at com
.complexible.stardog.cli.CLI.main(CLI.java:98)
Caused by: java.lang.NoClassDefFoundError: com/complexible/barc/ProtocolConstant
s
        at java
.lang.ClassLoader.defineClass1(Native Method)
        at java
.lang.ClassLoader.defineClass(ClassLoader.java:792)
        at java
.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
       
[...]
        at java
.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at java
.lang.Class.newInstance(Class.java:374)
        at java
.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:373)
       
... 10 more
Caused by: java.lang.ClassNotFoundException: com.complexible.barc.ProtocolConsta
nts
       
... 29 more


Do you have an answer for this problem? 

Thank you in advance. 

Sincerely,



Florian Orpelière
---------------------------
University of Burgundy
Checksem

Mike Grove

unread,
Jul 7, 2014, 12:23:39 PM7/7/14
to stardog
That kind of error is normally a missing jar problem.  The missing class is found in dist/client/snarl/bigpacket-shared-2.2.jar, double check that it's contained on your classpath.

Cheers,

Mike
 


Thank you in advance. 

Sincerely,



Florian Orpelière
---------------------------
University of Burgundy
Checksem

--
-- --
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

Florian Orpeliere

unread,
Jul 7, 2014, 12:55:24 PM7/7/14
to sta...@clarkparsia.com
Thanks for your reply.

I follow this doc as usual : http://docs.stardog.com/quick-start/
And i haven't touched the Classpath.

I work only with CLI for the moment.
For Stardog 2.1.3, i don't have any problem (in Windows and OSX) when i use the CLI with data add command,
For 2.2, i have this problem only in Windows.

I check that bigpacket-shared-2.2.jar is in client/snarl folder.

I still have the problem.

Maybe I did not fully understand your answer.

Sinceraly,

Florian

Stephen Nowell

unread,
Jul 7, 2014, 1:54:01 PM7/7/14
to sta...@clarkparsia.com
Hi Florian,

This is due to a bug in the stardog.bat script. If you add a semicolon to line 21 so that it reads 'set CLASSPATH=%HOMEDIR%\client\api\*;%HOMEDIR%\client\cli\*;%HOMEDIR%\client\http\*;%HOMEDIR%\client\snarl\*;%HOMEDIR%\pack\client\*;%SLF4J_JARS%' this problem will be fixed.

Thank you for reporting this, and we will fix it for the next release.

-Stephen

Florian Orpeliere

unread,
Jul 8, 2014, 3:39:13 AM7/8/14
to sta...@clarkparsia.com, ste...@clarkparsia.com
Hi Stephen,

Yes its works.
Sorry, I didn't think to look in the .bat file.

Thank you, it's perfect.

Sinceraly,

Florian
Reply all
Reply to author
Forward
0 new messages